From 8da789a1c92486f23528a12fd353ad6e10aa8c69 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 1 Aug 2023 18:54:17 +0200 Subject: [PATCH] Update to version 0.8.1; Fixes RHBZ#2207945 --- .gitignore | 1 + README.md | 3 --- rust-enumset_derive.spec | 52 +++++++++++++++++++++++----------------- rust2rpm.conf | 2 ++ sources | 2 +- 5 files changed, 34 insertions(+), 26 deletions(-) delete mode 100644 README.md create mode 100644 rust2rpm.conf diff --git a/.gitignore b/.gitignore index 180c67f..14239ea 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /enumset_derive-0.5.1.crate /enumset_derive-0.5.4.crate +/enumset_derive-0.8.1.crate diff --git a/README.md b/README.md deleted file mode 100644 index 69986da..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-enumset_derive - -The rust-enumset_derive package diff --git a/rust-enumset_derive.spec b/rust-enumset_derive.spec index 65fdbb6..5c4c31c 100644 --- a/rust-enumset_derive.spec +++ b/rust-enumset_derive.spec @@ -1,28 +1,23 @@ -# Generated by rust2rpm 16 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate enumset_derive -Name: rust-%{crate} -Version: 0.5.4 +Name: rust-enumset_derive +Version: 0.8.1 Release: %autorelease Summary: Internal helper crate for enumset # Upstream license specification: MIT/Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/enumset_derive Source: %{crates_source} -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: -Internal helper crate for enumset. Not public API.} +An internal helper crate for enumset. Not public API.} %description %{_description} @@ -32,13 +27,14 @@ 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 -%doc README.md -%license LICENSE-APACHE LICENSE-MIT -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -46,11 +42,23 @@ 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_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+proc-macro-crate-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+proc-macro-crate-devel %{_description} + +This package contains library source intended for building other packages which +use the "proc-macro-crate" feature of the "%{crate}" crate. + +%files -n %{name}+proc-macro-crate-devel +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-devel Summary: %{summary} @@ -58,11 +66,11 @@ BuildArch: noarch %description -n %{name}+serde-devel %{_description} -This package contains library source intended for building other packages -which use "serde" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "serde" feature of the "%{crate}" crate. %files -n %{name}+serde-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/rust2rpm.conf b/rust2rpm.conf new file mode 100644 index 0000000..7e1a745 --- /dev/null +++ b/rust2rpm.conf @@ -0,0 +1,2 @@ +[DEFAULT] +summary = Internal helper crate for enumset diff --git a/sources b/sources index 6157bc5..d137891 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (enumset_derive-0.5.4.crate) = b02f43bea0f304d747c085f03a2e2c33dbf0a38d3a8f393935e443a633326456bf5a9e454a211f942d08dd8293d3935bef6284c03ea00fac43cb7d268700daff +SHA512 (enumset_derive-0.8.1.crate) = 9ff87a0a5dbee945b58987f9d26200efa5e8d5c085ceda6e44ff9cc1b05bd903cdda632e459b26415e7e2195af79aa51b8e95fb9ee7917fc74a6102f220e5148