commit 68227364181d3ef2d5a1adbe82bdb22482efffe6 Author: tigro Date: Mon Nov 20 00:20:52 2023 +0300 import rust-thread-id-4.2.1-1.el9 diff --git a/.rust-thread-id.metadata b/.rust-thread-id.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/thread-id-4.2.1.crate b/SOURCES/thread-id-4.2.1.crate new file mode 100644 index 0000000..9868144 Binary files /dev/null and b/SOURCES/thread-id-4.2.1.crate differ diff --git a/SOURCES/thread-id-fix-metadata-auto.diff b/SOURCES/thread-id-fix-metadata-auto.diff new file mode 100644 index 0000000..caa0a07 --- /dev/null +++ b/SOURCES/thread-id-fix-metadata-auto.diff @@ -0,0 +1,10 @@ +--- thread-id-4.2.1/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ thread-id-4.2.1/Cargo.toml 2023-10-17T10:20:41.246114+00:00 +@@ -22,6 +22,4 @@ + repository = "https://github.com/ruuda/thread-id" + [target."cfg(unix)".dependencies.libc] + version = "0.2.147" +-[target."cfg(windows)".dependencies.winapi] +-version = "0.3" +-features = ["processthreadsapi"] ++ diff --git a/SPECS/rust-thread-id.spec b/SPECS/rust-thread-id.spec new file mode 100644 index 0000000..5d04003 --- /dev/null +++ b/SPECS/rust-thread-id.spec @@ -0,0 +1,150 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.3.5) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 1; + 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 +%bcond_without check +%global debug_package %{nil} + +%global crate thread-id + +Name: rust-thread-id +Version: 4.2.1 +Release: %autorelease +Summary: Get a unique thread ID + +# Upstream license specification: MIT/Apache-2.0 +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/thread-id +Source: %{crates_source} +# Automatically generated patch to strip dependencies and normalize metadata +Patch: thread-id-fix-metadata-auto.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Get a unique thread ID.} + +%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}/changelog.md +%doc %{crate_instdir}/contributing.md +%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 + +%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 +* Mon Nov 20 2023 Arkady L. Shane - 4.2.1-1 +- Rebuilt for MSVSphere 9.2 + +* Tue Oct 17 2023 Fabio Valentini - 4.2.1-1 +- Update to version 4.2.1; Fixes RHBZ#2244542 + +* Wed Aug 23 2023 Fabio Valentini - 4.2.0-1 +- Update to version 4.2.0; Fixes RHBZ#2232921 + +* Wed May 17 2023 Fabio Valentini - 4.1.0-1 +- Update to version 4.1.0; Fixes RHBZ#2204517 + +* Wed Dec 29 2021 Igor Raits - 4.0.0-2 +- Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 3.3.0-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 3.3.0-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Sat Aug 01 2020 Fedora Release Engineering - 3.3.0-8 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 3.3.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Thu Jan 30 2020 Fedora Release Engineering - 3.3.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Jul 26 2019 Fedora Release Engineering - 3.3.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 3.3.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Oct 27 2018 Igor Gnatenko - 3.3.0-3 +- Adapt to new packaging + +* Sat Jul 14 2018 Fedora Release Engineering - 3.3.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Sat Mar 24 2018 Josh Stone - 3.3.0-1 +- Update to 3.3.0 + +* Fri Feb 09 2018 Fedora Release Engineering - 3.2.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Mon Jan 08 2018 Igor Gnatenko - 3.2.0-2 +- Rebuild for rust-packaging v5 + +* Sat Jul 01 2017 Igor Gnatenko - 3.2.0-1 +- Update to 3.2.0 + +* Wed Jun 14 2017 Igor Gnatenko - 3.1.0-1 +- Update to 3.1.0 + +* Wed Jun 14 2017 Igor Gnatenko - 3.0.0-3 +- Port to use rust-packaging + +* Fri Feb 24 2017 Igor Gnatenko - 3.0.0-2 +- Use rich dependencies + +* Sat Feb 18 2017 Igor Gnatenko - 3.0.0-1 +- Initial package +