diff --git a/.gitignore b/.gitignore index 22cbf58..51dee01 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ /bytecount-0.6.0.crate /bytecount-0.6.1.crate /bytecount-0.6.2.crate +/bytecount-0.6.3.crate diff --git a/bytecount-fix-metadata.diff b/bytecount-fix-metadata.diff new file mode 100644 index 0000000..6298782 --- /dev/null +++ b/bytecount-fix-metadata.diff @@ -0,0 +1,13 @@ +--- bytecount-0.6.3/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ bytecount-0.6.3/Cargo.toml 2022-07-16T13:01:08.506236+00:00 +@@ -42,10 +42,6 @@ + optional = true + package = "packed_simd_2" + +-[dev-dependencies.criterion] +-version = "0.3" +-default-features = false +- + [dev-dependencies.quickcheck] + version = "1.0" + diff --git a/rust-bytecount.spec b/rust-bytecount.spec index d7da46e..d5c5a0a 100644 --- a/rust-bytecount.spec +++ b/rust-bytecount.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 16 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate bytecount Name: rust-%{crate} -Version: 0.6.2 +Version: 0.6.3 Release: %autorelease Summary: Count occurrences of a given byte, or the number of UTF-8 code points @@ -13,13 +13,13 @@ Summary: Count occurrences of a given byte, or the number of UTF-8 code p License: ASL 2.0 or MIT URL: https://crates.io/crates/bytecount Source: %{crates_source} +# Initial patched metadata +# * drop unused, benchmark-only criterion dev-dependency to speed up builds +Patch0: bytecount-fix-metadata.diff ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Count occurrences of a given byte, or the number of UTF-8 code points, in a @@ -33,14 +33,14 @@ BuildArch: noarch %description devel %{_description} -This package contains library source intended for building other packages -which use "%{crate}" crate. +This package contains library source intended for building other packages which +use the "%{crate}" crate. %files devel -%license LICENSE.Apache2 LICENSE.MIT -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ -%exclude %{cargo_registry}/%{crate}-%{version_no_tilde}/ci/ +%license %{crate_instdir}/LICENSE.Apache2 +%license %{crate_instdir}/LICENSE.MIT +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -48,11 +48,11 @@ BuildArch: noarch %description -n %{name}+default-devel %{_description} -This package contains library source intended for building other packages -which use "default" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+html_report-devel Summary: %{summary} @@ -60,11 +60,11 @@ BuildArch: noarch %description -n %{name}+html_report-devel %{_description} -This package contains library source intended for building other packages -which use "html_report" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "html_report" feature of the "%{crate}" crate. %files -n %{name}+html_report-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+runtime-dispatch-simd-devel Summary: %{summary} @@ -72,11 +72,11 @@ BuildArch: noarch %description -n %{name}+runtime-dispatch-simd-devel %{_description} -This package contains library source intended for building other packages -which use "runtime-dispatch-simd" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "runtime-dispatch-simd" feature of the "%{crate}" crate. %files -n %{name}+runtime-dispatch-simd-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index 79162cf..fa0663e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (bytecount-0.6.2.crate) = 990460eedfd41b6b52278c9dfcac81872e755d40cb839d162bddf44a30eec3a9fd76369847f10edf6c2b2d95cbec562e9a2a6c6dce37f2ee59ca9edfe972a279 +SHA512 (bytecount-0.6.3.crate) = 0c5f424329883726589e69842d2ac0767dc0b440d744a4452a14cbd449b8ca2e8117fa2978b4aa9b803a1a7cf79e9cf67e948057e8ee521e2422ca2e145ea670