diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..60464ef --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/futures-0.1.17.crate diff --git a/rust-futures.spec b/rust-futures.spec new file mode 100644 index 0000000..83424a7 --- /dev/null +++ b/rust-futures.spec @@ -0,0 +1,59 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate futures + +Name: rust-%{crate} +Version: 0.1.17 +Release: 1%{?dist} +Summary: Implementation of futures and streams featuring zero allocations + +License: MIT or ASL 2.0 +URL: https://crates.io/crates/futures +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 +An implementation of futures and streams featuring zero allocations, +composability, and iterator-like interfaces. + +This package contains library source intended for building other packages +which use %{crate} from crates.io. + +%prep +%autosetup -n %{crate}-%{version} -p1 +# https://github.com/alexcrichton/futures-rs/pull/631 +chmod -x tests/support/mod.rs +%cargo_prep + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%files devel +%license LICENSE-MIT LICENSE-APACHE +%doc README.md CHANGELOG.md +%{cargo_registry}/%{crate}-%{version}/ +%exclude %{cargo_registry}/%{crate}-%{version}/appveyor.yml + +%changelog +* Thu Jun 15 2017 Igor Gnatenko - 0.1.14-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..e49a672 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (futures-0.1.17.crate) = 6a2dbbc11f65542a98e475da017713e0ef64a824f0814ecb94de371cba0e27475681c150e49d1c79978f7c1b7286810b59574cb0a744a47c0fedd167f590ce7a