From 73c578d9aa414031fe8fc01f5b00d0b080bfc7c8 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 28 Jun 2023 18:38:00 +0200 Subject: [PATCH] Initial import (#2217973) --- .gitignore | 1 + README.md | 3 -- rust-maybe-rayon.spec | 92 +++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 94 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-maybe-rayon.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7e9c0b4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/maybe-rayon-0.1.1.crate diff --git a/README.md b/README.md deleted file mode 100644 index bb807d5..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-maybe-rayon - -The rust-maybe-rayon package diff --git a/rust-maybe-rayon.spec b/rust-maybe-rayon.spec new file mode 100644 index 0000000..dd18e01 --- /dev/null +++ b/rust-maybe-rayon.spec @@ -0,0 +1,92 @@ +# 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 +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..a1789f6 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (maybe-rayon-0.1.1.crate) = 6f4e0e2a342fc86b5d0626a08779075c68911ffd3f837ac6ab2c15c821ba96e50617cfc9df9d16bf96ae57fa1802c5549e21d67f79e4e1c3f10bce04b88115e9