diff --git a/rust-structopt-derive.spec b/rust-structopt-derive.spec index ebbd120..6ddca1b 100644 --- a/rust-structopt-derive.spec +++ b/rust-structopt-derive.spec @@ -6,7 +6,7 @@ Name: rust-%{crate} Version: 0.2.12 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Parse command line argument by defining a struct, derive crate # Upstream license specification: Apache-2.0/MIT @@ -17,23 +17,39 @@ Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{ ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -# [dependencies] -BuildRequires: (crate(proc-macro2) >= 0.4.0 with crate(proc-macro2) < 0.5.0) -BuildRequires: (crate(quote) >= 0.6.0 with crate(quote) < 0.7.0) -BuildRequires: (crate(syn) >= 0.15.0 with crate(syn) < 0.16.0) +BuildRequires: (crate(proc-macro2/default) >= 0.4.0 with crate(proc-macro2/default) < 0.5.0) +BuildRequires: (crate(quote/default) >= 0.6.0 with crate(quote/default) < 0.7.0) +BuildRequires: (crate(syn/default) >= 0.15.0 with crate(syn/default) < 0.16.0) -%description -%{summary}. +%global _description \ +Parse command line argument by defining a struct, derive crate. + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -Parse command line argument by defining a struct, derive crate. +%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-APACHE LICENSE-MIT +%{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 @@ -50,11 +66,10 @@ which use %{crate} from crates.io. %cargo_test %endif -%files devel -%license LICENSE-APACHE LICENSE-MIT -%{cargo_registry}/%{crate}-%{version}/ - %changelog +* Fri Nov 09 2018 Josh Stone - 0.2.12-2 +- Adapt to new packaging + * Thu Oct 11 2018 Josh Stone - 0.2.12-1 - Update to 0.2.12