diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..430b5bc --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/primal-check-0.3.2.crate diff --git a/rust-primal-check.spec b/rust-primal-check.spec new file mode 100644 index 0000000..a3a6750 --- /dev/null +++ b/rust-primal-check.spec @@ -0,0 +1,83 @@ +# Generated by rust2rpm 22 +# Circular dep with primal - build without check to bootstrap +%bcond_with check +%global debug_package %{nil} + +%global crate primal-check + +Name: rust-primal-check +Version: 0.3.2 +Release: %autorelease +Summary: Fast standalone primality testing + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/primal-check +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging >= 21 + +%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_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..68509cb --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (primal-check-0.3.2.crate) = 1261b67c740c99d639fab0a108b875f86def83eb7856ff7625c6609802a8445771b9c838b2aded1aa3f44cc5632b370ac0dd0d14574923adaccd7184cdb8a811