[packages/wireguard-tools] package bash completions

atler atler at pld-linux.org
Sun Jul 25 22:17:20 CEST 2021


commit e5e40fbf78005b8e14a40afbb9248a80cfb5d155
Author: Jan Palus <atler at pld-linux.org>
Date:   Sun Jul 25 21:43:03 2021 +0200

    package bash completions

 wireguard-tools.spec | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
---
diff --git a/wireguard-tools.spec b/wireguard-tools.spec
index 4061aa5..691afe8 100644
--- a/wireguard-tools.spec
+++ b/wireguard-tools.spec
@@ -9,6 +9,7 @@ Source0:	https://git.zx2c4.com/wireguard-tools/snapshot/%{name}-%{version}.tar.x
 Patch0:		opt.patch
 URL:		https://www.wireguard.com/
 BuildRequires:	libmnl-devel
+BuildRequires:	rpm-build >= 4.6
 BuildRequires:	rpmbuild(macros) >= 1.701
 BuildRequires:	tar >= 1:1.22
 BuildRequires:	xz
@@ -27,6 +28,16 @@ This package contains user space tools. Kernel module is included in
 Linux 5.6+. You need to also install kernel module from
 kernel-*-misc-wireguard package for kernel < 5.6.
 
+%package -n bash-completion-wireguard
+Summary:	bash-completion for WireGuard
+Group:		Applications/Shells
+Requires:	%{name} = %{version}-%{release}
+Requires:	bash-completion >= 2.0
+BuildArch:	noarch
+
+%description -n bash-completion-wireguard
+This package provides bash-completion for WireGuard.
+
 %prep
 %setup -q
 %patch0 -p1
@@ -64,3 +75,8 @@ rm -rf $RPM_BUILD_ROOT
 %{systemdunitdir}/wg-quick.target
 %{_mandir}/man8/wg-quick.8*
 %{_mandir}/man8/wg.8*
+
+%files -n bash-completion-wireguard
+%defattr(644,root,root,755)
+%{bash_compdir}/wg
+%{bash_compdir}/wg-quick
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/wireguard-tools.git/commitdiff/4263a5e0708cf39a551917612349de616e7c1fd0



More information about the pld-cvs-commit mailing list