From 44a72f0a6c18831957a8d925ef190ad484039f3b Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Nov 02 2018 19:09:01 +0000 Subject: Adapt to new packaging Signed-off-by: Igor Gnatenko --- diff --git a/rust-md5.spec b/rust-md5.spec index 7b05793..c996731 100644 --- a/rust-md5.spec +++ b/rust-md5.spec @@ -6,7 +6,7 @@ Name: rust-%{crate} Version: 0.3.8 -Release: 1%{?dist} +Release: 2%{?dist} Summary: MD5 hash function # Upstream license specification: Apache-2.0/MIT @@ -18,18 +18,36 @@ ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -%description -%{summary}. +%global _description \ +The package provides the MD5 hash function. + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -The package provides the MD5 hash function. +%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.md +%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 @@ -46,12 +64,10 @@ which use %{crate} from crates.io. %cargo_test %endif -%files devel -%license LICENSE.md -%doc README.md -%{cargo_registry}/%{crate}-%{version}/ - %changelog +* Fri Nov 02 2018 Igor Gnatenko - 0.3.8-2 +- Adapt to new packaging + * Sat Sep 08 2018 Josh Stone - 0.3.8-1 - Update to 0.3.8