commit dd0a865d39202197761ca8c6af484c8d46be464a Author: tigro Date: Mon Jan 15 21:19:01 2024 +0300 import rust-git-delta-0.16.5-6.el9 diff --git a/.rust-git-delta.metadata b/.rust-git-delta.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/git-delta-0.16.5.crate b/SOURCES/git-delta-0.16.5.crate new file mode 100644 index 0000000..675eaea Binary files /dev/null and b/SOURCES/git-delta-0.16.5.crate differ diff --git a/SOURCES/git-delta-fix-metadata.diff b/SOURCES/git-delta-fix-metadata.diff new file mode 100644 index 0000000..0b43798 --- /dev/null +++ b/SOURCES/git-delta-fix-metadata.diff @@ -0,0 +1,38 @@ +--- git-delta-0.16.5/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ git-delta-0.16.5/Cargo.toml 2023-10-27T17:14:42.325147+00:00 +@@ -45,7 +45,7 @@ + version = "0.2.14" + + [dependencies.bat] +-version = "0.22.1" ++version = "0.24.0" + features = ["regex-onig"] + default-features = false + +@@ -56,7 +56,7 @@ + version = "0.1.2" + + [dependencies.bytelines] +-version = "=2.2.2" ++version = "2.2.2" + + [dependencies.chrono] + version = "0.4.23" +@@ -98,7 +98,7 @@ + version = "1.4" + + [dependencies.palette] +-version = "0.6.1" ++version = "0.6.0" + + [dependencies.pathdiff] + version = "0.2.1" +@@ -123,7 +123,7 @@ + version = "5.0.0" + + [dependencies.sysinfo] +-version = "0.28.2" ++version = "0.29.0" + features = [] + default-features = false + diff --git a/SPECS/rust-git-delta.spec b/SPECS/rust-git-delta.spec new file mode 100644 index 0000000..93ce71e --- /dev/null +++ b/SPECS/rust-git-delta.spec @@ -0,0 +1,191 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.3.5) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 6; + 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 crate git-delta + +Name: rust-git-delta +Version: 0.16.5 +Release: %autorelease +Summary: Syntax-highlighting pager for git + +License: MIT +URL: https://crates.io/crates/git-delta +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * bump bat dependency from 0.22.1 to 0.24.0: +# https://github.com/dandavison/delta/commit/953af74 +# * relax bytelines dependency from =2.2.2 to ^2.2.2 +# * temporarily downgrade palette dependency from 0.6.1 to 0.6.0 +# * bump sysinfo dependency from 0.28.2 to 0.29.0 +Patch: git-delta-fix-metadata.diff + +BuildRequires: rust-packaging >= 23 + +%global _description %{expand: +A syntax-highlighting pager for git.} + +%description %{_description} + +%package -n %{crate} +Summary: %{summary} +# (MIT OR Apache-2.0) AND BSD-3-Clause AND GPL-2.0-only WITH GCC-exception-2.0 AND MIT +# (MIT OR Apache-2.0) AND Unicode-DFS-2016 +# 0BSD OR MIT OR Apache-2.0 +# Apache-2.0 +# Apache-2.0 OR BSL-1.0 +# Apache-2.0 OR MIT +# Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT +# CC0-1.0 +# LGPL-3.0-or-later +# MIT +# MIT OR Apache-2.0 +# MIT OR Apache-2.0 OR Zlib +# MIT OR Zlib OR Apache-2.0 +# Unlicense OR MIT +# Zlib OR Apache-2.0 OR MIT +License: Apache-2.0 AND BSD-3-Clause AND CC0-1.0 AND GPL-2.0-only WITH GCC-exception-2.0 AND LGPL-3.0-or-later AND MIT AND Unicode-DFS-2016 AND (0BSD OR MIT OR Apache-2.0) AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (MIT OR Apache-2.0 OR Zlib) AND (Unlicense OR MIT) +# LICENSE.dependencies contains a full license breakdown + +%description -n %{crate} %{_description} + +%files -n %{crate} +%license LICENSE +%license LICENSE.dependencies +%doc ARCHITECTURE.md +%doc CONTRIBUTING.md +%doc README.md +%{_bindir}/delta +%{bash_completions_dir}/delta.bash +%{fish_completions_dir}/delta.fish +%{zsh_completions_dir}/_delta + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires +%if %{with check} +echo 'git-core' +%endif + +%build +%cargo_build +%cargo_license_summary +%{cargo_license} > LICENSE.dependencies + +%install +%cargo_install +# install shell completions +install -Dpm0644 etc/completion/completion.bash \ + -T %{buildroot}/%{bash_completions_dir}/delta.bash +install -Dpm0644 etc/completion/completion.fish \ + -T %{buildroot}/%{fish_completions_dir}/delta.fish +install -Dpm0644 etc/completion/completion.zsh \ + -T %{buildroot}/%{zsh_completions_dir}/_delta + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Mon Jan 15 2024 Arkady L. Shane - 0.16.5-6 +- Rebuilt for MSVSphere 9.3 + +* Sun Oct 29 2023 Michel Lind - 0.16.5-6 +- Rebuilt for bat 0.24.0 + +* Fri Oct 27 2023 Michel Lind - 0.16.5-5 +- Rebuilt for sysinfo 0.29.10 + +* Thu Aug 24 2023 Michel Alexandre Salim - 0.16.5-4 +- Rebuilt for vte 0.11 + +* Sat Jul 29 2023 Jannik Vieten - 0.16.5-3 +- Fix copy-paste error in installation of fish shell completions + +* Fri Jul 21 2023 Fedora Release Engineering - 0.16.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Sat Jul 15 2023 Fabio Valentini - 0.16.5-1 +- Update to version 0.16.5; Fixes RHBZ#2123174 + +* Wed May 03 2023 Fabio Valentini - 0.13.0-5 +- Rebuild for tokio crate >= v1.24.2 (RUSTSEC-2023-0005) + +* Sat Jan 28 2023 Fabio Valentini - 0.13.0-4 +- Rebuild for CVE-2022-24765 and CVE-2022-29187 in libgit2 + +* Fri Jan 20 2023 Fedora Release Engineering - 0.13.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Jul 23 2022 Fedora Release Engineering - 0.13.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Thu Jul 21 2022 Fabio Valentini - 0.13.0-1 +- Update to version 0.13.0; Fixes RHBZ#2017604 + +* Tue Feb 15 2022 Zbigniew Jędrzejewski-Szmek - 0.8.3-4 +- Rebuild with package notes + +* Fri Jan 21 2022 Fedora Release Engineering - 0.8.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Sun Nov 28 2021 Igor Raits - 0.8.3-2 +- Rebuild for libgit2 1.3.x + +* Wed Aug 04 2021 Fabio Valentini - 0.8.3-1 +- Update to version 0.8.3; Fixes RHBZ#1976166 + +* Tue Jul 27 2021 Fedora Release Engineering - 0.8.0-2 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Sun May 30 2021 Fabio Valentini - 0.8.0-1 +- Update to version 0.8.0. +- Fixes RHBZ#1944442 + +* Fri Feb 05 17:25:00 CET 2021 Stefano Figura - 0.6.0-1 +- Update to 0.6.0 (Fixes: RHBZ#1925552) + +* Wed Jan 27 2021 Fedora Release Engineering - 0.5.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Sun Jan 10 18:29:33 CET 2021 Igor Raits - 0.5.1-1 +- Update to 0.5.1 (Fixes: RHBZ#1911749) + +* Tue Dec 29 17:00:21 CET 2020 Igor Raits - 0.4.5-1 +- Update to 0.4.5 (Fixes: RHBZ#1910300) + +* Tue Dec 29 14:21:55 CET 2020 Igor Raits - 0.4.4-2 +- Rebuild against libgit2 1.1.x + +* Sun Nov 29 20:54:00 CEST 2020 Stefano Figura - 0.4.4-1 +- Update to 0.4.4 + +* Thu Aug 27 16:43:44 CEST 2020 Igor Raits - 0.4.1-1 +- Update to 0.4.1 + +* Sun Aug 16 15:01:28 GMT 2020 Igor Raits - 0.1.1-4 +- Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 0.1.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sat May 30 08:01:45 CEST 2020 Igor Raits - 0.1.1-2 +- Update shell-words to 1 + +* Sat May 02 10:50:26 CEST 2020 Igor Raits - 0.1.1-1 +- Initial package +