From c0d2cf66ed917dce908190930a7337723a388645 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Oct 27 2018 21:45:18 +0000 Subject: Adapt to new packaging Signed-off-by: Igor Gnatenko --- diff --git a/rust-void.spec b/rust-void.spec index 0469ee6..f516220 100644 --- a/rust-void.spec +++ b/rust-void.spec @@ -7,7 +7,7 @@ Name: rust-%{crate} Version: 1.0.2 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Uninhabited void type for use in statically impossible cases # https://github.com/reem/rust-void/issues/15 @@ -19,18 +19,47 @@ ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -%description -%{summary}. +%global _description \ +The uninhabited void type for use in statically impossible cases. + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -The uninhabited void type for use in statically impossible cases. +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%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}+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 @@ -47,11 +76,10 @@ which use %{crate} from crates.io. %cargo_test %endif -%files devel -%doc README.md -%{cargo_registry}/%{crate}-%{version}/ - %changelog +* Sat Oct 27 2018 Igor Gnatenko - 1.0.2-7 +- Adapt to new packaging + * Sun Oct 07 2018 Igor Gnatenko - 1.0.2-6 - Run tests in infrastructure