diff --git a/.gitignore b/.gitignore index 16575d3..aeea715 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /httpdate-0.3.2.crate /httpdate-1.0.1.crate +/httpdate-1.0.2.crate diff --git a/httpdate-fix-metadata.diff b/httpdate-fix-metadata.diff new file mode 100644 index 0000000..2f91ddc --- /dev/null +++ b/httpdate-fix-metadata.diff @@ -0,0 +1,8 @@ +--- httpdate-1.0.2/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ httpdate-1.0.2/Cargo.toml 2021-11-18T11:32:40.627817+00:00 +@@ -23,5 +23,3 @@ + [[bench]] + name = "benchmarks" + harness = false +-[dev-dependencies.criterion] +-version = "0.3.5" diff --git a/rust-httpdate.spec b/rust-httpdate.spec index 8cc75cd..006983d 100644 --- a/rust-httpdate.spec +++ b/rust-httpdate.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 17 +# Generated by rust2rpm 18 %bcond_without check %global debug_package %{nil} %global crate httpdate Name: rust-%{crate} -Version: 1.0.1 +Version: 1.0.2 Release: %autorelease Summary: HTTP date parsing and formatting @@ -13,6 +13,9 @@ Summary: HTTP date parsing and formatting License: MIT or ASL 2.0 URL: https://crates.io/crates/httpdate Source: %{crates_source} +# Initial patched metadata +# * drop unused, benchmark-only criterion dev-dependency to speed up builds +Patch0: httpdate-fix-metadata.diff ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} diff --git a/sources b/sources index 9018380..02640b8 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (httpdate-1.0.1.crate) = 1a63f11759e331e5938697d181c7f021e953e3616741116437253eaf6da862b6cdb08a0fef5808042d8367de9fac31b63ebcc917cfb81b0244b4d238f95538ab +SHA512 (httpdate-1.0.2.crate) = 4d650dbe7ec1d0f457bab71cd009fd92ee296fbe0a6b0c0ce4d71aa3bee720094a03968c08e542be60869350e05b4a1739542c6415e401407345f5643e15f8fd