Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package teleport for openSUSE:Factory 
checked in at 2024-11-17 16:41:15
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/teleport (Old)
 and      /work/SRC/openSUSE:Factory/.teleport.new.2017 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "teleport"

Sun Nov 17 16:41:15 2024 rev:121 rq:1224512 version:16.4.7

Changes:
--------
--- /work/SRC/openSUSE:Factory/teleport/teleport.changes        2024-11-15 
15:42:35.740797743 +0100
+++ /work/SRC/openSUSE:Factory/.teleport.new.2017/teleport.changes      
2024-11-17 16:41:18.483505057 +0100
@@ -1,0 +2,5 @@
+Fri Nov 15 08:43:06 UTC 2024 - Johannes Kastl 
<opensuse_buildserv...@ojkastl.de>
+
+- add completions for teleport, tsh, tctl and tbot
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ teleport.spec ++++++
--- /var/tmp/diff_new_pack.8L8oUB/_old  2024-11-17 16:41:20.539590461 +0100
+++ /var/tmp/diff_new_pack.8L8oUB/_new  2024-11-17 16:41:20.539590461 +0100
@@ -31,12 +31,14 @@
 Source5:        tbot.yaml
 # Rust vendoring
 Source6:        vendor.tar.zst
+BuildRequires:  bash-completion
 BuildRequires:  cargo >= 1.69
 BuildRequires:  cargo-packaging
 BuildRequires:  git-core
 BuildRequires:  go1.22 >= 1.22.9
 BuildRequires:  pam-devel
 BuildRequires:  systemd-rpm-macros
+BuildRequires:  zsh
 Requires:       teleport-tctl
 
 %description
@@ -53,20 +55,83 @@
 * Windows Hosts
 * Networked servers
 
-%package -n teleport-tctl
+%package -n %{name}-bash-completion
+Summary:        Bash Completion for %{name}
+Group:          System/Shells
+Requires:       %{name} = %{version}
+Requires:       bash-completion
+Supplements:    (%{name} and bash-completion)
+BuildArch:      noarch
+
+%description -n %{name}-bash-completion
+Bash command line completion support for %{name}.
+
+%package -n %{name}-zsh-completion
+Summary:        Zsh Completion for %{name}
+Group:          System/Shells
+Requires:       %{name} = %{version}
+Supplements:    (%{name} and zsh)
+BuildArch:      noarch
+
+%description -n %{name}-zsh-completion
+zsh command line completion support for %{name}.
+
+%package -n %{name}-tctl
 Summary:        CLI tool for managing a teleport server
 License:        Apache-2.0
 
-%description -n teleport-tctl
+%package -n %{name}-tctl-bash-completion
+Summary:        Bash Completion for %{name}-tctl
+Group:          System/Shells
+Requires:       %{name}-tctl = %{version}
+Requires:       bash-completion
+Supplements:    (%{name}-tctl and bash-completion)
+BuildArch:      noarch
+
+%description -n %{name}-tctl-bash-completion
+Bash command line completion support for %{name}-tctl.
+
+%package -n %{name}-tctl-zsh-completion
+Summary:        Zsh Completion for %{name}-tctl
+Group:          System/Shells
+Requires:       %{name}-tctl = %{version}
+Supplements:    (%{name}-tctl and zsh)
+BuildArch:      noarch
+
+%description -n %{name}-tctl-zsh-completion
+zsh command line completion support for %{name}-tctl.
+
+%description -n %{name}-tctl
 An administrative tool that can configure Teleport Auth Service.
 
-%package -n teleport-tsh
+%package -n %{name}-tsh
 Summary:        CLI tool for logging into nodes via Teleport SSH
 License:        Apache-2.0
 
-%description -n teleport-tsh
+%description -n %{name}-tsh
 A tool that lets end users interact with Teleport nodes. This replaces ssh.
 
+%package -n %{name}-tsh-bash-completion
+Summary:        Bash Completion for %{name}-tsh
+Group:          System/Shells
+Requires:       %{name}-tsh = %{version}
+Requires:       bash-completion
+Supplements:    (%{name}-tsh and bash-completion)
+BuildArch:      noarch
+
+%description -n %{name}-tsh-bash-completion
+Bash command line completion support for %{name}-tsh.
+
+%package -n %{name}-tsh-zsh-completion
+Summary:        Zsh Completion for %{name}-tsh
+Group:          System/Shells
+Requires:       %{name}-tsh = %{version}
+Supplements:    (%{name}-tsh and zsh)
+BuildArch:      noarch
+
+%description -n %{name}-tsh-zsh-completion
+zsh command line completion support for %{name}-tsh.
+
 %package -n teleport-tbot
 Summary:        CLI tool for Machine ID
 License:        Apache-2.0
@@ -78,6 +143,27 @@
 role-based access controls and audit.
 tbot is the executable belonging to the Machine ID service.
 
+%package -n %{name}-tbot-bash-completion
+Summary:        Bash Completion for %{name}-tbot
+Group:          System/Shells
+Requires:       %{name}-tbot = %{version}
+Requires:       bash-completion
+Supplements:    (%{name}-tbot and bash-completion)
+BuildArch:      noarch
+
+%description -n %{name}-tbot-bash-completion
+Bash command line completion support for %{name}-tbot.
+
+%package -n %{name}-tbot-zsh-completion
+Summary:        Zsh Completion for %{name}-tbot
+Group:          System/Shells
+Requires:       %{name}-tbot = %{version}
+Supplements:    (%{name}-tbot and zsh)
+BuildArch:      noarch
+
+%description -n %{name}-tbot-zsh-completion
+zsh command line completion support for %{name}-tbot.
+
 %package -n teleport-fdpass-teleport
 Summary:        Significantly reduce resource consumption by large numbers of 
SSH connections
 License:        Apache-2.0
@@ -138,6 +224,46 @@
 install -D -m 644 examples/systemd/machine-id/machine-id.service 
%{buildroot}%{_unitdir}/
 install -D -m 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/tbot.yaml
 
+# teleport completions
+
+# create the bash completion file
+mkdir -p %{buildroot}%{_datarootdir}/bash-completion/completions/
+%{buildroot}/%{_sbindir}/teleport --completion-script-bash > 
%{buildroot}%{_datarootdir}/bash-completion/completions/teleport
+
+# create the zsh completion file
+mkdir -p %{buildroot}%{_datarootdir}/zsh/site-functions/
+%{buildroot}/%{_sbindir}/teleport --completion-script-zsh > 
%{buildroot}%{_datarootdir}/zsh/site-functions/_teleport
+
+# tctl completions
+
+# create the bash completion file
+mkdir -p %{buildroot}%{_datarootdir}/bash-completion/completions/
+%{buildroot}/%{_bindir}/tctl --completion-script-bash > 
%{buildroot}%{_datarootdir}/bash-completion/completions/tctl
+
+# create the zsh completion file
+mkdir -p %{buildroot}%{_datarootdir}/zsh/site-functions/
+%{buildroot}/%{_bindir}/tctl --completion-script-zsh > 
%{buildroot}%{_datarootdir}/zsh/site-functions/_tctl
+
+# tsh completions
+
+# create the bash completion file
+mkdir -p %{buildroot}%{_datarootdir}/bash-completion/completions/
+%{buildroot}/%{_bindir}/tsh --completion-script-bash > 
%{buildroot}%{_datarootdir}/bash-completion/completions/tsh
+
+# create the zsh completion file
+mkdir -p %{buildroot}%{_datarootdir}/zsh/site-functions/
+%{buildroot}/%{_bindir}/tsh --completion-script-zsh > 
%{buildroot}%{_datarootdir}/zsh/site-functions/_tsh
+
+# tbot completions
+
+# create the bash completion file
+mkdir -p %{buildroot}%{_datarootdir}/bash-completion/completions/
+%{buildroot}/%{_bindir}/tbot --completion-script-bash > 
%{buildroot}%{_datarootdir}/bash-completion/completions/tbot
+
+# create the zsh completion file
+mkdir -p %{buildroot}%{_datarootdir}/zsh/site-functions/
+%{buildroot}/%{_bindir}/tbot --completion-script-zsh > 
%{buildroot}%{_datarootdir}/zsh/site-functions/_tbot
+
 # teleport service
 
 %pre -n teleport
@@ -173,16 +299,34 @@
 %{_unitdir}/teleport.service
 %config(noreplace) %{_sysconfdir}/teleport.yaml
 
+%files -n %{name}-bash-completion
+%{_datarootdir}/bash-completion/completions/teleport
+
+%files -n %{name}-zsh-completion
+%{_datarootdir}/zsh/site-functions/_teleport
+
 %files -n teleport-tsh
 %doc README.md
 %license LICENSE
 %{_bindir}/tsh
 
+%files -n %{name}-tsh-bash-completion
+%{_datarootdir}/bash-completion/completions/tsh
+
+%files -n %{name}-tsh-zsh-completion
+%{_datarootdir}/zsh/site-functions/_tsh
+
 %files -n teleport-tctl
 %doc README.md
 %license LICENSE
 %{_bindir}/tctl
 
+%files -n %{name}-tctl-bash-completion
+%{_datarootdir}/bash-completion/completions/tctl
+
+%files -n %{name}-tctl-zsh-completion
+%{_datarootdir}/zsh/site-functions/_tctl
+
 %files -n teleport-tbot
 %doc README.md
 %license LICENSE
@@ -190,6 +334,12 @@
 %{_unitdir}/machine-id.service
 %config(noreplace) %{_sysconfdir}/tbot.yaml
 
+%files -n %{name}-tbot-bash-completion
+%{_datarootdir}/bash-completion/completions/tbot
+
+%files -n %{name}-tbot-zsh-completion
+%{_datarootdir}/zsh/site-functions/_tbot
+
 %files -n teleport-fdpass-teleport
 %doc README.md
 %license LICENSE

Reply via email to