Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package bat for openSUSE:Factory checked in at 2022-12-01 17:21:14 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/bat (Old) and /work/SRC/openSUSE:Factory/.bat.new.1835 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "bat" Thu Dec 1 17:21:14 2022 rev:18 rq:1039254 version:0.22.1 Changes: -------- --- /work/SRC/openSUSE:Factory/bat/bat.changes 2022-10-14 15:44:03.236070152 +0200 +++ /work/SRC/openSUSE:Factory/.bat.new.1835/bat.changes 2022-12-01 17:22:08.206533019 +0100 @@ -1,0 +2,6 @@ +Wed Nov 30 22:20:13 UTC 2022 - Filippo Bonazzi <filippo.bona...@suse.com> + +- Add shell completion packages +- Install manpage + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ bat.spec ++++++ --- /var/tmp/diff_new_pack.31RMo8/_old 2022-12-01 17:22:09.946542534 +0100 +++ /var/tmp/diff_new_pack.31RMo8/_new 2022-12-01 17:22:09.950542556 +0100 @@ -36,6 +36,33 @@ A cat(1) clone which supports syntax highlighting for a large number of programming and markup languages. It has git integration and automatic paging. +%package bash-completion +Summary: Bash completion for %{name} +Requires: %{name} = %{version} +Supplements: (%{name} and bash-completion) +BuildArch: noarch + +%description bash-completion +Bash command line completion support for %{name}. + +%package fish-completion +Summary: Fish completion for %{name} +Requires: %{name} = %{version} +Supplements: (%{name} and fish) +BuildArch: noarch + +%description fish-completion +Fish command line completion support for %{name}. + +%package zsh-completion +Summary: Zsh completion for %{name} +Requires: %{name} = %{version} +Supplements: (%{name} and zsh) +BuildArch: noarch + +%description zsh-completion +Zsh command line completion support for %{name}. + %prep %setup -qa1 mkdir .cargo @@ -47,6 +74,12 @@ %install install -D -m 0755 target/release/%{name} %{buildroot}%{_bindir}/%{name} +install -D -m 0644 $(find target/release/build -name "%{name}.1") "%{buildroot}/%{_mandir}/man1/%{name}.1" + +install -D -m 0644 $(find target/release/build -name "%{name}.bash") "%{buildroot}/%{_datadir}/bash-completion/completions/%{name}" +install -D -m 0644 $(find target/release/build -name "%{name}.fish") "%{buildroot}/%{_datadir}/fish/vendor_completions.d/%{name}.fish" +install -D -m 0644 $(find target/release/build -name "%{name}.zsh") "%{buildroot}/%{_datadir}/zsh/site-functions/_%{name}" + %if %{with check} %check %{cargo_test} @@ -56,5 +89,19 @@ %doc README.md CONTRIBUTING.md CHANGELOG.md %license LICENSE-MIT LICENSE-APACHE %{_bindir}/%{name} +%{_mandir}/man1/%{name}.1%{ext_man} + +%files bash-completion +%{_datadir}/bash-completion/completions/%{name} + +%files fish-completion +%dir %{_datadir}/fish +%dir %{_datadir}/fish/vendor_completions.d +%{_datadir}/fish/vendor_completions.d/%{name}.fish + +%files zsh-completion +%dir %{_datadir}/zsh +%dir %{_datadir}/zsh/site-functions +%{_datadir}/zsh/site-functions/_%{name} %changelog ++++++ vendor.tar.xz ++++++ /work/SRC/openSUSE:Factory/bat/vendor.tar.xz /work/SRC/openSUSE:Factory/.bat.new.1835/vendor.tar.xz differ: char 26, line 1