commit 124c0091241683d4e79e19e549cf4698ab76e1bc Author: tigro Date: Fri Oct 13 12:57:29 2023 +0300 import rust-maybe-rayon-0.1.1-1.el9 diff --git a/.rust-maybe-rayon.metadata b/.rust-maybe-rayon.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/maybe-rayon-0.1.1.crate b/SOURCES/maybe-rayon-0.1.1.crate new file mode 100644 index 0000000..934f1a9 Binary files /dev/null and b/SOURCES/maybe-rayon-0.1.1.crate differ diff --git a/SPECS/rust-maybe-rayon.spec b/SPECS/rust-maybe-rayon.spec new file mode 100644 index 0000000..465a532 --- /dev/null +++ b/SPECS/rust-maybe-rayon.spec @@ -0,0 +1,106 @@ +## 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 24 +%bcond_without check +%global debug_package %{nil} + +%global crate maybe-rayon + +Name: rust-maybe-rayon +Version: 0.1.1 +Release: %autorelease +Summary: Either acts as rayon or creates a single-threaded facade + +License: MIT +URL: https://crates.io/crates/maybe-rayon +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Either acts as rayon or creates a single-threaded facade.} + +%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 +%doc %{crate_instdir}/CHANGELOG.md +%{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}+rayon-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+rayon-devel %{_description} + +This package contains library source intended for building other packages which +use the "rayon" feature of the "%{crate}" crate. + +%files -n %{name}+rayon-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+threads-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+threads-devel %{_description} + +This package contains library source intended for building other packages which +use the "threads" feature of the "%{crate}" crate. + +%files -n %{name}+threads-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 +* Fri Oct 13 2023 Arkady L. Shane - 0.1.1-1 +- Rebuilt for MSVSphere 9.2 + +* Wed Jun 28 2023 Fabio Valentini - 0.1.1-1 +- Initial import (#2217973)