From 6a0d87b37b17f8d097d6379e8df8dbd89b3c52fb Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Wed, 17 Aug 2022 21:12:55 -0600 Subject: [PATCH] Update to current packaging --- rust-inflate.spec | 59 +++++++++++++---------------------------------- 1 file changed, 16 insertions(+), 43 deletions(-) diff --git a/rust-inflate.spec b/rust-inflate.spec index 3576d02..c651098 100644 --- a/rust-inflate.spec +++ b/rust-inflate.spec @@ -1,25 +1,21 @@ -# Generated by rust2rpm 10 +# Generated by rust2rpm 22 %bcond_without check %global debug_package %{nil} %global crate inflate -Name: rust-%{crate} +Name: rust-inflate Version: 0.4.5 -Release: 8%{?dist} +Release: %autorelease -b 8 Summary: DEFLATE decoding -# Upstream license specification: MIT License: MIT URL: https://crates.io/crates/inflate Source: %{crates_source} ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: DEFLATE decoding.} @@ -32,13 +28,13 @@ BuildArch: noarch %description devel %{_description} -This package contains library source intended for building other packages -which use "%{crate}" crate. +This package contains library source intended for building other packages which +use the "%{crate}" crate. %files devel -%license LICENSE -%doc README.md -%{cargo_registry}/%{crate}-%{version}/ +%license %{crate_instdir}/LICENSE +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -46,11 +42,11 @@ 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. +This package contains library source intended for building other packages which +use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+unstable-devel Summary: %{summary} @@ -58,11 +54,11 @@ BuildArch: noarch %description -n %{name}+unstable-devel %{_description} -This package contains library source intended for building other packages -which use "unstable" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "unstable" feature of the "%{crate}" crate. %files -n %{name}+unstable-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 @@ -83,27 +79,4 @@ which use "unstable" feature of "%{crate}" crate. %endif %changelog -* Fri Jan 21 2022 Fedora Release Engineering - 0.4.5-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - -* Tue Jul 27 2021 Fedora Release Engineering - 0.4.5-7 -- Second attempt - Rebuilt for - https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - -* Wed Jan 27 2021 Fedora Release Engineering - 0.4.5-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - -* Wed Jul 29 2020 Fedora Release Engineering - 0.4.5-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Thu Jan 30 2020 Fedora Release Engineering - 0.4.5-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - -* Fri Jul 26 2019 Fedora Release Engineering - 0.4.5-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Sat Jun 22 12:55:29 CEST 2019 Igor Gnatenko - 0.4.5-2 -- Regenerate - -* Fri Mar 15 2019 Igor Gnatenko - 0.4.5-1 -- Initial package +%autochangelog