- added zsh patch (adjust zsh completion dir to the one used in PLD)
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 28 Feb 2017 20:45:13 +0000 (21:45 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Tue, 28 Feb 2017 20:45:13 +0000 (21:45 +0100)
- package zsh completion file

elektra-zsh.patch [new file with mode: 0644]
elektra.spec

diff --git a/elektra-zsh.patch b/elektra-zsh.patch
new file mode 100644 (file)
index 0000000..36ebbed
--- /dev/null
@@ -0,0 +1,11 @@
+--- elektra-0.8.19/scripts/CMakeLists.txt.orig 2016-11-22 21:59:21.000000000 +0100
++++ elektra-0.8.19/scripts/CMakeLists.txt      2017-02-28 21:15:22.500779617 +0100
+@@ -61,7 +61,7 @@
+       else ()
+               # This Folder is at least the valid folder for Debian
+               install (FILES kdb_zsh_completion
+-                      DESTINATION /usr/share/zsh/vendor-completions
++                      DESTINATION /usr/share/zsh/site-functions
+                       RENAME _kdb)
+       endif ()
+ endif()
index 083bb671a6921a33ed04d4af380b12c7a90df046..84f06e7be17703f5e924f794cc93600a7350354c 100644 (file)
@@ -18,6 +18,7 @@ License:      BSD
 Group:         Applications/System
 Source0:       http://www.libelektra.org/ftp/elektra/releases/%{name}-%{version}.tar.gz
 # Source0-md5: 6669e765c834e259fb7570f126b85d7e
+Patch0:                %{name}-zsh.patch
 Patch1:                %{name}-no-markdown.patch
 Patch2:                %{name}-no-deb.patch
 URL:           http://www.libelektra.org/
@@ -170,6 +171,23 @@ Bash completion for Elektra kdb command.
 %description -n bash-completion-elektra -l pl.UTF-8
 Bashowe uzupełnianie parametrów dla polecenai kdb z pakietu Elektra.
 
+%package -n zsh-completion-elektra
+Summary:       ZSH completion for Elektra commands
+Summary(pl.UTF-8):     Uzupełnianie parametrów dla poleceń z pakietu Elektra w powłoce ZSH
+Group:         Applications/Shells
+Requires:      %{name} = %{version}-%{release}
+Requires:      zsh
+%if "%{_rpmversion}" >= "5"
+BuildArch:     noarch
+%endif
+
+%description -n zsh-completion-elektra
+ZSH completion for Elektra kdb command.
+
+%description -n zsh-completion-elektra -l pl.UTF-8
+Uzupełnianie parametrów dla polecenai kdb z pakietu Elektra w powłoce
+ZSH.
+
 %package libs
 Summary:       Elektra Project libraries
 Summary(pl.UTF-8):     Biblioteki projektu Elektra
@@ -347,6 +365,7 @@ Wiązanie Pythona 3 GI dla Elektry.
 
 %prep
 %setup -q
+%patch0 -p1
 %patch1 -p1
 %patch2 -p1
 
@@ -616,6 +635,10 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 /etc/bash_completion.d/kdb
 
+%files -n zsh-completion-elektra
+%defattr(644,root,root,755)
+%{_datadir}/zsh/site-functions/_kdb
+
 %files libs
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libelektra.so.*.*.*
This page took 0.102143 seconds and 4 git commands to generate.