From ed53d31ac3af90b87a8c84ada4f34adab3d3ae4c Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Fri, 9 Nov 2018 14:16:44 -0800 Subject: [PATCH] Adapt to new packaging --- rust-phf_generator.spec | 39 +++++++++++++++++++++++++++------------ 1 file changed, 27 insertions(+), 12 deletions(-) diff --git a/rust-phf_generator.spec b/rust-phf_generator.spec index 6717475..06d4207 100644 --- a/rust-phf_generator.spec +++ b/rust-phf_generator.spec @@ -6,7 +6,7 @@ Name: rust-%{crate} Version: 0.7.23 -Release: 1%{?dist} +Release: 2%{?dist} Summary: PHF generation logic # https://github.com/sfackler/rust-phf/pull/118 @@ -17,22 +17,37 @@ Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{ ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -# [dependencies] -BuildRequires: crate(phf_shared) = 0.7.23 -BuildRequires: (crate(rand) >= 0.5.0 with crate(rand) < 0.6.0) +BuildRequires: (crate(rand/default) >= 0.5.0 with crate(rand/default) < 0.6.0) +BuildRequires: crate(phf_shared/default) = 0.7.23 -%description -%{summary}. +%global _description \ +PHF generation logic. + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -PHF generation logic. +%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 +%{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 @@ -49,10 +64,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