diff --git a/.gitignore b/.gitignore index 099e37d..e8e5b2b 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ /base64-0.12.2.crate /base64-0.12.3.crate /base64-0.13.0.crate +/base64-0.13.1.crate diff --git a/base64-fix-metadata.diff b/base64-fix-metadata.diff index 7751a54..4bad64a 100644 --- a/base64-fix-metadata.diff +++ b/base64-fix-metadata.diff @@ -1,11 +1,12 @@ ---- base64-0.13.0/Cargo.toml 2020-09-30T15:20:10+00:00 -+++ base64-0.13.0/Cargo.toml 2020-11-03T17:56:54.001965+00:00 -@@ -29,7 +29,7 @@ +--- base64-0.13.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ base64-0.13.1/Cargo.toml 2022-10-27T09:23:03.138999+00:00 +@@ -38,9 +38,6 @@ name = "benchmarks" harness = false - [dev-dependencies.criterion] --version = "=0.3.2" -+version = "0.3.2" +-[dev-dependencies.criterion] +-version = "=0.3.2" +- [dev-dependencies.rand] version = "0.6.1" + diff --git a/rust-base64.spec b/rust-base64.spec index 0c53ea2..fe8fb12 100644 --- a/rust-base64.spec +++ b/rust-base64.spec @@ -1,28 +1,25 @@ -# Generated by rust2rpm 15 +# Generated by rust2rpm 22 %bcond_without check %global debug_package %{nil} %global crate base64 -Name: rust-%{crate} -Version: 0.13.0 +Name: rust-base64 +Version: 0.13.1 Release: %autorelease Summary: Encodes and decodes base64 as bytes or utf8 # Upstream license specification: MIT/Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/base64 Source: %{crates_source} -# Initial patched metadata -# * relax exact criterion dependency -Patch0: base64-fix-metadata.diff +# Manually created patch for downstream crate metadata changes +# * drop unused, benchmark-only criterion dev-dependency to speed up builds +Patch: base64-fix-metadata.diff ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Encodes and decodes base64 as bytes or utf8.} @@ -35,13 +32,15 @@ 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-MIT LICENSE-APACHE -%doc README.md RELEASE-NOTES.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README.md +%doc %{crate_instdir}/RELEASE-NOTES.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -49,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}+alloc-devel Summary: %{summary} @@ -61,11 +60,11 @@ BuildArch: noarch %description -n %{name}+alloc-devel %{_description} -This package contains library source intended for building other packages -which use "alloc" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "alloc" feature of the "%{crate}" crate. %files -n %{name}+alloc-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} @@ -73,11 +72,11 @@ BuildArch: noarch %description -n %{name}+std-devel %{_description} -This package contains library source intended for building other packages -which use "std" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "std" feature of the "%{crate}" crate. %files -n %{name}+std-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 36c9e69..dfd767b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (base64-0.13.0.crate) = 991a72999839daa232f508c5b24e7d3225e8a26db8d1d0e747881b115af9e408b92374e163b31e0b0d324c1c2e57e8e38d66861b61eb0a1dba87bb5871940151 +SHA512 (base64-0.13.1.crate) = 1eb76aff9a84057f2ccb7082e9c57b015c2d71a28173089b02e7aacd09a7d311bedf0a943529611ada29f8d7b536d7ae4de256d98eee8450003a3a9a652bda4b