commit bb769f32785dae6c93540fd8ff2e5735e317fa7d Author: MSVSphere Packaging Team Date: Fri Dec 20 15:09:58 2024 +0300 import rust-constant_time_eq-0.3.1-1.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cee9873 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/constant_time_eq-0.3.1.crate diff --git a/.rust-constant_time_eq.metadata b/.rust-constant_time_eq.metadata new file mode 100644 index 0000000..94c0e49 --- /dev/null +++ b/.rust-constant_time_eq.metadata @@ -0,0 +1 @@ +a53afa77722dc4dadb3874484b4ee22cd587750c SOURCES/constant_time_eq-0.3.1.crate diff --git a/SOURCES/constant_time_eq-fix-metadata.diff b/SOURCES/constant_time_eq-fix-metadata.diff new file mode 100644 index 0000000..2d77ecd --- /dev/null +++ b/SOURCES/constant_time_eq-fix-metadata.diff @@ -0,0 +1,35 @@ +--- constant_time_eq-0.3.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ constant_time_eq-0.3.1/Cargo.toml 2024-09-17T20:45:39.486573+00:00 +@@ -28,31 +28,9 @@ + "cryptography", + "no-std", + ] +-license = "CC0-1.0 OR MIT-0 OR Apache-2.0" ++license = "MIT-0 OR Apache-2.0" + repository = "https://github.com/cesarb/constant_time_eq" + + [lib] + name = "constant_time_eq" + path = "src/lib.rs" +- +-[[test]] +-name = "count_instructions" +-path = "tests/count_instructions.rs" +- +-[[bench]] +-name = "bench" +-path = "benches/bench.rs" +-harness = false +- +-[dev-dependencies.count_instructions] +-version = "0.1.3" +- +-[dev-dependencies.criterion] +-version = "0.5.1" +-features = [ +- "cargo_bench_support", +- "html_reports", +-] +- +-[features] +-count_instructions_test = [] diff --git a/SPECS/rust-constant_time_eq.spec b/SPECS/rust-constant_time_eq.spec new file mode 100644 index 0000000..82fda7c --- /dev/null +++ b/SPECS/rust-constant_time_eq.spec @@ -0,0 +1,131 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.2) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 1; + 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 26 +%bcond_without check +%global debug_package %{nil} + +%global crate constant_time_eq + +Name: rust-constant_time_eq +Version: 0.3.1 +Release: %autorelease +Summary: Compares two equal-sized byte strings in constant time + +License: MIT-0 OR Apache-2.0 +URL: https://crates.io/crates/constant_time_eq +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * remove CC0-1.0 from license metadata (not acceptable for code in Fedora) +# * drop unused, benchmark-only criterion dev-dependency to speed up builds +# * drop unused count_instructions dev-dependency and associated feature +Patch: constant_time_eq-fix-metadata.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Compares two equal-sized byte strings in constant time.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages which +use the "%{crate}" crate. + +%files devel +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-CC0 +%license %{crate_instdir}/LICENSE-MIT0 +%doc %{crate_instdir}/README +%{crate_instdir}/ + +%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 the "default" feature of the "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Fri Dec 20 2024 MSVSphere Packaging Team - 0.3.1-1 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Tue Sep 17 2024 Fabio Valentini - 0.3.1-1 +- Update to version 0.3.1; Fixes RHBZ#2308070 + +* Fri Jul 19 2024 Fedora Release Engineering - 0.3.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jan 26 2024 Fedora Release Engineering - 0.3.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jan 19 2024 Fabio Valentini - 0.3.0-2 +- Remove CC0-1.0 from license metadata (not acceptable for code in Fedora) + +* Sat Jan 06 2024 Michel Lind - 0.3.0-1 +- Update to 0.3.0 + +* Fri Jul 21 2023 Fedora Release Engineering - 0.2.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Mon Jun 12 2023 Fabio Valentini - 0.2.6-1 +- Update to version 0.2.6; Fixes RHBZ#2213980 + +* Sun Mar 12 2023 Fabio Valentini - 0.2.5-1 +- Update to version 0.2.5; Fixes RHBZ#2177467 + +* Fri Jan 20 2023 Fedora Release Engineering - 0.2.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Wed Aug 10 2022 Fabio Valentini - 0.2.4-1 +- Update to version 0.2.4; Fixes RHBZ#2066007 + +* Sat Jul 23 2022 Fedora Release Engineering - 0.1.5-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 0.1.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 0.1.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Thu Jun 17 2021 Davide Cavalca - 0.1.5-1 +- Initial package + +## END: Generated by rpmautospec