commit 0a8d3d031e4ce9a4abc9d95c255965e6afaff4d0 Author: MSVSphere Packaging Team Date: Fri Dec 20 18:07:53 2024 +0300 import rust-which4-4.4.2-3.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..42cf490 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/which-4.4.2.crate diff --git a/.rust-which4.metadata b/.rust-which4.metadata new file mode 100644 index 0000000..85e3f38 --- /dev/null +++ b/.rust-which4.metadata @@ -0,0 +1 @@ +260d05a1fd105ad4974272d2e9deae224fd5ec2b SOURCES/which-4.4.2.crate diff --git a/SOURCES/which-fix-metadata-auto.diff b/SOURCES/which-fix-metadata-auto.diff new file mode 100644 index 0000000..7e8ba11 --- /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 2024-01-19T19:30:28.339537+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-which4.spec b/SPECS/rust-which4.spec new file mode 100644 index 0000000..f4660d1 --- /dev/null +++ b/SPECS/rust-which4.spec @@ -0,0 +1,106 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.2) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 3; + 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 which + +Name: rust-which4 +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 dependencies and normalize metadata +Patch: which-fix-metadata-auto.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%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} -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 - 4.4.2-3 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Sat Jul 20 2024 Fedora Release Engineering - 4.4.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sat Jan 27 2024 Fedora Release Engineering - 4.4.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jan 19 2024 Fabio Valentini - 4.4.2-1 +- Initial import (which 4 compat package) +## END: Generated by rpmautospec