From 15762ca1805258a5c0a4ddb0e239eeddc8f9009a Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sat, 9 Mar 2019 15:10:06 +0100 Subject: [PATCH] Adapt to new packaging Signed-off-by: Igor Gnatenko --- rust-pager.spec | 60 +++++++++++++++++++++++++++++++++++-------------- 1 file changed, 43 insertions(+), 17 deletions(-) diff --git a/rust-pager.spec b/rust-pager.spec index bfc7b68..6d31544 100644 --- a/rust-pager.spec +++ b/rust-pager.spec @@ -1,5 +1,4 @@ # Generated by rust2rpm -# * Tests are run in infrastructure %bcond_with check %global debug_package %{nil} @@ -7,36 +6,65 @@ Name: rust-%{crate} Version: 0.15.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Helps pipe your output through an external pager # Upstream license specification: Apache-2.0/MIT License: ASL 2.0 or MIT URL: https://crates.io/crates/pager -Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +Source: %{crates_source} ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -# [dependencies] -BuildRequires: (crate(errno) >= 0.2.0 with crate(errno) < 0.3.0) -BuildRequires: (crate(libc) >= 0.2.0 with crate(libc) < 0.3.0) +BuildRequires: (crate(errno/default) >= 0.2.0 with crate(errno/default) < 0.3.0) +BuildRequires: (crate(libc/default) >= 0.2.0 with crate(libc/default) < 0.3.0) -%description -%{summary}. +%global _description \ +Helps pipe your output through an external pager. + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -Helps pipe your output through an external pager. +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%license LICENSE-APACHE LICENSE-MIT +%doc CHANGELOG.md 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 %{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}+pedantic-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+pedantic-devel %{_description} + +This package contains library source intended for building other packages +which use "pedantic" feature of "%{crate}" crate. + +%files -n %{name}+pedantic-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep -%autosetup -n %{crate}-%{version} -p1 +%autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %build @@ -50,12 +78,10 @@ which use %{crate} from crates.io. %cargo_test %endif -%files devel -%license LICENSE-APACHE LICENSE-MIT -%doc CHANGELOG.md README.md -%{cargo_registry}/%{crate}-%{version}/ - %changelog +* Sat Mar 09 2019 Igor Gnatenko - 0.15.0-3 +- Adapt to new packaging + * Sat Feb 02 2019 Fedora Release Engineering - 0.15.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild