From 30f2ba1851083dcb2f6e35737a0cf1656f046a4d Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Fri, 9 Nov 2018 14:16:25 -0800 Subject: [PATCH] Adapt to new packaging --- rust-phf_shared.spec | 49 ++++++++++++++++++++++++++++++++++---------- 1 file changed, 38 insertions(+), 11 deletions(-) diff --git a/rust-phf_shared.spec b/rust-phf_shared.spec index f7380b6..d96a382 100644 --- a/rust-phf_shared.spec +++ b/rust-phf_shared.spec @@ -6,7 +6,7 @@ Name: rust-%{crate} Version: 0.7.23 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Support code shared by PHF libraries # https://github.com/sfackler/rust-phf/pull/118 @@ -22,21 +22,48 @@ Patch1: 0001-Remove-unicase-support.patch ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -# [dependencies] -BuildRequires: (crate(siphasher) >= 0.2.0 with crate(siphasher) < 0.3.0) +BuildRequires: (crate(siphasher/default) >= 0.2.0 with crate(siphasher/default) < 0.3.0) -%description -%{summary}. +%global _description \ +Support code shared by PHF libraries. + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -Support code shared by PHF libraries. +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%{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 %{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}+core-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+core-devel %{_description} + +This package contains library source intended for building other packages +which use "core" feature of "%{crate}" crate. + +%files -n %{name}+core-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -N @@ -55,10 +82,10 @@ which use %{crate} from crates.io. %cargo_test %endif -%files devel -%{cargo_registry}/%{crate}-%{version}/ - %changelog +* Fri Nov 09 2018 Josh Stone - 0.7.23-2 +- Adapt to new packaging + * Sat Sep 08 2018 Josh Stone - 0.7.23-1 - Update to 0.7.23