commit 8355bd416598cac3759a3e7a7780537ebd97519a Author: tigro Date: Mon Jan 15 20:50:07 2024 +0300 import rust-constant_time_eq-0.3.0-1.el9 diff --git a/.rust-constant_time_eq.metadata b/.rust-constant_time_eq.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/constant_time_eq-0.3.0.crate b/SOURCES/constant_time_eq-0.3.0.crate new file mode 100644 index 0000000..90899e8 Binary files /dev/null and b/SOURCES/constant_time_eq-0.3.0.crate differ diff --git a/SOURCES/constant_time_eq-fix-metadata.diff b/SOURCES/constant_time_eq-fix-metadata.diff new file mode 100644 index 0000000..7672067 --- /dev/null +++ b/SOURCES/constant_time_eq-fix-metadata.diff @@ -0,0 +1,23 @@ +--- constant_time_eq-0.3.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ constant_time_eq-0.3.0/Cargo.toml 2024-01-06T05:07:59.388894+00:00 +@@ -25,20 +25,3 @@ + ] + license = "CC0-1.0 OR MIT-0 OR Apache-2.0" + repository = "https://github.com/cesarb/constant_time_eq" +- +-[[bench]] +-name = "bench" +-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..c87835b --- /dev/null +++ b/SPECS/rust-constant_time_eq.spec @@ -0,0 +1,116 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.3.5) +## 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 25 +%bcond_without check +%global debug_package %{nil} + +%global crate constant_time_eq + +Name: rust-constant_time_eq +Version: 0.3.0 +Release: %autorelease +Summary: Compares two equal-sized byte strings in constant time + +License: CC0-1.0 OR 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 +# * 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 +* Mon Jan 15 2024 Arkady L. Shane - 0.3.0-1 +- Rebuilt for MSVSphere 9.3 + +* 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 +