[system-storage-manager] Install docs to %{_pkgdocdir} where available (#994122).

Ville Skyttä scop at fedoraproject.org
Mon Dec 16 19:49:27 UTC 2013


commit 90e68db2fe97d5dc880d8de6bdc249b9f12604ad
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Mon Dec 16 21:49:32 2013 +0200

    Install docs to %{_pkgdocdir} where available (#994122).

 system-storage-manager.spec |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/system-storage-manager.spec b/system-storage-manager.spec
index c0f01e4..7f1947d 100644
--- a/system-storage-manager.spec
+++ b/system-storage-manager.spec
@@ -1,6 +1,8 @@
+%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
+
 Name:           system-storage-manager
 Version:        0.2
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        A single tool to manage your storage
 
 Group:          System Environment/Base
@@ -49,17 +51,23 @@ technologies via a single unified interface.
 %install
 rm -rf ${RPM_BUILD_ROOT}
 %{__python} setup.py install --root=${RPM_BUILD_ROOT}
+if [ "%{_pkgdocdir}" != "%{_docdir}/%{name}-%{version}" ]; then
+    mv ${RPM_BUILD_ROOT}/{%{_docdir}/%{name}-%{version},%{_pkgdocdir}}
+fi
 
 
 %files
 %{_bindir}/ssm
-%{_docdir}/%{name}-%{version}/
+%{_pkgdocdir}/
 %{_mandir}/man8/ssm.8*
 %{python_sitelib}/ssmlib/
 %{python_sitelib}/*.egg-info
 
 
 %changelog
+* Mon Dec 16 2013 Ville Skyttä <ville.skytta at iki.fi> - 0.2-4
+- Install docs to %%{_pkgdocdir} where available (#994122).
+
 * Sun Aug 04 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.2-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
 


More information about the scm-commits mailing list