diff --git a/http-fix-metadata.diff b/http-fix-metadata.diff new file mode 100644 index 0000000..9454445 --- /dev/null +++ b/http-fix-metadata.diff @@ -0,0 +1,12 @@ +--- http-0.2.8/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ http-0.2.8/Cargo.toml 2022-11-04T17:52:55.248049+00:00 +@@ -63,9 +63,6 @@ + [dependencies.itoa] + version = "1" + +-[dev-dependencies.criterion] +-version = "0.3.2" +- + [dev-dependencies.doc-comment] + version = "0.3" + diff --git a/rust-http.spec b/rust-http.spec index 2429416..d1dbadc 100644 --- a/rust-http.spec +++ b/rust-http.spec @@ -1,20 +1,20 @@ -# Generated by rust2rpm 21 +# Generated by rust2rpm 23 %bcond_without check %global debug_package %{nil} %global crate http -Name: rust-%{crate} +Name: rust-http Version: 0.2.8 Release: %autorelease Summary: Set of types for representing HTTP requests and responses -# Upstream license specification: MIT OR Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/http Source: %{crates_source} - -ExclusiveArch: %{rust_arches} +# Manually created patch for downstream crate metadata changes +# * drop unused, benchmark-only criterion dev-dependency to speed up builds +Patch: http-fix-metadata.diff BuildRequires: rust-packaging >= 21