commit 3830f6f039914a6baa2e54a6b32481d533ad2216 Author: MSVSphere Packaging Team Date: Fri Dec 20 16:41:19 2024 +0300 import rust-primal-check-0.3.4-3.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..91a084f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/primal-check-0.3.4.crate diff --git a/.rust-primal-check.metadata b/.rust-primal-check.metadata new file mode 100644 index 0000000..f5ddc90 --- /dev/null +++ b/.rust-primal-check.metadata @@ -0,0 +1 @@ +61e76d086d00e400a40d8249258c9f9c48876b39 SOURCES/primal-check-0.3.4.crate diff --git a/SPECS/rust-primal-check.spec b/SPECS/rust-primal-check.spec new file mode 100644 index 0000000..b4fac53 --- /dev/null +++ b/SPECS/rust-primal-check.spec @@ -0,0 +1,120 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.3) +## 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 26 +%bcond_with check +%global debug_package %{nil} + +%global crate primal-check + +Name: rust-primal-check +Version: 0.3.4 +Release: %autorelease +Summary: Fast standalone primality testing + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/primal-check +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Fast standalone primality testing.} + +%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-MIT +%{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 + +%package -n %{name}+unstable-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+unstable-devel %{_description} + +This package contains library source intended for building other packages which +use the "unstable" feature of the "%{crate}" crate. + +%files -n %{name}+unstable-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep +%if %{without check} +sed -i -e '/dev-dependencies.primal/{N;d;}' Cargo.toml +%endif + +%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.4-3 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Tue Oct 29 2024 Orion Poplawski - 0.3.4-3 +- Bootstrap without %%check + +* Sat Jul 20 2024 Fedora Release Engineering - 0.3.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Mon Jun 10 2024 Fabio Valentini - 0.3.4-1 +- Update to version 0.3.4; Fixes RHBZ#2290992 + +* Fri Jan 26 2024 Fedora Release Engineering - 0.3.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 0.3.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Sat Jan 21 2023 Fedora Release Engineering - 0.3.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Oct 15 2022 Fabio Valentini - 0.3.3-1 +- Update to version 0.3.3; Fixes RHBZ#2134819 + +* Sat Oct 01 2022 Orion Poplawski - 0.3.2-1 +- Initial import +## END: Generated by rpmautospec