|
|
|
@ -6,7 +6,7 @@
|
|
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
|
Version: 0.4.1
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Summary: Support for concurrent programming
|
|
|
|
|
|
|
|
|
|
# Upstream license specification: MIT/Apache-2.0
|
|
|
|
@ -20,29 +20,61 @@ Patch0: crossbeam-fix-metadata.diff
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
|
# [dependencies]
|
|
|
|
|
BuildRequires: (crate(crossbeam-channel) >= 0.2.0 with crate(crossbeam-channel) < 0.3.0)
|
|
|
|
|
BuildRequires: (crate(crossbeam-deque) >= 0.5.0 with crate(crossbeam-deque) < 0.6.0)
|
|
|
|
|
BuildRequires: (crate(crossbeam-epoch) >= 0.5.0 with crate(crossbeam-epoch) < 0.6.0)
|
|
|
|
|
BuildRequires: (crate(crossbeam-utils) >= 0.5.0 with crate(crossbeam-utils) < 0.6.0)
|
|
|
|
|
BuildRequires: (crate(crossbeam-channel/default) >= 0.2.0 with crate(crossbeam-channel/default) < 0.3.0)
|
|
|
|
|
BuildRequires: (crate(crossbeam-deque/default) >= 0.5.0 with crate(crossbeam-deque/default) < 0.6.0)
|
|
|
|
|
BuildRequires: (crate(crossbeam-epoch/default) >= 0.5.0 with crate(crossbeam-epoch/default) < 0.6.0)
|
|
|
|
|
BuildRequires: (crate(crossbeam-epoch/use_std) >= 0.5.0 with crate(crossbeam-epoch/use_std) < 0.6.0)
|
|
|
|
|
BuildRequires: (crate(crossbeam-utils/default) >= 0.5.0 with crate(crossbeam-utils/default) < 0.6.0)
|
|
|
|
|
BuildRequires: (crate(crossbeam-utils/use_std) >= 0.5.0 with crate(crossbeam-utils/use_std) < 0.6.0)
|
|
|
|
|
%if %{with check}
|
|
|
|
|
# [dev-dependencies]
|
|
|
|
|
BuildRequires: (crate(rand) >= 0.5.0 with crate(rand) < 0.6.0)
|
|
|
|
|
BuildRequires: (crate(rand/default) >= 0.5.0 with crate(rand/default) < 0.6.0)
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
%{summary}.
|
|
|
|
|
%global _description \
|
|
|
|
|
Support for concurrent programming: memory management, utilities, non-blocking\
|
|
|
|
|
data structures.
|
|
|
|
|
|
|
|
|
|
%description %{_description}
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
Support for concurrent programming: memory management, utilities, non-blocking
|
|
|
|
|
data structures.
|
|
|
|
|
%description devel %{_description}
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
|
which use "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%license LICENSE-APACHE LICENSE-MIT
|
|
|
|
|
%doc README.md CHANGELOG.md
|
|
|
|
|
%{cargo_registry}/%{crate}-%{version}/
|
|
|
|
|
# https://github.com/aturon/crossbeam/issues/111
|
|
|
|
|
%exclude %{_bindir}/{stress-msq,bench}
|
|
|
|
|
|
|
|
|
|
%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 %{crate} from crates.io.
|
|
|
|
|
which use "default" feature of "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+default-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+use_std-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+use_std-devel %{_description}
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
|
which use "use_std" feature of "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+use_std-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{crate}-%{version} -p1
|
|
|
|
@ -59,14 +91,10 @@ which use %{crate} from crates.io.
|
|
|
|
|
%cargo_test
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%license LICENSE-APACHE LICENSE-MIT
|
|
|
|
|
%doc README.md CHANGELOG.md
|
|
|
|
|
%{cargo_registry}/%{crate}-%{version}/
|
|
|
|
|
# https://github.com/aturon/crossbeam/issues/111
|
|
|
|
|
%exclude %{_bindir}/{stress-msq,bench}
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Nov 13 2018 Josh Stone <jistone@redhat.com> - 0.4.1-2
|
|
|
|
|
- Adapt to new packaging
|
|
|
|
|
|
|
|
|
|
* Sat Sep 08 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.4.1-1
|
|
|
|
|
- Update to 0.4.1
|
|
|
|
|
|
|
|
|
|