diff --git a/rust-smallvec.spec b/rust-smallvec.spec index fb28097..677ebea 100644 --- a/rust-smallvec.spec +++ b/rust-smallvec.spec @@ -7,7 +7,7 @@ Name: rust-%{crate} Version: 0.6.5 -Release: 2%{?dist} +Release: 3%{?dist} Summary: 'Small vector' optimization: store up to a small number of items on the stack # Upstream license specification: MIT/Apache-2.0 @@ -18,26 +18,66 @@ Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{ ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -# [dependencies] -BuildRequires: (crate(serde) >= 1.0.0 with crate(serde) < 2.0.0) -BuildRequires: (crate(unreachable) >= 1.0.0 with crate(unreachable) < 2.0.0) +BuildRequires: (crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0) +BuildRequires: (crate(unreachable/default) >= 1.0.0 with crate(unreachable/default) < 2.0.0) %if %{with check} -# [dev-dependencies] -BuildRequires: (crate(bincode) >= 1.0.1 with crate(bincode) < 2.0.0) +BuildRequires: (crate(bincode/default) >= 1.0.1 with crate(bincode/default) < 2.0.0) %endif -%description -%{summary}. +%global _description \ +'Small vector' optimization: store up to a small number of items on the stack. + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -'Small vector' optimization: store up to a small number of items on the stack. +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%license LICENSE-MIT LICENSE-APACHE +%doc README.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 %{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}+serde-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+serde-devel %{_description} + +This package contains library source intended for building other packages +which use "serde" feature of "%{crate}" crate. + +%files -n %{name}+serde-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +This package contains library source intended for building other packages +which use "std" feature of "%{crate}" crate. + +%files -n %{name}+std-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 @@ -54,12 +94,10 @@ which use %{crate} from crates.io. %cargo_test %endif -%files devel -%license LICENSE-MIT LICENSE-APACHE -%doc README.md -%{cargo_registry}/%{crate}-%{version}/ - %changelog +* Sat Oct 27 2018 Igor Gnatenko - 0.6.5-3 +- Adapt to new packaging + * Sun Oct 07 2018 Igor Gnatenko - 0.6.5-2 - Run tests in infrastructure