From 1c5bc15ded50e6af2b8c19ec863182504649d98f Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Fri, 20 Dec 2024 17:51:54 +0300 Subject: [PATCH] import rust-thread_local-1.1.8-2.el10 --- .gitignore | 1 + .rust-thread_local.metadata | 1 + SOURCES/rust2rpm.toml | 5 + SOURCES/thread_local-fix-metadata.diff | 21 +++ SPECS/rust-thread_local.spec | 209 +++++++++++++++++++++++++ 5 files changed, 237 insertions(+) create mode 100644 .gitignore create mode 100644 .rust-thread_local.metadata create mode 100644 SOURCES/rust2rpm.toml create mode 100644 SOURCES/thread_local-fix-metadata.diff create mode 100644 SPECS/rust-thread_local.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0cab50a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/thread_local-1.1.8.crate diff --git a/.rust-thread_local.metadata b/.rust-thread_local.metadata new file mode 100644 index 0000000..8e681fa --- /dev/null +++ b/.rust-thread_local.metadata @@ -0,0 +1 @@ +c024fa63a59411b60186c03eeb3e454df4d9bfe4 SOURCES/thread_local-1.1.8.crate diff --git a/SOURCES/rust2rpm.toml b/SOURCES/rust2rpm.toml new file mode 100644 index 0000000..2cd7101 --- /dev/null +++ b/SOURCES/rust2rpm.toml @@ -0,0 +1,5 @@ +[package] +cargo-toml-patch-comments = [ + "drop unused, benchmark-only criterion dev-dependency", +] + diff --git a/SOURCES/thread_local-fix-metadata.diff b/SOURCES/thread_local-fix-metadata.diff new file mode 100644 index 0000000..99723e5 --- /dev/null +++ b/SOURCES/thread_local-fix-metadata.diff @@ -0,0 +1,21 @@ +--- thread_local-1.1.8/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ thread_local-1.1.8/Cargo.toml 2024-04-25T13:59:04.312560+00:00 +@@ -26,18 +26,11 @@ + license = "MIT OR Apache-2.0" + repository = "https://github.com/Amanieu/thread_local-rs" + +-[[bench]] +-name = "thread_local" +-harness = false +- + [dependencies.cfg-if] + version = "1.0.0" + + [dependencies.once_cell] + version = "1.5.2" + +-[dev-dependencies.criterion] +-version = "0.5.1" +- + [features] + nightly = [] diff --git a/SPECS/rust-thread_local.spec b/SPECS/rust-thread_local.spec new file mode 100644 index 0000000..6c2f3af --- /dev/null +++ b/SPECS/rust-thread_local.spec @@ -0,0 +1,209 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.2) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 2; + 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 26 +%bcond_without check +%global debug_package %{nil} + +%global crate thread_local + +Name: rust-thread_local +Version: 1.1.8 +Release: %autorelease +Summary: Per-object thread-local storage + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/thread_local +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * drop unused, benchmark-only criterion dev-dependency +Patch: thread_local-fix-metadata.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Per-object thread-local storage.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages which +use the "%{crate}" crate. + +%files devel +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README.md +%{crate_instdir}/ + +%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 the "default" feature of the "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+nightly-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+nightly-devel %{_description} + +This package contains library source intended for building other packages which +use the "nightly" feature of the "%{crate}" crate. + +%files -n %{name}+nightly-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Fri Dec 20 2024 MSVSphere Packaging Team - 1.1.8-2 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Sat Jul 20 2024 Fedora Release Engineering - 1.1.8-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Thu Apr 25 2024 Fabio Valentini - 1.1.8-1 +- Update to version 1.1.8; Fixes RHBZ#2265199 + +* Sat Jan 27 2024 Fedora Release Engineering - 1.1.7-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sat Jul 22 2023 Fedora Release Engineering - 1.1.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Sun Feb 19 2023 Fabio Valentini - 1.1.7-1 +- Update to version 1.1.7; Fixes RHBZ#2168763 + +* Sat Jan 21 2023 Fedora Release Engineering - 1.1.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Jul 23 2022 Fedora Release Engineering - 1.1.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Tue Jan 25 2022 Fabio Valentini - 1.1.4-1 +- Update to version 1.1.4; Fixes RHBZ#2044117 + +* Fri Jan 21 2022 Fedora Release Engineering - 1.1.3-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Sun Nov 28 2021 Igor Raits - 1.1.3-4 +- Regenerate + +* Fri Jul 23 2021 Fedora Release Engineering - 1.1.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Sun Feb 07 2021 Fabio Valentini - 1.1.3-1 +- Update to version 1.1.3. +- Fixes RHBZ#1919457 + +* Wed Jan 27 2021 Fedora Release Engineering - 1.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Sat Jan 09 2021 Fabio Valentini - 1.1.0-1 +- Update to version 1.1.0. +- Fixes RHBZ#1913996 + +* Sat Aug 01 2020 Fedora Release Engineering - 1.0.1-4 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 1.0.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Thu Jan 30 2020 Fedora Release Engineering - 1.0.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Jan 24 2020 Josh Stone - 1.0.1-1 +- Update to 1.0.1 + +* Fri Jul 26 2019 Fedora Release Engineering - 0.3.6-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Jun 20 11:12:52 CEST 2019 Igor Gnatenko - 0.3.6-6 +- Regenerate + +* Sun Jun 09 11:02:42 CEST 2019 Igor Gnatenko - 0.3.6-5 +- Regenerate + +* Sat Feb 02 2019 Fedora Release Engineering - 0.3.6-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Oct 27 2018 Igor Gnatenko - 0.3.6-3 +- Adapt to new packaging + +* Sun Oct 07 2018 Igor Gnatenko - 0.3.6-2 +- Run tests in infrastructure + +* Thu Aug 30 2018 Josh Stone - 0.3.6-1 +- Update to 0.3.6 + +* Sat Jul 14 2018 Fedora Release Engineering - 0.3.5-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Fri Feb 09 2018 Fedora Release Engineering - 0.3.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Mon Jan 08 2018 Igor Gnatenko - 0.3.5-2 +- Rebuild for rust-packaging v5 + +* Mon Dec 11 2017 Igor Gnatenko - 0.3.5-1 +- Update to 0.3.5 + +* Thu Nov 30 2017 Igor Gnatenko - 0.3.4-2 +- Bump lazy_static to 1 + +* Sat Jul 01 2017 Igor Gnatenko - 0.3.4-1 +- Update to 0.3.4 + +* Wed Jun 14 2017 Igor Gnatenko - 0.3.3-4 +- Bump unreachable dependency to 1.0 + +* Wed Jun 14 2017 Igor Gnatenko - 0.3.3-3 +- Port to use rust-packaging + +* Fri Feb 24 2017 Igor Gnatenko - 0.3.3-2 +- Update to 0.3.3 + +* Fri Feb 24 2017 Igor Gnatenko - 0.3.2-2 +- Use rich dependencies + +* Sat Feb 18 2017 Igor Gnatenko - 0.3.2-1 +- Initial package + +## END: Generated by rpmautospec