]> git.pld-linux.org Git - packages/wgetpaste.git/commitdiff
- use zsh_compdir, BR: rpmbuild(macros) >= 1.719 master
authorAdam Gołębiowski <adamg@pld-linux.org>
Tue, 18 Jun 2019 08:04:30 +0000 (10:04 +0200)
committerAdam Gołębiowski <adamg@pld-linux.org>
Tue, 18 Jun 2019 08:04:30 +0000 (10:04 +0200)
wgetpaste.spec

index d4ea3716b09ced587ec62eb6e2330d278eb5428d..8a25b6987abfcd39fc2e8b1e555ff756c31dd434 100644 (file)
@@ -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
This page took 0.100485 seconds and 4 git commands to generate.