You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-futures/rust-futures.spec

96 lines
2.9 KiB

# Generated by rust2rpm
%bcond_without check
%global debug_package %{nil}
%global crate futures
Name: rust-%{crate}
Version: 0.2.1
Release: 2%{?dist}
Summary: Implementation of futures and streams featuring zero allocations
# https://github.com/rust-lang-nursery/futures-rs/issues/1015
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
# [dependencies]
BuildRequires: (crate(futures-async-runtime) >= 0.2.1 with crate(futures-async-runtime) < 0.3.0)
BuildRequires: (crate(futures-channel) >= 0.2.1 with crate(futures-channel) < 0.3.0)
BuildRequires: (crate(futures-core) >= 0.2.1 with crate(futures-core) < 0.3.0)
BuildRequires: (crate(futures-executor) >= 0.2.1 with crate(futures-executor) < 0.3.0)
BuildRequires: (crate(futures-io) >= 0.2.1 with crate(futures-io) < 0.3.0)
BuildRequires: (crate(futures-macro-async) >= 0.2.1 with crate(futures-macro-async) < 0.3.0)
BuildRequires: (crate(futures-macro-await) >= 0.2.1 with crate(futures-macro-await) < 0.3.0)
BuildRequires: (crate(futures-sink) >= 0.2.1 with crate(futures-sink) < 0.3.0)
BuildRequires: (crate(futures-stable) >= 0.2.1 with crate(futures-stable) < 0.3.0)
BuildRequires: (crate(futures-util) >= 0.2.1 with crate(futures-util) < 0.3.0)
%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
%cargo_prep
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%ifarch ppc64
# https://bugzilla.redhat.com/show_bug.cgi?id=1563393
%cargo_test || :
%else
%cargo_test
%endif
%endif
%files devel
%{cargo_registry}/%{crate}-%{version}/
%changelog
* Fri Jun 29 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.1-2
- Fix build
* Fri May 25 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.1-1
- Update to 0.2.1
* Tue Apr 03 2018 Josh Stone <jistone@redhat.com> - 0.1.21-1
- Update to 0.1.21
* Fri Mar 23 2018 Josh Stone <jistone@redhat.com> - 0.1.19-1
- Update to 0.1.19
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.18-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Fri Jan 26 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.18-2
- Stop running useless chmod
* Fri Jan 26 2018 Josh Stone <jistone@redhat.com> - 0.1.18-1
- Update to 0.1.18
* Mon Jan 08 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.17-2
- Rebuild for rust-packaging v5
* Thu Jun 15 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.14-1
- Initial package