diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..18a9936 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/futures-task-0.3.1.crate diff --git a/rust-futures-task.spec b/rust-futures-task.spec new file mode 100644 index 0000000..3e081aa --- /dev/null +++ b/rust-futures-task.spec @@ -0,0 +1,122 @@ +# Generated by rust2rpm 11 +%bcond_without check +%global debug_package %{nil} + +%global crate futures-task + +Name: rust-%{crate} +Version: 0.3.1 +Release: 1%{?dist} +Summary: Tools for working with tasks + +# Upstream license specification: MIT OR Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/futures-task +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Tools for working with tasks.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%license LICENSE-APACHE LICENSE-MIT +%{cargo_registry}/%{crate}-%{version}/ + +%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 "default" feature of "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version}/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 "alloc" feature of "%{crate}" crate. + +%files -n %{name}+alloc-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+cfg-target-has-atomic-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+cfg-target-has-atomic-devel %{_description} + +This package contains library source intended for building other packages +which use "cfg-target-has-atomic" feature of "%{crate}" crate. + +%files -n %{name}+cfg-target-has-atomic-devel +%ghost %{cargo_registry}/%{crate}-%{version}/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 "std" feature of "%{crate}" crate. + +%files -n %{name}+std-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+unstable-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+unstable-devel %{_description} + +This package contains library source intended for building other packages +which use "unstable" feature of "%{crate}" crate. + +%files -n %{name}+unstable-devel +%ghost %{cargo_registry}/%{crate}-%{version}/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 +* Fri Dec 13 20:52:40 CET 2019 Robert-André Mauchin - 0.3.1-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..8b47e21 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (futures-task-0.3.1.crate) = 0d8d8b23a48c5bf9f143c4918b0afd00ee3e898afd1ab092a072adbebbd9e60dd9c21a781735845b6d4de27fdebad7b12e5b715758696f277b0c70b882bd523e