diff --git a/rust-recycler.spec b/rust-recycler.spec index 13175af..a89ec27 100644 --- a/rust-recycler.spec +++ b/rust-recycler.spec @@ -6,7 +6,7 @@ Name: rust-%{crate} Version: 0.1.4 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Small Rust library for recycling types containing owned memory License: MIT @@ -17,18 +17,36 @@ ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -%description -%{summary}. +%global _description \ +A small Rust library for recycling types containing owned memory. + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -A small Rust library for recycling types containing owned memory. +%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,11 +63,9 @@ which use %{crate} from crates.io. %cargo_test %endif -%files devel -%license LICENSE -%doc README.md -%{cargo_registry}/%{crate}-%{version}/ - %changelog +* Wed Nov 14 2018 Igor Gnatenko - 0.1.4-2 +- Adapt to new packaging + * Mon Sep 10 2018 Igor Gnatenko - 0.1.4-1 - Initial package