From 1ae91bef239e15ac5248687dd2e0da8d3ab51930 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Mon, 29 Oct 2018 17:09:22 -0700 Subject: [PATCH] Adapt to new packaging --- rust-diff.spec | 39 ++++++++++++++++++++++++++++----------- 1 file changed, 28 insertions(+), 11 deletions(-) diff --git a/rust-diff.spec b/rust-diff.spec index 0d9b3b6..cf10fae 100644 --- a/rust-diff.spec +++ b/rust-diff.spec @@ -7,9 +7,10 @@ Name: rust-%{crate} Version: 0.1.11 -Release: 6%{?dist} +Release: 7%{?dist} Summary: LCS based slice and string diffing implementation +# Upstream license specification: MIT OR Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/diff Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate @@ -21,13 +22,14 @@ ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging %if %{with check} -# [dev-dependencies] BuildRequires: (crate(quickcheck) >= 0.6.0 with crate(quickcheck) < 0.7.0) -BuildRequires: (crate(speculate) >= 0.0.25 with crate(speculate) < 0.0.26) +BuildRequires: (crate(speculate/default) >= 0.0.25 with crate(speculate/default) < 0.0.26) %endif -%description -%{summary}. +%global _description \ +An LCS based slice and string diffing implementation. + +%description %{_description} %package devel Summary: %{summary} @@ -37,7 +39,24 @@ BuildArch: noarch An LCS based slice and string diffing implementation. This package contains library source intended for building other packages -which use %{crate} from crates.io. +which use "%{crate}" crate. + +%files devel +%license LICENSE-MIT LICENSE-APACHE +%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 @@ -54,12 +73,10 @@ which use %{crate} from crates.io. %cargo_test %endif -%files devel -%license LICENSE-MIT LICENSE-APACHE -%doc README.md -%{cargo_registry}/%{crate}-%{version}/ - %changelog +* Tue Oct 30 2018 Josh Stone - 0.1.11-7 +- Adapt to new packaging + * Sat Jul 14 2018 Fedora Release Engineering - 0.1.11-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild