From 82f80790323e38aac7d5b48b0a0bd149e33d025f Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Fri, 9 Nov 2018 18:33:08 -0800 Subject: [PATCH] Adapt to new packaging --- rust-version-sync.spec | 46 +++++++++++++++++++++++++++++------------- 1 file changed, 32 insertions(+), 14 deletions(-) diff --git a/rust-version-sync.spec b/rust-version-sync.spec index 7334159..036a8f8 100644 --- a/rust-version-sync.spec +++ b/rust-version-sync.spec @@ -6,7 +6,7 @@ Name: rust-%{crate} Version: 0.5.0 -Release: 7%{?dist} +Release: 8%{?dist} Summary: Simple crate for ensuring that version numbers in README files are updated License: MIT @@ -21,16 +21,19 @@ Patch0002: 0002-Update-to-syn-0.14.patch ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -# [dependencies] -BuildRequires: (crate(itertools) >= 0.7.0 with crate(itertools) < 0.8.0) +BuildRequires: (crate(itertools/default) >= 0.7.0 with crate(itertools/default) < 0.8.0) BuildRequires: (crate(pulldown-cmark) >= 0.1.0 with crate(pulldown-cmark) < 0.2.0) -BuildRequires: (crate(semver-parser) >= 0.7.0 with crate(semver-parser) < 0.8.0) -BuildRequires: ((crate(syn) >= 0.14.0 with crate(syn) < 0.15.0) with crate(syn/full)) -BuildRequires: (crate(toml) >= 0.4.0 with crate(toml) < 0.5.0) -BuildRequires: (crate(url) >= 1.5.1 with crate(url) < 2.0.0) +BuildRequires: (crate(semver-parser/default) >= 0.7.0 with crate(semver-parser/default) < 0.8.0) +BuildRequires: (crate(syn/default) >= 0.14.0 with crate(syn/default) < 0.15.0) +BuildRequires: (crate(syn/full) >= 0.14.0 with crate(syn/full) < 0.15.0) +BuildRequires: (crate(toml/default) >= 0.4.0 with crate(toml/default) < 0.5.0) +BuildRequires: (crate(url/default) >= 1.5.1 with crate(url/default) < 2.0.0) -%description -%{summary}. +%global _description \ +Simple crate for ensuring that version numbers in README files are updated when\ +the crate version changes. + +%description %{_description} %package devel Summary: %{summary} @@ -43,6 +46,23 @@ updated when the crate version changes. This package contains library source intended for building other packages which use %{crate} from crates.io. +%files devel +%license LICENSE +%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 %cargo_prep @@ -58,12 +78,10 @@ which use %{crate} from crates.io. %cargo_test %endif -%files devel -%license LICENSE -%doc README.md -%{cargo_registry}/%{crate}-%{version}/ - %changelog +* Sat Nov 10 2018 Josh Stone - 0.5.0-8 +- Adapt to new packaging + * Tue Sep 11 2018 Igor Gnatenko - 0.5.0-7 - Bump syn to 0.14