[packages/wgetpaste] - use zsh_compdir, BR: rpmbuild(macros) >= 1.719

adamg adamg at pld-linux.org
Tue Jun 18 10:04:43 CEST 2019


commit bb23678b5e412a23364f53a1a907a71aa349f2a6
Author: Adam Gołębiowski <adamg at pld-linux.org>
Date:   Tue Jun 18 10:04:30 2019 +0200

    - use zsh_compdir, BR: rpmbuild(macros) >= 1.719

 wgetpaste.spec | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/wgetpaste.spec b/wgetpaste.spec
index d4ea371..8a25b69 100644
--- a/wgetpaste.spec
+++ b/wgetpaste.spec
@@ -10,6 +10,7 @@ Source0:	http://wgetpaste.zlin.dk/%{name}-%{version}.tar.bz2
 Source1:	http://wgetpaste.zlin.dk/%{name}.example
 # Source1-md5:	77392c788659cc648a59df2d239ebe19
 URL:		http://wgetpaste.zlin.dk/
+BuildRequires:	rpmbuild(macros) >= 1.719
 BuildRequires:	sed >= 4.0
 Requires:	coreutils
 Requires:	sed
@@ -49,7 +50,7 @@ cp -a %{SOURCE1} .
 rm -rf $RPM_BUILD_ROOT
 
 install -Dp %{name} $RPM_BUILD_ROOT%{_bindir}/%{name}
-install -Dp _wgetpaste $RPM_BUILD_ROOT%{_datadir}/zsh/site-functions/_wgetpaste
+install -Dp _wgetpaste $RPM_BUILD_ROOT%{zsh_compdir}/_wgetpaste
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -61,4 +62,4 @@ rm -rf $RPM_BUILD_ROOT
 
 %files -n zsh-completion-wgetpaste
 %defattr(644,root,root,755)
-%{_datadir}/zsh/site-functions/_wgetpaste
+%{zsh_compdir}/_wgetpaste
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/wgetpaste.git/commitdiff/bb23678b5e412a23364f53a1a907a71aa349f2a6



More information about the pld-cvs-commit mailing list