diff --git a/rust-slab.spec b/rust-slab.spec index bafd352..57dab82 100644 --- a/rust-slab.spec +++ b/rust-slab.spec @@ -6,7 +6,7 @@ Name: rust-%{crate} Version: 0.4.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Pre-allocated storage for a uniform data type License: MIT @@ -17,18 +17,36 @@ ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -%description -%{summary}. +%global _description \ +Pre-allocated storage for a uniform data type. + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -Pre-allocated storage for a uniform data type. +%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 +%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 "default" feature of "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 @@ -45,12 +63,10 @@ which use %{crate} from crates.io. %cargo_test %endif -%files devel -%license LICENSE -%doc README.md -%{cargo_registry}/%{crate}-%{version}/ - %changelog +* Thu Nov 08 2018 Josh Stone - 0.4.1-2 +- Adapt to new packaging + * Tue Aug 07 2018 Josh Stone - 0.4.1-1 - Update to 0.4.1