From ca0bb5aa2fe1f1e2af0c53d5735a39e304bb04b5 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sun, 28 Oct 2018 02:31:11 +0200 Subject: [PATCH] Adapt to new packaging Signed-off-by: Igor Gnatenko --- rust-crossbeam-deque.spec | 46 +++++++++++++++++++++++++-------------- 1 file changed, 30 insertions(+), 16 deletions(-) diff --git a/rust-crossbeam-deque.spec b/rust-crossbeam-deque.spec index 46ae8f9..750adaa 100644 --- a/rust-crossbeam-deque.spec +++ b/rust-crossbeam-deque.spec @@ -6,7 +6,7 @@ Name: rust-%{crate} Version: 0.6.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Concurrent work-stealing deque # Upstream license specification: MIT/Apache-2.0 @@ -17,26 +17,42 @@ Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{ ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -# [dependencies] -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-epoch/default) >= 0.5.0 with crate(crossbeam-epoch/default) < 0.6.0) +BuildRequires: (crate(crossbeam-utils/default) >= 0.5.0 with crate(crossbeam-utils/default) < 0.6.0) %if %{with check} -# [dev-dependencies] -BuildRequires: (crate(rand) >= 0.5.3 with crate(rand) < 0.6.0) +BuildRequires: (crate(rand/default) >= 0.5.3 with crate(rand/default) < 0.6.0) %endif -%description -%{summary}. +%global _description \ +Concurrent work-stealing deque. + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -Concurrent work-stealing deque. +%description devel %{_description} This package contains library source intended for building other packages -which use %{crate} from crates.io. +which use "%{crate}" crate. + +%files devel +%license LICENSE-MIT LICENSE-APACHE +%doc README.md CHANGELOG.md +%{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 %prep %autosetup -n %{crate}-%{version} -p1 @@ -53,12 +69,10 @@ which use %{crate} from crates.io. %cargo_test %endif -%files devel -%license LICENSE-MIT LICENSE-APACHE -%doc README.md CHANGELOG.md -%{cargo_registry}/%{crate}-%{version}/ - %changelog +* Sun Oct 28 2018 Igor Gnatenko - 0.6.1-2 +- Adapt to new packaging + * Sat Sep 08 2018 Igor Gnatenko - 0.6.1-1 - Update to 0.6.1