commit 8b33058c8574522df8b1d7cf144eab52f96a07c6 Author: tigro Date: Mon Jan 15 23:09:09 2024 +0300 import rust-which-4.4.2-1.el9 diff --git a/.rust-which.metadata b/.rust-which.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/which-4.4.2.crate b/SOURCES/which-4.4.2.crate new file mode 100644 index 0000000..11d04d8 Binary files /dev/null and b/SOURCES/which-4.4.2.crate differ diff --git a/SOURCES/which-fix-metadata-auto.diff b/SOURCES/which-fix-metadata-auto.diff new file mode 100644 index 0000000..c377313 --- /dev/null +++ b/SOURCES/which-fix-metadata-auto.diff @@ -0,0 +1,8 @@ +--- which-4.4.2/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ which-4.4.2/Cargo.toml 2023-09-17T14:56:27.053730+00:00 +@@ -55,5 +55,3 @@ + [target."cfg(any(windows, unix, target_os = \"redox\"))".dependencies.home] + version = "0.5.5" + +-[target."cfg(windows)".dependencies.once_cell] +-version = "1" diff --git a/SPECS/rust-which.spec b/SPECS/rust-which.spec new file mode 100644 index 0000000..c6001da --- /dev/null +++ b/SPECS/rust-which.spec @@ -0,0 +1,193 @@ +## 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 24 +%bcond_without check +%global debug_package %{nil} + +%global crate which + +Name: rust-which +Version: 4.4.2 +Release: %autorelease +Summary: Rust equivalent of Unix command "which" + +License: MIT +URL: https://crates.io/crates/which +Source: %{crates_source} +# Automatically generated patch to strip foreign dependencies +Patch: which-fix-metadata-auto.diff + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +A Rust equivalent of Unix command "which". Locate installed executable +in cross platforms.} + +%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.txt +%doc %{crate_instdir}/CHANGELOG.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 + +%package -n %{name}+regex-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+regex-devel %{_description} + +This package contains library source intended for building other packages which +use the "regex" feature of the "%{crate}" crate. + +%files -n %{name}+regex-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Mon Jan 15 2024 Arkady L. Shane - 4.4.2-1 +- Rebuilt for MSVSphere 9.3 + +* Sun Sep 17 2023 Fabio Valentini - 4.4.2-1 +- Update to version 4.4.2; Fixes RHBZ#2237164 + +* Sat Jul 22 2023 Fedora Release Engineering - 4.4.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Sun Jan 29 2023 Fabio Valentini - 4.4.0-1 +- Update to version 4.4.0; Fixes RHBZ#2162636 + +* Sat Jan 21 2023 Fedora Release Engineering - 4.3.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Sep 02 2022 Fabio Valentini - 4.3.0-1 +- Update to version 4.3.0; Fixes RHBZ#2122895 + +* Sat Jul 23 2022 Fedora Release Engineering - 4.2.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Wed May 11 2022 Fabio Valentini - 4.2.5-1 +- Update to version 4.2.5; Fixes RHBZ#2066079 + +* Wed Jan 26 2022 Fabio Valentini - 4.2.4-1 +- Update to version 4.2.4; Fixes RHBZ#2044192 + +* Sat Jan 22 2022 Fedora Release Engineering - 4.2.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Sat Jul 31 2021 Fabio Valentini - 4.2.2-1 +- Update to version 4.2.2; Fixes RHBZ#1987293 + +* Fri Jul 23 2021 Fedora Release Engineering - 4.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Sun Mar 28 2021 Fabio Valentini - 4.1.0-1 +- Update to version 4.1.0. +- Fixes RHBZ#1943905 + +* Wed Jan 27 2021 Fedora Release Engineering - 4.0.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Sep 16 2020 Fabio Valentini - 4.0.2-1 +- Update to version 4.0.2. + +* Wed Jul 29 2020 Fedora Release Engineering - 3.1.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Mar 11 2020 Josh Stone - 3.1.1-2 +- Rebuild + +* Tue Mar 10 2020 Josh Stone - 3.1.1-1 +- Update to 3.1.1 + +* Thu Jan 30 2020 Fedora Release Engineering - 3.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Dec 05 14:30:50 CET 2019 Igor Gnatenko - 3.1.0-1 +- Update to 3.1.0 + +* Fri Jul 26 2019 Fedora Release Engineering - 2.0.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Jun 22 13:09:58 CEST 2019 Igor Gnatenko - 2.0.1-4 +- Regenerate + +* Mon Feb 11 2019 Igor Gnatenko - 2.0.1-3 +- Run tests in infrastructure + +* Sat Feb 02 2019 Fedora Release Engineering - 2.0.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Tue Nov 27 2018 Josh Stone - 2.0.1-1 +- Update to 2.0.1 + +* Mon Nov 12 2018 Josh Stone - 2.0.0-3 +- Adapt to new packaging + +* Sat Jul 14 2018 Fedora Release Engineering - 2.0.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Thu Apr 26 2018 Igor Gnatenko - 2.0.0-1 +- Update to 2.0.0 + +* Sun Feb 18 2018 Igor Gnatenko - 1.0.5-1 +- Update to 1.0.5 + +* Fri Feb 16 2018 Josh Stone - 1.0.4-1 +- Update to 1.0.4 + +* Fri Feb 09 2018 Fedora Release Engineering - 1.0.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Mon Jan 08 2018 Igor Gnatenko - 1.0.3-2 +- Rebuild for rust-packaging v5 + +* Wed Nov 29 2017 Igor Gnatenko - 1.0.3-1 +- Initial package +