From ce8dc5961a8435d91b792fdc17befa6a4e27d370 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Tue, 27 Nov 2018 13:21:23 -0800 Subject: [PATCH] Adapt to new packaging --- rust-unicase.spec | 43 +++++++++++++++++++++++++++++-------------- 1 file changed, 29 insertions(+), 14 deletions(-) diff --git a/rust-unicase.spec b/rust-unicase.spec index 8cba4b7..be6614a 100644 --- a/rust-unicase.spec +++ b/rust-unicase.spec @@ -6,7 +6,7 @@ Name: rust-%{crate} Version: 2.2.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Case-insensitive wrapper around strings # Upstream license specification: MIT/Apache-2.0 @@ -17,21 +17,39 @@ Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{ ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -# [build-dependencies] -BuildRequires: (crate(version_check) >= 0.1.0 with crate(version_check) < 0.2.0) +BuildRequires: (crate(version_check/default) >= 0.1.0 with crate(version_check/default) < 0.2.0) -%description -%{summary}. +%global _description \ +A case-insensitive wrapper around strings. + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -A case-insensitive wrapper around strings. +%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-MIT LICENSE-APACHE +%doc README.md +%{cargo_registry}/%{crate}-%{version}/ +%exclude %{cargo_registry}/%{crate}-%{version}/scripts + +%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 @@ -48,13 +66,10 @@ which use %{crate} from crates.io. %cargo_test %endif -%files devel -%license LICENSE-MIT LICENSE-APACHE -%doc README.md -%{cargo_registry}/%{crate}-%{version}/ -%exclude %{cargo_registry}/%{crate}-%{version}/scripts - %changelog +* Tue Nov 27 2018 Josh Stone - 2.2.0-2 +- Adapt to new packaging + * Fri Oct 05 2018 Josh Stone - 2.2.0-1 - Update to 2.2.0