[goocanvasmm/f14/master] fix documentation directories ownership

Haïkel Guémar hguemar at fedoraproject.org
Mon Feb 28 07:45:21 UTC 2011


commit 4b557810f5828dd47c13c1b4a5a1561a0cfdc265
Author: Haikel Guemar <hguemar at fedoraproject.org>
Date:   Mon Feb 28 08:44:52 2011 +0100

    fix documentation directories ownership

 goocanvasmm.spec |   43 ++++++++++++++++++++++++++++++-------------
 1 files changed, 30 insertions(+), 13 deletions(-)
---
diff --git a/goocanvasmm.spec b/goocanvasmm.spec
index f7dddfe..2af8748 100644
--- a/goocanvasmm.spec
+++ b/goocanvasmm.spec
@@ -2,7 +2,7 @@
 
 Name:           goocanvasmm
 Version:        0.15.4
-Release:        3%{?dist}
+Release:        3%{?dist}.1
 
 Summary:        C++ interface for goocanvas
 
@@ -15,7 +15,6 @@ BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires:  glibmm24-devel >= 2.14.2
 BuildRequires:  gtkmm24-devel >= 2.22.0
 BuildRequires:  goocanvas-devel >= 0.15
-BuildRequires:  doxygen graphviz
 
 
 %description
@@ -33,11 +32,28 @@ Requires:       gtkmm24-devel
 Requires:       goocanvas-devel
 Requires:       pkgconfig
 
+%description    devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+%package        doc
+Summary:        Developer documentation for %{name}
+Group:          Documentation
+%if 0%{?fedora} > 9 || 0%{?rhel} > 5
+BuildArch:      noarch
+%endif
+BuildRequires:  doxygen graphviz
+Requires:       gtkmm24-docs
+
+%description      doc
+This package contains developer's documentation for the goocanvasmm2
+library. Goocanvasmm2 is the C++ API for the goocanvas graphics library.
 
-%description devel
-This package contains the libraries and header files needed for
-developing applications with %{name}.
+The documentation can be viewed either through the devhelp
+documentation browser or through a web browser.
 
+If using a web browser the documentation is at
+/usr/share/doc/%{tarname}-%{api_ver}
 
 %prep
 %setup -q
@@ -75,19 +91,20 @@ rm -rf $RPM_BUILD_ROOT
 %files devel
 %defattr(-, root, root, -)
 %{_includedir}/%{name}-%{api_ver}
-%{_libdir}/%{name}-%{api_ver}/include/goocanvasmmconfig.h
+%{_libdir}/%{name}-%{api_ver}
 %{_libdir}/*.so
-%{_libdir}/pkgconfig/*.pc
-%doc %{_datadir}/doc/%{name}-%{api_ver}
-%{_datadir}/devhelp
+%{_libdir}/pkgconfig/%{name}-%{api_ver}.pc
+
+%files doc
+%defattr(-,root,root,-)
+%doc COPYING
+%doc %{_datadir}/devhelp/books/%{name}-%{api_ver}
+%doc %{_docdir}/%{name}-%{api_ver}
 
 
 %changelog
 * Tue Feb 22 2011 Haïkel Guémar <hguemar at fedoraproject.org> - 0.15.4-3
-- rpm spec cleaning
-
-* Sun Feb 20 2011 Haïkel Guémar <hguemar at fedoraproject.org> - 0.15.4-2
-- fix devhelp documentation location
+- add doc sub-package and fix documentation handling
 
 * Tue Oct 26 2010 Haïkel Guémar <hguemar at fedoraproject.org> - 0.15.4-1
 - Update to upstream 0.15.4


More information about the scm-commits mailing list