[packages/sysdig] add bash/zsh completion subpackages
glen
glen at pld-linux.org
Sun Jul 26 14:44:18 CEST 2015
commit baa4cab5af465e1e25477322944c24c68209186c
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Jul 26 15:43:51 2015 +0300
add bash/zsh completion subpackages
sysdig.spec | 34 +++++++++++++++++++++++++++++++++-
1 file changed, 33 insertions(+), 1 deletion(-)
---
diff --git a/sysdig.spec b/sysdig.spec
index 08e172f..17fb1a8 100644
--- a/sysdig.spec
+++ b/sysdig.spec
@@ -15,6 +15,8 @@ BuildRequires: ncurses-devel >= 5.9
BuildRequires: zlib-devel >= 1.2.8
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%define zshdir %{_datadir}/zsh/site-functions
+
%description
Sysdig instruments your physical and virtual machines at the OS level
by installing into the Linux kernel and capturing system calls and
@@ -23,6 +25,30 @@ filter and decode these events in order to extract useful information.
Sysdig can be used to inspect systems live in real-time, or to
generate trace files that can be analyzed at a later stage.
+%package -n bash-completion-%{name}
+Summary: bash-completion for sysdig
+Summary(pl.UTF-8): Bashowe dopełnianie składni dla sysdig
+Group: Applications/Shells
+Requires: %{name} = %{version}-%{release}
+Requires: bash-completion
+%if "%{_rpmversion}" >= "5"
+BuildArch: noarch
+%endif
+
+%description -n bash-completion-%{name}
+bash-completion for sysdig.
+
+%package -n zsh-completion-%{name}
+Summary: zsh-completion for sysdig
+Group: Applications/Shells
+Requires: %{name} = %{version}-%{release}
+%if "%{_rpmversion}" >= "5"
+BuildArch: noarch
+%endif
+
+%description -n zsh-completion-%{name}
+zsh-completion for sysdig.
+
%prep
%setup -q
@@ -59,6 +85,12 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man8/sysdig.8*
%{_datadir}/%{name}
%{_prefix}/src/sysdig-%{version}
+
+%files -n bash-completion-%{name}
+%defattr(644,root,root,755)
/etc/bash_completion.d/sysdig
-%{_datadir}/zsh/site-functions/_sysdig
+
+%files -n zsh-completion-%{name}
+%defattr(644,root,root,755)
+%{zshdir}/_sysdig
%{_datadir}/zsh/vendor-completions/_sysdig
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/sysdig.git/commitdiff/baa4cab5af465e1e25477322944c24c68209186c
More information about the pld-cvs-commit
mailing list