From 31f2f183499ef7bd1a5ba3fe36fce1e02fba8982 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert-Andr=C3=A9=20Mauchin?= Date: Fri, 9 Nov 2018 21:08:29 +0100 Subject: [PATCH] Adapt to new packaging MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert-André Mauchin --- rust-permutohedron.spec | 54 +++++++++++++++++++++++++++++++---------- 1 file changed, 41 insertions(+), 13 deletions(-) diff --git a/rust-permutohedron.spec b/rust-permutohedron.spec index 51a0d59..91f63b7 100644 --- a/rust-permutohedron.spec +++ b/rust-permutohedron.spec @@ -6,9 +6,10 @@ Name: rust-%{crate} Version: 0.2.4 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Generate permutations of sequences +# Upstream license specification: MIT/Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/permutohedron Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate @@ -17,19 +18,49 @@ ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -%description -%{summary}. +%global _description \ +Generate permutations of sequences. Either lexicographical order permutations,\ +or a minimal swaps permutation sequence implemented using Heap's algorithm. + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -Generate permutations of sequences. Either lexicographical order permutations, -or a minimal swaps permutation sequence implemented using Heap's algorithm. +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%license LICENSE-APACHE LICENSE-MIT +%{cargo_registry}/%{crate}-%{version}/ +%exclude %{cargo_registry}/%{crate}-%{version}/{Makefile,custom.css} + +%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 @@ -46,13 +77,10 @@ which use %{crate} from crates.io. %cargo_test %endif -%files devel -%license LICENSE-APACHE LICENSE-MIT -%doc README.rst -%{cargo_registry}/%{crate}-%{version}/ -%exclude %{cargo_registry}/%{crate}-%{version}/{Makefile,custom.css} - %changelog +* Fri Nov 09 2018 Robert-André Mauchin - 0.2.4-5 +- Adapt to new packaging + * Sat Jul 14 2018 Fedora Release Engineering - 0.2.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild