From b5d582a21f43eb8b8e369e2b68aeced5a2001fb5 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Nov 03 2018 12:12:54 +0000 Subject: Adapt to new packaging Signed-off-by: Igor Gnatenko --- diff --git a/rust-lab.spec b/rust-lab.spec index 6e6cf69..79b7f4d 100644 --- a/rust-lab.spec +++ b/rust-lab.spec @@ -6,7 +6,7 @@ Name: rust-%{crate} Version: 0.6.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Tools for converting RGB colors to the CIE-L*a*b* color space License: MIT @@ -17,23 +17,40 @@ ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging %if %{with check} -# [dev-dependencies] -BuildRequires: (crate(rand) >= 0.5.0 with crate(rand) < 0.6.0) +BuildRequires: (crate(rand/default) >= 0.5.0 with crate(rand/default) < 0.6.0) %endif -%description -%{summary}. +%global _description \ +Tools for converting RGB colors to the CIE-L*a*b* color space, and compating\ +differences in color. + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -Tools for converting RGB colors to the CIE-L*a*b* color space, and -comparing differences in color. +%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 CHANGELOG.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 @@ -50,11 +67,9 @@ which use %{crate} from crates.io. %cargo_test %endif -%files devel -%license LICENSE -%doc README.md CHANGELOG.md -%{cargo_registry}/%{crate}-%{version}/ - %changelog +* Sat Nov 03 2018 Igor Gnatenko - 0.6.0-2 +- Adapt to new packaging + * Mon Oct 01 2018 Igor Gnatenko - 0.6.0-1 - Initial package