diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f3e7f5f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/atomic-0.5.1.crate diff --git a/rust-atomic.spec b/rust-atomic.spec new file mode 100644 index 0000000..e4138ce --- /dev/null +++ b/rust-atomic.spec @@ -0,0 +1,95 @@ +# Generated by rust2rpm 20 +%bcond_without check +%global debug_package %{nil} + +%global crate atomic + +Name: rust-%{crate} +Version: 0.5.1 +Release: %autorelease +Summary: Generic Atomic wrapper type + +# Upstream license specification: Apache-2.0/MIT +License: ASL 2.0 or MIT +URL: https://crates.io/crates/atomic +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging + +%global _description %{expand: +Generic Atomic wrapper type.} + +%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 LICENSE-APACHE LICENSE-MIT +%doc README.md +%{cargo_registry}/%{crate}-%{version_no_tilde}/ + +%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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+fallback-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+fallback-devel %{_description} + +This package contains library source intended for building other packages which +use the "fallback" feature of the "%{crate}" crate. + +%files -n %{name}+fallback-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 %{cargo_registry}/%{crate}-%{version_no_tilde}/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..04fc5c3 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (atomic-0.5.1.crate) = d9983a39da849a9852237eb00e727fee10b30b15b2e75f6c7e091a2fbadd289c688744997ae1ea933f1541cf867b7df3531870e7628ae9ef75fc7a78dccc9bd4