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

Ville Skyttä scop at fedoraproject.org
Fri Jul 26 20:06:57 UTC 2013


commit 5fa23fd6fe785b7417279d0ce24a3ac4084a88dc
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Fri Jul 26 23:06:43 2013 +0300

    Install docs to %{_pkgdocdir} where available.

 lrzip.spec |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/lrzip.spec b/lrzip.spec
index efc47c2..0d33abd 100644
--- a/lrzip.spec
+++ b/lrzip.spec
@@ -1,7 +1,7 @@
 # These utilities do not use the standalone library
 Name:           lrzip
 Version:        0.614
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        Compression program optimized for large files
 Group:          Applications/File
 License:        GPLv2+
@@ -70,7 +70,7 @@ for F in lzma/history.txt; do
 done
 
 
-%global docdir %{_datadir}/doc/%{name}-%{version}
+%global docdir %{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}}
 %build
 %configure --docdir='%{docdir}' --enable-shared --enable-static --enable-asm
 make %{?_smp_mflags}
@@ -106,6 +106,9 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm {} +
 %{_libdir}/lib%{name}.a
 
 %changelog
+* Fri Jul 26 2013 Ville Skyttä <ville.skytta at iki.fi> - 0.614-4
+- Install docs to %%{_pkgdocdir} where available.
+
 * Thu Feb 14 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.614-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
 


More information about the scm-commits mailing list