From 24a23eca63286b2f37af3ee0005de6af00677878 Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Fri, 24 Feb 2023 14:22:23 -0600 Subject: [PATCH] Initial Fedora package Signed-off-by: Michel Alexandre Salim --- .gitignore | 1 + rust-atomic-polyfill0.1.spec | 70 ++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 72 insertions(+) create mode 100644 .gitignore create mode 100644 rust-atomic-polyfill0.1.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cea41a5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/atomic-polyfill-0.1.11.crate diff --git a/rust-atomic-polyfill0.1.spec b/rust-atomic-polyfill0.1.spec new file mode 100644 index 0000000..7ad1226 --- /dev/null +++ b/rust-atomic-polyfill0.1.spec @@ -0,0 +1,70 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate atomic-polyfill + +Name: rust-atomic-polyfill0.1 +Version: 0.1.11 +Release: %autorelease +Summary: Atomic polyfills, for targets where they're not available + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/atomic-polyfill +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Atomic polyfills, for targets where they're not available.} + +%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 +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/README.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 + +%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..2f706ea --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (atomic-polyfill-0.1.11.crate) = 09fce00854e79a45747c6b3b93691908f6cd677f35e8a22d86c51af8b6f3c38359526a4b317aade3d5016174b8ee6c73bd029f07a0489eaf9cee109945a51023