From: Jakub Bogusz Date: Tue, 28 Feb 2017 20:45:13 +0000 (+0100) Subject: - added zsh patch (adjust zsh completion dir to the one used in PLD) X-Git-Tag: auto/th/elektra-0.8.19-4~2 X-Git-Url: http://git.pld-linux.org/?p=packages%2Felektra.git;a=commitdiff_plain;h=d8effeb694d642dae0202902331d6f8c957c54f3 - added zsh patch (adjust zsh completion dir to the one used in PLD) - package zsh completion file --- diff --git a/elektra-zsh.patch b/elektra-zsh.patch new file mode 100644 index 0000000..36ebbed --- /dev/null +++ b/elektra-zsh.patch @@ -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() diff --git a/elektra.spec b/elektra.spec index 083bb67..84f06e7 100644 --- a/elektra.spec +++ b/elektra.spec @@ -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.*.*.*