[dmtcp] Install docs to %{_pkgdocdir} where available (#993726).

Ville Skyttä scop at fedoraproject.org
Thu Dec 12 19:35:54 UTC 2013


commit c03d26664ef4c59517e1cc7bdb0466d7fb80af40
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Thu Dec 12 21:35:55 2013 +0200

    Install docs to %{_pkgdocdir} where available (#993726).
    
    - Own package level doc dir.

 dmtcp.spec |   17 ++++++++++++-----
 1 files changed, 12 insertions(+), 5 deletions(-)
---
diff --git a/dmtcp.spec b/dmtcp.spec
index 2e60cd4..e8b486b 100644
--- a/dmtcp.spec
+++ b/dmtcp.spec
@@ -1,6 +1,8 @@
+%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
+
 Name:		dmtcp
 Version:	1.2.8
-Release:	1%{?dist}
+Release:	2%{?dist}
 Summary:	Checkpoint/Restart functionality for Linux processes
 Group:		Applications/System
 License:	LGPLv3+
@@ -110,7 +112,7 @@ with user application.
 %setup -q
 
 %build
-%configure --enable-mtcp-proc-maps
+%configure --enable-mtcp-proc-maps --docdir=%{_pkgdocdir}
 make %{?_smp_mflags}
 
 %check
@@ -131,8 +133,9 @@ make install DESTDIR=%{buildroot}
 %{_bindir}/dmtcp_*
 %{_bindir}/mtcp_restart
 %{_libdir}/%{name}
-%{_docdir}/%{name}-%{version}/QUICK-START
-%{_docdir}/%{name}-%{version}/COPYING
+%dir %{_pkgdocdir}
+%{_pkgdocdir}/QUICK-START
+%{_pkgdocdir}/COPYING
 %{_mandir}/man1/dmtcp.1.gz
 %{_mandir}/man1/dmtcp_*.1.gz
 %{_mandir}/man1/mtcp.1.gz
@@ -153,12 +156,16 @@ make install DESTDIR=%{buildroot}
 %{_libdir}/libdmtcpaware.so
 
 %files -n libdmtcpaware-doc
-%{_docdir}/%{name}-%{version}/examples
+%{_pkgdocdir}/examples
 
 %files -n libdmtcpaware-static
 %{_libdir}/libdmtcpaware.a
 
 %changelog
+* Thu Dec 12 2013 Ville Skyttä <ville.skytta at iki.fi> - 1.2.8-2
+- Install docs to %%{_pkgdocdir} where available (#993726).
+- Own package level doc dir.
+
 * Tue Aug 13 2013 Kapil Arya <kapil at ccs.neu.edu> - 1.2.8-1
 - Update to 1.2.8
 


More information about the scm-commits mailing list