[ntp] Install docs to %{_pkgdocdir} where available.

Ville Skyttä scop at fedoraproject.org
Fri Jul 26 20:12:22 UTC 2013


commit f1ba3b626fe2cc273cbc8d6cdf73af4c192d0ad7
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Fri Jul 26 23:12:10 2013 +0300

    Install docs to %{_pkgdocdir} where available.

 ntp.spec |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/ntp.spec b/ntp.spec
index 8cda4e5..254a46e 100644
--- a/ntp.spec
+++ b/ntp.spec
@@ -1,7 +1,7 @@
 Summary: The NTP daemon and utilities
 Name: ntp
 Version: 4.2.6p5
-Release: 14%{?dist}
+Release: 15%{?dist}
 # primary license (COPYRIGHT) : MIT
 # ElectricFence/ (not used) : GPLv2
 # kernel/sys/ppsclock.h (not used) : BSD with advertising
@@ -162,7 +162,7 @@ BuildArch: noarch
 %description doc
 This package contains NTP documentation in HTML format.
  
-%global ntpdocdir %{_datadir}/doc/%{name}-%{version}
+%global ntpdocdir %{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}}
 
 # pool.ntp.org vendor zone which will be used in ntp.conf
 %if 0%{!?vendorzone:1}
@@ -405,6 +405,9 @@ popd
 %{ntpdocdir}/html
 
 %changelog
+* Fri Jul 26 2013 Ville Skyttä <ville.skytta at iki.fi> - 4.2.6p5-15
+- Install docs to %%{_pkgdocdir} where available.
+
 * Wed Jul 17 2013 Petr Pisar <ppisar at redhat.com> - 4.2.6p5-14
 - Perl 5.18 rebuild
 


More information about the scm-commits mailing list