From 00e19cfd6cee6d29d11dea703e6e76601104cf16 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Nov 13 2018 00:10:03 +0000 Subject: Adapt to new packaging --- diff --git a/rust-difference.spec b/rust-difference.spec index fe7bd00..eddf227 100644 --- a/rust-difference.spec +++ b/rust-difference.spec @@ -9,7 +9,7 @@ Name: rust-%{crate} Version: 2.0.0 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Rust text diffing and assertion library License: MIT @@ -24,24 +24,55 @@ Patch0: difference-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging +BuildRequires: (crate(getopts/default) >= 0.2.0 with crate(getopts/default) < 0.3.0) %if %{with check} -# [dev-dependencies] -BuildRequires: (crate(quickcheck) >= 0.7.0 with crate(quickcheck) < 0.8.0) -BuildRequires: (crate(term) >= 0.5.0 with crate(term) < 0.6.0) +BuildRequires: (crate(quickcheck/default) >= 0.7.0 with crate(quickcheck/default) < 0.8.0) +BuildRequires: (crate(term/default) >= 0.5.0 with crate(term/default) < 0.6.0) %endif -%description -%{summary}. +%global _description \ +A Rust text diffing and assertion library. + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -A Rust text diffing and assertion library. +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%license LICENSE +%doc README.md +%{cargo_registry}/%{crate}-%{version}/ +%exclude %{cargo_registry}/%{crate}-%{version}/appveyor.yml + +%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}+getopts-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+getopts-devel %{_description} + +This package contains library source intended for building other packages +which use "getopts" feature of "%{crate}" crate. + +%files -n %{name}+getopts-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 @@ -58,13 +89,10 @@ which use %{crate} from crates.io. %cargo_test %endif -%files devel -%license LICENSE -%doc README.md -%{cargo_registry}/%{crate}-%{version}/ -%exclude %{cargo_registry}/%{crate}-%{version}/appveyor.yml - %changelog +* Tue Nov 13 2018 Josh Stone - 2.0.0-6 +- Adapt to new packaging + * Mon Sep 10 2018 Igor Gnatenko - 2.0.0-5 - Bump quickcheck to 0.7