From f76a15cf2fc96595594e47651fab208c9fdeb0ab Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sat, 27 Oct 2018 22:48:37 +0200 Subject: [PATCH] Adapt to new packaging Signed-off-by: Igor Gnatenko --- rust-fnv.spec | 39 ++++++++++++++++++++++++++++----------- 1 file changed, 28 insertions(+), 11 deletions(-) diff --git a/rust-fnv.spec b/rust-fnv.spec index 5755f05..99139e6 100644 --- a/rust-fnv.spec +++ b/rust-fnv.spec @@ -7,9 +7,10 @@ Name: rust-%{crate} Version: 1.0.6 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Fowler–Noll–Vo hash function +# Upstream license specification: Apache-2.0 / MIT License: ASL 2.0 or MIT URL: https://crates.io/crates/fnv Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate @@ -18,18 +19,36 @@ ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -%description -%{summary}. +%global _description \ +Fowler–Noll–Vo hash function. + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -Fowler–Noll–Vo 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-APACHE LICENSE-MIT +%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 +65,10 @@ which use %{crate} from crates.io. %cargo_test %endif -%files devel -%license LICENSE-APACHE LICENSE-MIT -%doc README.md -%{cargo_registry}/%{crate}-%{version}/ - %changelog +* Sat Oct 27 2018 Igor Gnatenko - 1.0.6-6 +- Adapt to new packaging + * Sun Oct 07 2018 Igor Gnatenko - 1.0.6-5 - Run tests in infrastructure