commit db719653a82120e5be125f586d2779aaf221ce7c Author: tigro Date: Mon Jan 15 20:53:36 2024 +0300 import rust-crypto-mac-0.11.1-3.el9 diff --git a/.rust-crypto-mac.metadata b/.rust-crypto-mac.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/crypto-mac-0.11.1.crate b/SOURCES/crypto-mac-0.11.1.crate new file mode 100644 index 0000000..22d8fa3 Binary files /dev/null and b/SOURCES/crypto-mac-0.11.1.crate differ diff --git a/SOURCES/crypto-mac-fix-metadata.diff b/SOURCES/crypto-mac-fix-metadata.diff new file mode 100644 index 0000000..ff83477 --- /dev/null +++ b/SOURCES/crypto-mac-fix-metadata.diff @@ -0,0 +1,11 @@ +--- crypto-mac-0.11.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ crypto-mac-0.11.1/Cargo.toml 2021-08-24T21:05:24.725574+00:00 +@@ -37,7 +37,7 @@ + version = "0.14" + + [dependencies.subtle] +-version = "=2.4" ++version = "2.4" + default-features = false + + [features] diff --git a/SPECS/rust-crypto-mac.spec b/SPECS/rust-crypto-mac.spec new file mode 100644 index 0000000..88b3c84 --- /dev/null +++ b/SPECS/rust-crypto-mac.spec @@ -0,0 +1,177 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.3.5) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 3; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + +# Generated by rust2rpm 18 +%bcond_without check +%global debug_package %{nil} + +%global crate crypto-mac + +Name: rust-%{crate} +Version: 0.11.1 +Release: %autorelease +Summary: Trait for Message Authentication Code (MAC) algorithms + +# Upstream license specification: MIT OR Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/crypto-mac +Source: %{crates_source} +# Initial patched metadata +# * relax subtle dependency +Patch0: crypto-mac-fix-metadata.diff + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Trait for Message Authentication Code (MAC) algorithms.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%license LICENSE-MIT LICENSE-APACHE +%doc README.md CHANGELOG.md +%{cargo_registry}/%{crate}-%{version_no_tilde}/ + +%package -n %{name}+default-devel +Summary: %{summary} +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. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+blobby-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+blobby-devel %{_description} + +This package contains library source intended for building other packages +which use "blobby" feature of "%{crate}" crate. + +%files -n %{name}+blobby-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+cipher-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+cipher-devel %{_description} + +This package contains library source intended for building other packages +which use "cipher" feature of "%{crate}" crate. + +%files -n %{name}+cipher-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+dev-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+dev-devel %{_description} + +This package contains library source intended for building other packages +which use "dev" feature of "%{crate}" crate. + +%files -n %{name}+dev-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+std-devel +Summary: %{summary} +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. + +%files -n %{name}+std-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Mon Jan 15 2024 Arkady L. Shane - 0.11.1-3 +- Rebuilt for MSVSphere 9.3 + +* Sat Jul 23 2022 Fedora Release Engineering - 0.11.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 0.11.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Tue Aug 24 2021 Fabio Valentini - 0.11.1-1 +- Update to version 0.11.1; Fixes RHBZ#1911695 + +* Fri Jul 23 2021 Fedora Release Engineering - 0.10.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 0.10.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Sat Nov 14 2020 Fabio Valentini - 0.10.0-1 +- Update to version 0.10.0. +- Fixes RHBZ#1867794 + +* Wed Jul 29 2020 Fedora Release Engineering - 0.8.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sun Jun 21 10:04:50 CEST 2020 Igor Raits - 0.8.0-1 +- Update to 0.8.0 + +* Thu Feb 20 2020 Josh Stone - 0.7.0-5 +- Bump generic-array to 0.13 + +* Thu Jan 30 2020 Fedora Release Engineering - 0.7.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Jul 26 2019 Fedora Release Engineering - 0.7.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Jun 22 16:21:08 CEST 2019 Igor Gnatenko - 0.7.0-2 +- Regenerate + +* Wed Mar 13 2019 Igor Gnatenko - 0.7.0-1 +- Initial package +