commit 8f4ec1e20a6ee012020fa39005105a74e5dcbad3 Author: tigro Date: Mon Jan 15 22:18:17 2024 +0300 import rust-procs-0.14.1-1.el9 diff --git a/.rust-procs.metadata b/.rust-procs.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/procs-0.14.1.crate b/SOURCES/procs-0.14.1.crate new file mode 100644 index 0000000..1486fe5 Binary files /dev/null and b/SOURCES/procs-0.14.1.crate differ diff --git a/SOURCES/procs-fix-metadata-auto.diff b/SOURCES/procs-fix-metadata-auto.diff new file mode 100644 index 0000000..c447b4c --- /dev/null +++ b/SOURCES/procs-fix-metadata-auto.diff @@ -0,0 +1,46 @@ +--- procs-0.14.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ procs-0.14.1/Cargo.toml 2023-10-07T10:12:15.779397+00:00 +@@ -161,38 +161,6 @@ + [target."cfg(any(target_os = \"linux\", target_os = \"android\"))".dependencies.which] + version = "4" + +-[target."cfg(target_os = \"macos\")".dependencies.errno] +-version = "0.3" +- +-[target."cfg(target_os = \"macos\")".dependencies.libproc] +-version = "0.14" +- +-[target."cfg(target_os = \"macos\")".dependencies.nix] +-version = "0.27.1" +-features = ["process"] +- +-[target."cfg(target_os = \"macos\")".dependencies.pager] +-version = "0.16" +- +-[target."cfg(target_os = \"macos\")".dependencies.users] +-version = "0.11" +- +-[target."cfg(target_os = \"macos\")".dependencies.which] +-version = "4" +- +-[target."cfg(target_os = \"windows\")".dependencies.winapi] +-version = "0.3" +-features = [ +- "handleapi", +- "minwindef", +- "psapi", +- "securitybaseapi", +- "tlhelp32", +- "winbase", +- "winnt", +- "iphlpapi", +-] +- + [badges.codecov] + branch = "master" + repository = "dalance/procs" +@@ -200,3 +168,4 @@ + + [badges.travis-ci] + repository = "dalance/procs" ++ diff --git a/SOURCES/procs-fix-metadata.diff b/SOURCES/procs-fix-metadata.diff new file mode 100644 index 0000000..d55ef5c --- /dev/null +++ b/SOURCES/procs-fix-metadata.diff @@ -0,0 +1,26 @@ +--- procs-0.14.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ procs-0.14.1/Cargo.toml 2023-10-07T10:12:32.536030+00:00 +@@ -102,10 +102,6 @@ + [dependencies.directories] + version = "5.0.1" + +-[dependencies.dockworker] +-version = "0.3.0" +-optional = true +- + [dependencies.getch] + version = "0.3.1" + +@@ -143,11 +139,7 @@ + version = "0.1" + + [features] +-default = ["docker"] +-docker = [ +- "dockworker", +- "tokio", +-] ++default = [] + + [target."cfg(any(target_os = \"linux\", target_os = \"android\"))".dependencies.pager] + version = "0.16.1" diff --git a/SPECS/rust-procs.spec b/SPECS/rust-procs.spec new file mode 100644 index 0000000..812a74d --- /dev/null +++ b/SPECS/rust-procs.spec @@ -0,0 +1,157 @@ +## 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 crate procs + +Name: rust-procs +Version: 0.14.1 +Release: %autorelease +Summary: Modern replacement for ps + +License: MIT +URL: https://crates.io/crates/procs +Source: %{crates_source} +# Automatically generated patch to strip dependencies and normalize metadata +Patch: procs-fix-metadata-auto.diff +# Manually created patch for downstream crate metadata changes +# * remove docker feature / dockworker dependency +Patch: procs-fix-metadata.diff + +BuildRequires: rust-packaging >= 23 + +%global _description %{expand: +A modern replacement for ps.} + +%description %{_description} + +%package -n %{crate} +Summary: %{summary} +# (MIT OR Apache-2.0) AND Unicode-DFS-2016 +# 0BSD OR MIT OR Apache-2.0 +# Apache-2.0 +# Apache-2.0 OR MIT +# Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT +# BSD-3-Clause +# MIT +# MIT OR Apache-2.0 +# MIT OR Zlib OR Apache-2.0 +# MPL-2.0 +# Unlicense OR MIT +License: Apache-2.0 AND BSD-3-Clause AND MIT AND MPL-2.0 AND Unicode-DFS-2016 AND (0BSD OR MIT OR Apache-2.0) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (MIT OR Zlib OR Apache-2.0) AND (Unlicense OR MIT) +# LICENSE.dependencies contains a full license breakdown + +%description -n %{crate} %{_description} + +%files -n %{crate} +%license LICENSE +%license LICENSE.dependencies +%doc CHANGELOG.md +%doc README.md +%{_bindir}/procs + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build +%{cargo_license_summary} +%{cargo_license} > LICENSE.dependencies + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Mon Jan 15 2024 Arkady L. Shane - 0.14.1-1 +- Rebuilt for MSVSphere 9.3 + +* Tue Oct 10 2023 Fabio Valentini - 0.14.1-1 +- Update to version 0.14.1; Fixes RHBZ#2242470 + +* Wed Aug 02 2023 Fabio Valentini - 0.14.0-1 +- Update to version 0.14.0; Fixes RHBZ#2112181 + +* Fri Jul 21 2023 Fedora Release Engineering - 0.12.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Sat Feb 04 2023 Fabio Valentini - 0.12.3-3 +- Rebuild for fixed frame pointer compiler flags in Rust RPM macros + +* Sat Jan 21 2023 Fedora Release Engineering - 0.12.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Wed Jul 27 2022 Fabio Valentini - 0.12.3-1 +- Update to version 0.12.3; Fixes RHBZ#1921589 + +* Sat Jul 23 2022 Fedora Release Engineering - 0.10.10-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Tue Feb 15 2022 Zbigniew Jędrzejewski-Szmek - 0.10.10-5 +- Rebuild with package notes + +* Fri Jan 21 2022 Fedora Release Engineering - 0.10.10-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 0.10.10-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 0.10.10-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Dec 15 2020 Fabio Valentini - 0.10.10-1 +- Update to version 0.10.10. + +* Mon Oct 26 2020 Fabio Valentini - 0.10.5-1 +- Update to version 0.10.5. + +* Wed Sep 30 2020 Fabio Valentini - 0.10.3-6 +- Bump procfs to 0.8.0. + +* Fri Sep 18 2020 Fabio Valentini - 0.10.3-5 +- Bump which to 4. + +* Sun Aug 16 15:01:39 GMT 2020 Igor Raits - 0.10.3-4 +- Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 0.10.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri May 22 11:35:48 CEST 2020 Igor Raits - 0.10.3-2 +- Update users to 0.10 + +* Mon May 11 2020 Josh Stone - 0.10.3-1 +- Update to 0.10.3 + +* Tue May 05 2020 Josh Stone - 0.10.1-1 +- Update to 0.10.1 + +* Sun Mar 15 09:09:36 CET 2020 Igor Raits - 0.9.20-1 +- Update to 0.9.20 + +* Mon Mar 02 17:17:39 CET 2020 Igor Raits - 0.9.16-1 +- Update to 0.9.16 + +* Tue Feb 25 08:10:30 CET 2020 Igor Raits - 0.9.12-1 +- Update to 0.9.12 + +* Tue Feb 18 13:11:48 CET 2020 Igor Raits - 0.9.11-1 +- Initial package +