diff libpst.spec.in @ 180:265c7a65b75b

switch back to fully versioned subpackage dependencies add doxygen devel-doc documentation for the shared library
author Carl Byington <carl@five-ten-sg.com>
date Fri, 10 Apr 2009 12:00:46 -0700
parents 83cb32e41f80
children 3b04745ff76d
line wrap: on
line diff
--- a/libpst.spec.in	Thu Apr 09 09:01:15 2009 -0700
+++ b/libpst.spec.in	Fri Apr 10 12:00:46 2009 -0700
@@ -8,6 +8,7 @@
 BuildRoot:          %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 URL:                http://www.five-ten-sg.com/%{name}/
 Requires:           ImageMagick
+Requires:           %{name}-libs = %{version}-%{release}
 BuildRequires:      ImageMagick freetype-devel gd-devel libjpeg-devel zlib-devel
 
 %description
@@ -23,22 +24,43 @@
 Group:              Development/Libraries
 
 %description libs
-libpst-libs contains the shared library used by the pst utilities.
+The libpst-libs package contains the shared library used by the pst
+utilities.
 
 
 %package devel
 Summary:            Library links and header files for libpst application development
 Group:              Development/Libraries
-Requires:           pkgconfig freetype-devel gd-devel libjpeg-devel zlib-devel
+Requires:           pkgconfig
 Requires:           %{name}-libs = %{version}-%{release}
 
 %description devel
-libpst-devel contains the library links and header files you'll
-need to develop applications using the libpst shared library.
+The libpst-devel package contains the library links and header files
+you'll need to develop applications using the libpst shared library.
 You do not need to install it if you just want to use the libpst
 utilities.
 
 
+%package devel-doc
+Summary:            Documentation for libpst.so for libpst application development
+Group:              Documentation
+Requires:           %{name}-doc = %{version}-%{release}
+
+%description devel-doc
+The libpst-devel-doc package contains the doxygen generated
+documentation for the libpst.so shared library.
+
+
+%package doc
+Summary:            Documentation for the pst utilities in html format
+Group:              Documentation
+
+%description doc
+The libpst-doc package contains the html documentation for the pst
+utilities.  You do not need to install it if you just want to use the
+libpst utilities.
+
+
 
 %prep
 %setup -q
@@ -71,7 +93,6 @@
 %{_bindir}/*
 %{_mandir}/man1/*
 %{_mandir}/man5/*
-%{_datadir}/doc/%{name}-%{version}/
 
 
 %files libs
@@ -79,6 +100,11 @@
 %{_libdir}/libpst.so.*
 
 
+%files devel-doc
+%defattr(-,root,root,-)
+%{_datadir}/doc/%{name}-%{version}/devel
+
+
 %files devel
 %defattr(-,root,root,-)
 %{_libdir}/libpst.so
@@ -86,9 +112,16 @@
 %{_libdir}/pkgconfig/libpst.pc
 
 
+%files doc
+%defattr(-,root,root,-)
+%{_datadir}/doc/%{name}-%{version}/
+
+
+
 %changelog
 * Thu Apr 09 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.36-1
-- remove fully versioned -libs dependency from main package.
+- change to >= for -libs dependency from the main package.
+- add -doc subpackage.
 - other spec file cleanup
 
 * Wed Apr 08 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.35-1