From e61de316d591e6d467ced16b24b7c8d0935e2245 Mon Sep 17 00:00:00 2001 From: tigro Date: Sun, 5 Jan 2025 16:42:05 +0300 Subject: [PATCH] import rust-maplit-1.0.2-14.el10 --- .gitignore | 4 +- .rust-maplit.metadata | 1 + SOURCES/maplit-fix-metadata.diff | 11 ++++ rust-maplit.spec => SPECS/rust-maplit.spec | 71 ++++++++++++++++------ sources | 1 - 5 files changed, 64 insertions(+), 24 deletions(-) create mode 100644 .rust-maplit.metadata create mode 100644 SOURCES/maplit-fix-metadata.diff rename rust-maplit.spec => SPECS/rust-maplit.spec (61%) delete mode 100644 sources diff --git a/.gitignore b/.gitignore index c24e855..4fb7817 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1 @@ -/maplit-1.0.0.crate -/maplit-1.0.1.crate -/maplit-1.0.2.crate +SOURCES/maplit-1.0.2.crate diff --git a/.rust-maplit.metadata b/.rust-maplit.metadata new file mode 100644 index 0000000..000d2b0 --- /dev/null +++ b/.rust-maplit.metadata @@ -0,0 +1 @@ +c47c5cb5f29950146d4224f0abf7f0668a422554 SOURCES/maplit-1.0.2.crate diff --git a/SOURCES/maplit-fix-metadata.diff b/SOURCES/maplit-fix-metadata.diff new file mode 100644 index 0000000..4c6e0e5 --- /dev/null +++ b/SOURCES/maplit-fix-metadata.diff @@ -0,0 +1,11 @@ +--- maplit-1.0.2/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ maplit-1.0.2/Cargo.toml 2023-04-12T15:08:01.873574+00:00 +@@ -14,7 +14,7 @@ + name = "maplit" + version = "1.0.2" + authors = ["bluss"] +-description = "Collection “literal” macros for HashMap, HashSet, BTreeMap, and BTreeSet." ++description = "Collection of macros for HashMap, HashSet, BTreeMap, and BTreeSet literals." + documentation = "https://docs.rs/maplit/" + keywords = ["literal", "data-structure", "hashmap", "macro"] + categories = ["rust-patterns"] diff --git a/rust-maplit.spec b/SPECS/rust-maplit.spec similarity index 61% rename from rust-maplit.spec rename to SPECS/rust-maplit.spec index 53c9875..e2e7420 100644 --- a/rust-maplit.spec +++ b/SPECS/rust-maplit.spec @@ -1,28 +1,37 @@ -# Generated by rust2rpm 10 +## START: Set by rpmautospec +## (rpmautospec version 0.6.5) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 14; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate maplit -Name: rust-%{crate} +Name: rust-maplit Version: 1.0.2 -Release: 7%{?dist} -Summary: Collection “literal” macros for HashMap, HashSet, BTreeMap, and BTreeSet +Release: %autorelease +Summary: Collection of macros for HashMap, HashSet, BTreeMap, and BTreeSet literals # Upstream license specification: MIT/Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/maplit Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * fix description in crate metadata +Patch: maplit-fix-metadata.diff -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: -Collection “literal” macros for HashMap, HashSet, BTreeMap, and BTreeSet.} +Collection of macros for HashMap, HashSet, BTreeMap, and BTreeSet +literals.} %description %{_description} @@ -32,13 +41,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 -%license LICENSE-MIT LICENSE-APACHE -%doc README.rst -%{cargo_registry}/%{crate}-%{version}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README.rst +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -46,11 +56,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 %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 @@ -71,6 +81,25 @@ which use "default" feature of "%{crate}" crate. %endif %changelog +* Sun Jan 05 2025 Arkady L. Shane - 1.0.2-14 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Sat Jul 20 2024 Fedora Release Engineering - 1.0.2-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jan 26 2024 Fedora Release Engineering - 1.0.2-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 1.0.2-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed Apr 12 2023 Fabio Valentini - 1.0.2-11 +- Regenerate with rust2rpm v24 + +* Fri Jan 20 2023 Fedora Release Engineering - 1.0.2-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + * Sat Jul 23 2022 Fedora Release Engineering - 1.0.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild @@ -121,3 +150,5 @@ which use "default" feature of "%{crate}" crate. * Thu Jul 06 2017 Igor Gnatenko - 0.1.4-1 - Initial package + +## END: Generated by rpmautospec diff --git a/sources b/sources deleted file mode 100644 index bdfa7ca..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -SHA512 (maplit-1.0.2.crate) = 917b5cf665e12b687035c895b60b2ae05622963f495f5693515fd24d56f49e95a06ffced68606d061bd20822c655100035930673fd4b0d4790168763b6961a9f