diff --git a/rust-owning_ref.spec b/rust-owning_ref.spec index acd4a3b..03f5fc9 100644 --- a/rust-owning_ref.spec +++ b/rust-owning_ref.spec @@ -7,7 +7,7 @@ Name: rust-%{crate} Version: 0.3.3 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Library for creating references that carry their owner with them License: MIT @@ -20,21 +20,38 @@ Patch1: owning_ref-pr43-fix-tests.patch ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -# [dependencies] -BuildRequires: (crate(stable_deref_trait) >= 1.0.0 with crate(stable_deref_trait) < 2.0.0) +BuildRequires: (crate(stable_deref_trait/default) >= 1.0.0 with crate(stable_deref_trait/default) < 2.0.0) -%description -%{summary}. +%global _description \ +A library for creating references that carry their owner with them. + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -A library for creating references that carry their owner with them. +%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 @@ -51,12 +68,10 @@ which use %{crate} from crates.io. %cargo_test %endif -%files devel -%license LICENSE -%doc README.md -%{cargo_registry}/%{crate}-%{version}/ - %changelog +* Sat Oct 27 2018 Igor Gnatenko - 0.3.3-7 +- Adapt to new packaging + * Sun Oct 07 2018 Igor Gnatenko - 0.3.3-6 - Run tests in infrastructure