diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..aeb740b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/fragile-0.3.0.crate diff --git a/rust-fragile.spec b/rust-fragile.spec new file mode 100644 index 0000000..a237ed5 --- /dev/null +++ b/rust-fragile.spec @@ -0,0 +1,56 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate fragile + +Name: rust-%{crate} +Version: 0.3.0 +Release: 1%{?dist} +Summary: Wrapper types for sending non-send values to other threads + +# Upstream license specification: Apache-2.0 +License: ASL 2.0 +URL: https://crates.io/crates/fragile +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging + +%description +%{summary}. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +Provides wrapper types for sending non-send values to other threads. + +This package contains library source intended for building other packages +which use %{crate} from crates.io. + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%files devel +%license LICENSE +%doc README.md +%{cargo_registry}/%{crate}-%{version}/ + +%changelog +* Tue Sep 11 2018 Igor Gnatenko - 0.3.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..902087e --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (fragile-0.3.0.crate) = 5307919178a440abf932857162b66b7a1a769513820c55c6827e8031894029f2d84920773899e6ae39ba1d8a8c0da2816ce9af7007416ab4e0e2c115090d8a1c