[gtksourceviewmm/f14/master] split doc into subpackage

Haïkel Guémar hguemar at fedoraproject.org
Tue Feb 22 05:54:48 UTC 2011


commit f6249a07d252a7d9aca79f1575a6409293993986
Author: Haïkel Guémar <hguemar at fedoraproject.org>
Date:   Tue Feb 22 06:54:35 2011 +0100

    split doc into subpackage

 gtksourceviewmm.spec |   37 +++++++++++++++++++++++++++----------
 1 files changed, 27 insertions(+), 10 deletions(-)
---
diff --git a/gtksourceviewmm.spec b/gtksourceviewmm.spec
index c211505..5a02a39 100644
--- a/gtksourceviewmm.spec
+++ b/gtksourceviewmm.spec
@@ -1,6 +1,8 @@
+%global api_ver 2.0
+
 Name:             gtksourceviewmm
 Version:          2.10.1
-Release:          1%{?dist}
+Release:          2%{?dist}
 Summary:          A C++ wrapper for the gtksourceview widget library
 
 Group:            System Environment/Libraries
@@ -33,6 +35,21 @@ The %{name}-devel package contains libraries and header files for
 developing applications that use %{name}.
 
 
+%package          doc
+Summary:          Developer's documentation for the gtksourceviewmm library
+Group:            Documentation
+BuildArch:        noarch
+Requires:         libsigc++20-doc
+Requires:	  gtkmm24-docs
+Requires:         glibmm24-doc
+
+%description      doc
+This package contains developer's documentation for the Gtksourceviewmm
+library. Gtksourceviewmm is the C++ API for the Gtksourceview library.
+
+The documentation can be viewed either through the devhelp
+documentation browser or through a web browser.
+
 %prep
 %setup -q
 
@@ -49,14 +66,6 @@ rm -rf $RPM_BUILD_ROOT
 make INSTALL="install -c -p" DESTDIR=$RPM_BUILD_ROOT install
 find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
 
-# Move documentation to gtk-doc directory
-mkdir -p $RPM_BUILD_ROOT%{_datadir}/gtk-doc/html
-mv $RPM_BUILD_ROOT%{_datadir}/doc/gtksourceviewmm-2.0 $RPM_BUILD_ROOT%{_datadir}/gtk-doc/html/gtksourceviewmm-2.0
-
-mv ${RPM_BUILD_ROOT}%{_datadir}/devhelp/books/gtksourceviewmm-2.0/*.devhelp2 ${RPM_BUILD_ROOT}%{_datadir}/gtk-doc/html/gtksourceviewmm-2.0
-# Fix devhelp broken base tag
-sed -i 's:base="[^\"]*":base="/usr/share/gtk-doc/html/gtksourceviewmm-2.0/reference/html":' ${RPM_BUILD_ROOT}%{_datadir}/gtk-doc/html/gtksourceviewmm-2.0/*.devhelp2
-
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -76,14 +85,22 @@ rm -rf $RPM_BUILD_ROOT
 
 %files devel
 %defattr(-,root,root,-)
-%doc %{_datadir}/gtk-doc/html/%{name}-2.0
 %{_includedir}/%{name}-2.0
 %{_libdir}/*.so
 %{_libdir}/%{name}-2.0
 %{_libdir}/pkgconfig/*.pc
 
 
+%files doc
+%defattr(-, root, root, -)
+%{_docdir}/%{name}-%{api_ver}
+%{_datadir}/devhelp
+
+
 %changelog
+* Tue Feb 22 2011 Haïkel Guémar <hguemar at fedoraproject.org> - 2.10.1-2
+- split doc into subpackage
+
 * Mon Nov 08 2010  <hguemar at fedoraproject.org> - 2.10.1-1
 - Update to upstream 2.10.1
 - Add missing header gtksourceviewmmconfig.h (RHBZ #650727)


More information about the scm-commits mailing list