[vdr] Honor %{_pkgdocdir} where available.

Ville Skyttä scop at fedoraproject.org
Fri Jul 26 18:27:06 UTC 2013


commit 111c9b04bb61c0f85e4836a7fee2c076b999f598
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Fri Jul 26 21:26:52 2013 +0300

    Honor %{_pkgdocdir} where available.

 vdr.spec |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/vdr.spec b/vdr.spec
index 1e80edf..0ab0aab 100644
--- a/vdr.spec
+++ b/vdr.spec
@@ -6,6 +6,7 @@
 #   http://www.tolleri.net/vdr/vdr/vdr-1.6.0-2-pause-0.0.1.patch
 #   http://thread.gmane.org/gmane.linux.vdr/40188
 
+%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
 %global _hardened_build 1
 %bcond_without    docs
 
@@ -23,7 +24,7 @@
 
 Name:           vdr
 Version:        2.0.2
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Video Disk Recorder
 
 License:        GPLv2+
@@ -347,7 +348,7 @@ chmod 755 $RPM_BUILD_ROOT%{plugindir}/bin/%{name}-check-setup
 
 install -dm 755 $RPM_BUILD_ROOT%{_unitdir}
 sed -e 's|/usr/lib/vdr/|%{plugindir}/|' -e 's|/usr/sbin/|%{_sbindir}/|' \
-  -e 's|/usr/share/doc/vdr/|%{_docdir}/%{name}-%{version}/|' \
+  -e 's|/usr/share/doc/vdr/|%{_pkgdocdir}/|' \
   < %{SOURCE1} > $RPM_BUILD_ROOT%{_unitdir}/%{name}.service
 
 install -Dpm 440 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/sudoers.d/vdr
@@ -524,6 +525,9 @@ systemctl daemon-reload &>/dev/null
 
 
 %changelog
+* Fri Jul 26 2013 Ville Skyttä <ville.skytta at iki.fi> - 2.0.2-3
+- Honor %%{_pkgdocdir} where available.
+
 * Wed Jul 17 2013 Petr Pisar <ppisar at redhat.com> - 2.0.2-2
 - Perl 5.18 rebuild
 


More information about the scm-commits mailing list