diff --git a/rust-crates-io.spec b/rust-crates-io.spec index cd06d1b..96611f4 100644 --- a/rust-crates-io.spec +++ b/rust-crates-io.spec @@ -7,7 +7,7 @@ Name: rust-%{crate} Version: 0.18.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Helpers for interacting with crates.io # Upstream license specification: MIT OR Apache-2.0 @@ -18,26 +18,42 @@ Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{ ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -# [dependencies] -BuildRequires: (crate(curl) >= 0.4.0 with crate(curl) < 0.5.0) -BuildRequires: (crate(failure) >= 0.1.1 with crate(failure) < 0.2.0) -BuildRequires: (crate(serde) >= 1.0.0 with crate(serde) < 2.0.0) -BuildRequires: (crate(serde_derive) >= 1.0.0 with crate(serde_derive) < 2.0.0) -BuildRequires: (crate(serde_json) >= 1.0.0 with crate(serde_json) < 2.0.0) -BuildRequires: (crate(url) >= 1.0.0 with crate(url) < 2.0.0) +BuildRequires: (crate(curl/default) >= 0.4.0 with crate(curl/default) < 0.5.0) +BuildRequires: (crate(failure/default) >= 0.1.1 with crate(failure/default) < 0.2.0) +BuildRequires: (crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0) +BuildRequires: (crate(serde_derive/default) >= 1.0.0 with crate(serde_derive/default) < 2.0.0) +BuildRequires: (crate(serde_json/default) >= 1.0.0 with crate(serde_json/default) < 2.0.0) +BuildRequires: (crate(url/default) >= 1.0.0 with crate(url/default) < 2.0.0) + +%global _description \ +Helpers for interacting with crates.io. -%description -%{summary}. +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -Helpers for interacting with crates.io. +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%license LICENSE-MIT LICENSE-APACHE +%{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 %{crate} from crates.io. +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 @@ -54,11 +70,10 @@ which use %{crate} from crates.io. %cargo_test %endif -%files devel -%license LICENSE-MIT LICENSE-APACHE -%{cargo_registry}/%{crate}-%{version}/ - %changelog +* Tue Nov 13 2018 Josh Stone - 0.18.0-2 +- Adapt to new packaging + * Sun Oct 21 2018 Igor Gnatenko - 0.18.0-1 - Update to 0.18.0