From ccd719d2ed849f5a93bbcbc093545a4778f47b64 Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Fri, 20 Dec 2024 16:27:36 +0300 Subject: [PATCH] import rust-num_threads-0.1.7-2.el10 --- .gitignore | 1 + .rust-num_threads.metadata | 1 + SOURCES/num_threads-fix-metadata-auto.diff | 8 ++ SOURCES/rust2rpm.toml | 7 ++ SPECS/rust-num_threads.spec | 109 +++++++++++++++++++++ 5 files changed, 126 insertions(+) create mode 100644 .gitignore create mode 100644 .rust-num_threads.metadata create mode 100644 SOURCES/num_threads-fix-metadata-auto.diff create mode 100644 SOURCES/rust2rpm.toml create mode 100644 SPECS/rust-num_threads.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dfcbac8 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/num_threads-0.1.7.crate diff --git a/.rust-num_threads.metadata b/.rust-num_threads.metadata new file mode 100644 index 0000000..cbbf1ab --- /dev/null +++ b/.rust-num_threads.metadata @@ -0,0 +1 @@ +ce0b2277d3ccc9821162ae147b51d8c4f67c4f5d SOURCES/num_threads-0.1.7.crate diff --git a/SOURCES/num_threads-fix-metadata-auto.diff b/SOURCES/num_threads-fix-metadata-auto.diff new file mode 100644 index 0000000..75890a4 --- /dev/null +++ b/SOURCES/num_threads-fix-metadata-auto.diff @@ -0,0 +1,8 @@ +--- num_threads-0.1.7/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ num_threads-0.1.7/Cargo.toml 2024-02-18T15:38:45.889737+00:00 +@@ -37,5 +37,3 @@ + + [dependencies] + +-[target."cfg(any(target_os = \"macos\", target_os = \"ios\", target_os = \"freebsd\"))".dependencies.libc] +-version = "0.2.107" diff --git a/SOURCES/rust2rpm.toml b/SOURCES/rust2rpm.toml new file mode 100644 index 0000000..2453f37 --- /dev/null +++ b/SOURCES/rust2rpm.toml @@ -0,0 +1,7 @@ +[package] +summary = "Determine the number of running threads for the current process" + +[tests] +run = ["none"] +comments = ["test sources are not included in published crates"] + diff --git a/SPECS/rust-num_threads.spec b/SPECS/rust-num_threads.spec new file mode 100644 index 0000000..facfbb4 --- /dev/null +++ b/SPECS/rust-num_threads.spec @@ -0,0 +1,109 @@ +## 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 25 +# * test sources are not included in published crates +%bcond_with check +%global debug_package %{nil} + +%global crate num_threads + +Name: rust-num_threads +Version: 0.1.7 +Release: %autorelease +Summary: Determine the number of running threads for the current process + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/num_threads +Source: %{crates_source} +# Automatically generated patch to strip dependencies and normalize metadata +Patch: num_threads-fix-metadata-auto.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +A minimal library that determines the number of running threads for the +current process.} + +%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 +%{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 + +%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 - 0.1.7-2 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Sat Jul 20 2024 Fedora Release Engineering - 0.1.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sun Feb 18 2024 Fabio Valentini - 0.1.7-1 +- Update to version 0.1.7; Fixes RHBZ#2264333 + +* Fri Jan 26 2024 Fedora Release Engineering - 0.1.6-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 0.1.6-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed Feb 01 2023 Fabio Valentini - 0.1.6-4 +- Disable tests which broke due to test runner changes in Rust 1.67+ + +* Sat Jan 21 2023 Fedora Release Engineering - 0.1.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Jul 23 2022 Fedora Release Engineering - 0.1.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Tue May 31 2022 Fabio Valentini - 0.1.6-1 +- Initial import (#2086091) +## END: Generated by rpmautospec