commit 8b87d167e8ed3849ad95ab41ec2ebda7b8470361 Author: tigro Date: Mon Jan 15 23:12:51 2024 +0300 import rust-zoxide-0.9.2-1.el9 diff --git a/.rust-zoxide.metadata b/.rust-zoxide.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/zoxide-0.9.2.crate b/SOURCES/zoxide-0.9.2.crate new file mode 100644 index 0000000..5055b50 Binary files /dev/null and b/SOURCES/zoxide-0.9.2.crate differ diff --git a/SOURCES/zoxide-fix-metadata-auto.diff b/SOURCES/zoxide-fix-metadata-auto.diff new file mode 100644 index 0000000..89631af --- /dev/null +++ b/SOURCES/zoxide-fix-metadata-auto.diff @@ -0,0 +1,11 @@ +--- zoxide-0.9.2/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ zoxide-0.9.2/Cargo.toml 2023-08-17T14:18:47.019882+00:00 +@@ -159,8 +159,5 @@ + ] + default-features = false + +-[target."cfg(windows)".dependencies.which] +-version = "4.2.5" +- + [badges.maintenance] + status = "actively-developed" diff --git a/SOURCES/zoxide-fix-metadata.diff b/SOURCES/zoxide-fix-metadata.diff new file mode 100644 index 0000000..cfa71a4 --- /dev/null +++ b/SOURCES/zoxide-fix-metadata.diff @@ -0,0 +1,11 @@ +--- zoxide-0.9.2/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ zoxide-0.9.2/Cargo.toml 2023-08-17T14:41:11.350575+00:00 +@@ -82,8 +82,6 @@ + [profile.release] + lto = true + codegen-units = 1 +-debug = 0 +-strip = true + + [dependencies.anyhow] + version = "1.0.32" diff --git a/SPECS/rust-zoxide.spec b/SPECS/rust-zoxide.spec new file mode 100644 index 0000000..bb285e1 --- /dev/null +++ b/SPECS/rust-zoxide.spec @@ -0,0 +1,176 @@ +## 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 +# * missing dev-dependencies: rstest ^0.18, rstest-reuse ^0.6 +%bcond_with check + +%global crate zoxide + +Name: rust-zoxide +Version: 0.9.2 +Release: %autorelease +Summary: Smarter cd command for your terminal + +License: MIT +URL: https://crates.io/crates/zoxide +Source: %{crates_source} +# Automatically generated patch to strip foreign dependencies +Patch: zoxide-fix-metadata-auto.diff +# Manually created patch for downstream crate metadata changes +# * drop incompatible compiler flag settings (strip = true, debug = 0) +Patch: zoxide-fix-metadata.diff + +BuildRequires: rust-packaging >= 23 + +%global _description %{expand: +A smarter cd command for your terminal.} + +%description %{_description} + +%package -n %{crate} +Summary: %{summary} +# Apache-2.0 OR MIT +# Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT +# CC0-1.0 OR MIT-0 OR Apache-2.0 +# MIT +# MIT OR Apache-2.0 +# MPL-2.0 +License: MIT AND MPL-2.0 AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (CC0-1.0 OR MIT-0 OR Apache-2.0) +# LICENSE.dependencies contains a full license breakdown + +# recommend fuzzy finder for interactive completions +Recommends: fzf + +%description -n %{crate} %{_description} + +%files -n %{crate} +%license LICENSE +%license LICENSE.dependencies +%doc CHANGELOG.md +%doc README.md +%{_bindir}/zoxide +%{_mandir}/man1/%{crate}*.1* +%{bash_completions_dir}/%{crate}.bash +%{fish_completions_dir}/%{crate}.fish +%{zsh_completions_dir}/_%{crate} + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires +%if %{with check} +echo '/usr/bin/bash' +echo '/usr/bin/fish' +echo '/usr/bin/shellcheck' +echo '/usr/bin/xonsh' +echo '/usr/bin/zsh' +%endif + +%build +%cargo_build +%{cargo_license_summary} +%{cargo_license} > LICENSE.dependencies + +%install +%cargo_install +# install manpages +install -Dpm 644 man/man1/%{crate}*.1 -t %{buildroot}%{_mandir}/man1/ +# install shell completions +install -Dpm 644 contrib/completions/%{crate}.bash -t %{buildroot}/%{bash_completions_dir}/ +install -Dpm 644 contrib/completions/%{crate}.fish -t %{buildroot}/%{fish_completions_dir}/ +install -Dpm 644 contrib/completions/_%{crate} -t %{buildroot}/%{zsh_completions_dir}/ + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Mon Jan 15 2024 Arkady L. Shane - 0.9.2-1 +- Rebuilt for MSVSphere 9.3 + +* Wed Sep 13 2023 Fabio Valentini - 0.9.2-1 +- Update to version 0.9.2; Fixes RHBZ#2196024 + +* Tue Aug 08 2023 Fabio Valentini - 0.9.0-3 +- Bump askama dependency from 0.11 to 0.12 + +* Sat Jul 22 2023 Fedora Release Engineering - 0.9.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed Apr 19 2023 Fabio Valentini - 0.9.0-1 +- Update to version 0.9.0; Fixes RHBZ#2123687 + +* Thu Feb 16 2023 Maxwell G - 0.8.3-4 +- Add missing shell completions and manpages + +* Sun Feb 05 2023 Fabio Valentini - 0.8.3-3 +- Rebuild for fixed frame pointer compiler flags in Rust RPM macros + +* Sat Jan 21 2023 Fedora Release Engineering - 0.8.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Tue Nov 01 2022 Igor Raits - 0.8.3-1 +- Update to 0.8.3 + +* Wed Jul 27 2022 Fabio Valentini - 0.8.2-1 +- Update to version 0.8.2; Fixes RHBZ#2078046 + +* Sat Jul 23 2022 Fedora Release Engineering - 0.8.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Tue Feb 15 2022 Zbigniew Jędrzejewski-Szmek - 0.8.0-3 +- Rebuild with package notes + +* Sat Jan 29 2022 Fabio Valentini - 0.8.0-2 +- Finish port from clap_generate to clap_complete + +* Sat Jan 29 2022 Igor Raits - 0.8.0-1 +- Update to 0.8.0 (Closes: rhbz#2035586) + +* Sat Jan 22 2022 Fedora Release Engineering - 0.7.9-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Wed Nov 17 2021 Robert-André Mauchin - 0.7.9-1 +- Update to 0.7.9 Close: rhbz#1947669 + +* Fri Jul 23 2021 Fedora Release Engineering - 0.5.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 0.5.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Dec 29 17:14:03 CET 2020 Igor Raits - 0.5.0-1 +- Update to 0.5.0 (Fixes: RHBZ#1893357) + +* Mon Dec 28 13:34:03 CET 2020 Igor Raits - 0.4.3-2 +- Rebuild + +* Wed Aug 26 2020 Josh Stone - 0.4.3-1 +- Update to 0.4.3 + +* Sun Aug 16 15:02:00 GMT 2020 Igor Raits - 0.4.1-4 +- Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 0.4.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sun Jun 07 2020 Igor Raits - 0.4.1-2 +- Recommends: fzf + +* Mon May 25 07:37:22 CEST 2020 Igor Raits - 0.4.1-1 +- Update to 0.4.1 + +* Thu May 14 15:19:09 CEST 2020 Igor Raits - 0.4.0-1 +- Initial package +