Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package go-passbolt-cli for openSUSE:Factory 
checked in at 2024-07-22 17:17:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/go-passbolt-cli (Old)
 and      /work/SRC/openSUSE:Factory/.go-passbolt-cli.new.17339 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "go-passbolt-cli"

Mon Jul 22 17:17:35 2024 rev:2 rq:1188800 version:0.3.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/go-passbolt-cli/go-passbolt-cli.changes  
2024-07-01 11:20:04.930430617 +0200
+++ 
/work/SRC/openSUSE:Factory/.go-passbolt-cli.new.17339/go-passbolt-cli.changes   
    2024-07-22 17:19:19.076432996 +0200
@@ -1,0 +2,5 @@
+Sat Jul 20 12:06:59 UTC 2024 - Sai Karthik Karra <kskart...@disroot.org>
+
+- Add shell Completions & man pages 
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ go-passbolt-cli.spec ++++++
--- /var/tmp/diff_new_pack.F8RpS4/_old  2024-07-22 17:19:19.788461623 +0200
+++ /var/tmp/diff_new_pack.F8RpS4/_new  2024-07-22 17:19:19.836463553 +0200
@@ -15,6 +15,7 @@
 # Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
+
 Name:           go-passbolt-cli
 Version:        0.3.1
 Release:        0
@@ -35,6 +36,37 @@
 
 This project is community driven and not associated with Passbolt SA
 
+%package bash-completion
+Summary:        Bash Completion for %{name}
+Group:          System/Shells
+Requires:       bash-completion
+BuildArch:      noarch
+Requires:       %{name}
+Supplements:    (%{name} and bash-completion)
+
+%description bash-completion
+The official bash completion script for %{name}, generated during the build.
+
+%package zsh-completion
+Summary:        ZSH Completion for %{name}
+Group:          System/Shells
+BuildArch:      noarch
+Requires:       %{name}
+Supplements:    (%{name} and zsh)
+
+%description zsh-completion
+The official zsh completion script for %{name}, generated during the build.
+
+%package fish-completion
+Summary:        Fish Completion for %{name}
+Group:          System/Shells
+BuildArch:      noarch
+Requires:       %{name}
+Supplements:    (%{name} and fish)
+
+%description fish-completion
+The official fish completion script for %{name}, generated during the build.
+
 %prep
 %autosetup -a1
 
@@ -46,15 +78,44 @@
    -ldflags "-s -w" \
    -o %{bin_name}
 
+# Build the shell autocomplete files
+./%{bin_name} completion bash > %{name}-autocomplete.bash
+./%{bin_name} completion zsh > %{name}-autocomplete.zsh
+./%{bin_name} completion fish > %{name}-autocomplete.fish
+
+# generate man pages
+mkdir man && ./%{bin_name} gendoc --type man
+
 %install
 
+# install the binary
 install -D -m 0755 %{bin_name} "%{buildroot}%{_bindir}/%{bin_name}"
 
+# Install the shell autocomplete files
+install -Dm 644 %{name}-autocomplete.bash 
%{buildroot}%{_datadir}/bash-completion/completions/%{name}
+install -Dm 644 %{name}-autocomplete.zsh 
%{buildroot}%{_datadir}/zsh/site-functions/_%{name}
+install -Dm 644 %{name}-autocomplete.fish 
%{buildroot}%{_datadir}/fish/completions/_%{name}
+
+# Install the man pages.
+mkdir -p "%{buildroot}%{_mandir}/man1"
+install -D -m 0644 man/*.1 "%{buildroot}%{_mandir}/man1"
+
 %check
 ./%{bin_name} -v
 
 %files
 %license LICENSE
 %doc README.md
+
 %{_bindir}/%{bin_name}
+%{_mandir}/man1/%{bin_name}*.1.gz
+
+%files bash-completion
+%{_datadir}/bash-completion
+
+%files zsh-completion
+%{_datadir}/zsh
+
+%files fish-completion
+%{_datadir}/fish
 

Reply via email to