diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8180980 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/portable-atomic-util-0.1.3.crate diff --git a/README.md b/README.md deleted file mode 100644 index b815631..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-portable-atomic-util - -The rust-portable-atomic-util package diff --git a/rust-portable-atomic-util.spec b/rust-portable-atomic-util.spec new file mode 100644 index 0000000..e1cdfa9 --- /dev/null +++ b/rust-portable-atomic-util.spec @@ -0,0 +1,94 @@ +# Generated by rust2rpm 25 +%bcond_without check +%global debug_package %{nil} + +%global crate portable-atomic-util + +Name: rust-portable-atomic-util +Version: 0.1.3 +Release: %autorelease +Summary: Synchronization primitives built with portable-atomic + +License: Apache-2.0 OR MIT +URL: https://crates.io/crates/portable-atomic-util +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Synchronization primitives built with portable-atomic.} + +%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 + +%package -n %{name}+alloc-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+alloc-devel %{_description} + +This package contains library source intended for building other packages which +use the "alloc" feature of the "%{crate}" crate. + +%files -n %{name}+alloc-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +This package contains library source intended for building other packages which +use the "std" feature of the "%{crate}" crate. + +%files -n %{name}+std-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version} -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..d241aa5 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (portable-atomic-util-0.1.3.crate) = 50734e5b8e2df78bc90eb090e0895ad30cb8072ed32ecbf79e142b263c6b8c67f40dd6216d9a7ec4cc20ec2ec72aa8838a1d69222c48d30d731afb92d7c1cbc3