[kf5-kdelibs4support/f20: 7/8] Install man pages, create -doc subpackage

Daniel Vrátil dvratil at fedoraproject.org
Tue Nov 4 12:52:32 UTC 2014


commit 42fc5c21f92492769ec4607da7bbed12596628d1
Author: Dan Vrátil <dvratil at redhat.com>
Date:   Tue Nov 4 13:15:14 2014 +0100

    Install man pages, create -doc subpackage

 kf5-kdelibs4support.spec |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)
---
diff --git a/kf5-kdelibs4support.spec b/kf5-kdelibs4support.spec
index eeabe2b..f061b6a 100644
--- a/kf5-kdelibs4support.spec
+++ b/kf5-kdelibs4support.spec
@@ -64,6 +64,14 @@ Conflicts:      %{name} < 5.4.0-1
 %description    libs
 %{summary}.
 
+%package        doc
+Summary:        Documentation and user manuals for %{name}
+Requires:       %{name} = %{version}-%{release}
+Conflicts:      %{name} < 5.4.0-1
+BuildArch:      noarch
+%description    doc
+%{summary}.
+
 %package        devel
 Summary:        Development files for %{name}
 Requires:       %{name}%{?_isa} = %{version}-%{release}
@@ -130,8 +138,6 @@ make %{?_smp_mflags} -C %{_target_platform}
 %config %{_kf5_sysconfdir}/xdg/kdebug.areas
 %config %{_kf5_sysconfdir}/xdg/kdebugrc
 %config %{_kf5_sysconfdir}/xdg/ksslcalist
-%{_kf5_mandir}/man1/*
-%{_kf5_docdir}/HTML/en/kdebugdialog5
 
 %post libs -p /sbin/ldconfig
 %postun libs -p /sbin/ldconfig
@@ -143,6 +149,12 @@ make %{?_smp_mflags} -C %{_target_platform}
 %{_kf5_plugindir}/kio/metainfo.so
 %{_kf5_plugindir}/kded/networkstatus.so
 
+%files doc
+%{_kf5_docdir}/HTML/*/kdebugdialog5
+%{_kf5_mandir}/man1/*
+%{_kf5_mandir}/*/man1/*
+%exclude %{_kf5_mandir}/man1
+
 %files devel
 %{_kf5_libdir}/libKF5KDELibs4Support.so
 %{_kf5_libdir}/cmake/KF5KDELibs4Support/


More information about the scm-commits mailing list