diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..97be7b2 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/atomic-polyfill-1.0.1.crate diff --git a/README.md b/README.md deleted file mode 100644 index e710200..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-atomic-polyfill - -The rust-atomic-polyfill package diff --git a/rust-atomic-polyfill.spec b/rust-atomic-polyfill.spec new file mode 100644 index 0000000..4c76a53 --- /dev/null +++ b/rust-atomic-polyfill.spec @@ -0,0 +1,70 @@ +# Generated by rust2rpm 23 +%bcond_without check +%global debug_package %{nil} + +%global crate atomic-polyfill + +Name: rust-atomic-polyfill +Version: 1.0.1 +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..7997411 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (atomic-polyfill-1.0.1.crate) = 7600a5b3ffda01981218dcccda33f73cd236a833577f6dcb4eabaa4ea4a8aa01bc849017d7f1a6830f2c5ae76035c2ee41c19bad0611981a6b185dff6e662f9b