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

Ville Skyttä scop at fedoraproject.org
Fri Jul 26 19:31:52 UTC 2013


commit 30dc050f71f01a81530e7a9fee9c85e17cf2f745
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Fri Jul 26 22:31:23 2013 +0300

    Install docs to %{_pkgdocdir} where available.

 libhocr.spec |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/libhocr.spec b/libhocr.spec
index e82ff89..4539c25 100644
--- a/libhocr.spec
+++ b/libhocr.spec
@@ -1,5 +1,5 @@
 # Override default upstream location [/usr/share/doc/libhocr]
-%define	hocrdocdir	%{_docdir}/%{name}-%{version}
+%global	hocrdocdir	%{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}}
 
 # sitelib for noarch packages, sitearch for others (remove the unneeded one)
 %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
@@ -7,7 +7,7 @@
 
 Name:		libhocr
 Version:	0.10.17
-Release:	14%{?dist}
+Release:	15%{?dist}
 Summary:	A Hebrew optical character recognition library
 
 Group:		System Environment/Libraries
@@ -176,6 +176,9 @@ rm -rf %{buildroot}
 
 
 %changelog
+* Fri Jul 26 2013 Ville Skyttä <ville.skytta at iki.fi> - 0.10.17-15
+- Install docs to %%{_pkgdocdir} where available.
+
 * Thu Apr 25 2013 Jon Ciesla <limburgher at gmail.com> - 0.10.17-14
 - Drop desktop vendor tag.
 


More information about the scm-commits mailing list