SUNWdbus.spec
changeset 11223 629a5ee16ecc
parent 10624 303de5c195ab
child 11439 0f2a3b3ff86d
--- a/SUNWdbus.spec	Tue Nov 20 14:36:24 2007 +0000
+++ b/SUNWdbus.spec	Tue Nov 20 21:44:27 2007 +0000
@@ -24,6 +24,7 @@
 Name:                    SUNWdbus
 Summary:                 Simple IPC library based on messages
 Version:                 %{dbus.version}
+Source:                  %{name}-manpages-0.1.tar.gz
 SUNW_BaseDir:            %{_basedir}
 BuildRoot:               %{_tmppath}/%{name}-%{version}-build
 Source1:        dbus.xml
@@ -62,6 +63,9 @@
 mkdir %name-%version/%{base_arch}
 %dbus.prep -d %name-%version/%{base_arch}
 
+cd %{_builddir}/%name-%version
+gzcat %SOURCE0 | tar xf -
+
 %build
 # Put /usr/ccs/lib first in the PATH so that cpp is picked up from there
 # note: I didn't put /usr/lib in the PATH because there's too much other
@@ -82,6 +86,9 @@
 %endif
 
 %dbus.install -d %name-%version/%{base_arch}
+rm -rf $RPM_BUILD_ROOT%{_mandir}
+cd %{_builddir}/%name-%version/sun-manpages
+make install DESTDIR=$RPM_BUILD_ROOT
 
 # Create symlink to support hal which was built with an older version of dbus.
 cd $RPM_BUILD_ROOT%{_libdir}
@@ -178,7 +185,9 @@
 %{_datadir}/dbus-1
 %dir %attr(0755, root, bin) %{_mandir}
 %dir %attr(0755, root, bin) %{_mandir}/man1
+%dir %attr(0755, root, bin) %{_mandir}/man3
 %{_mandir}/man1/*
+%{_mandir}/man3/*
 %ifarch amd64 sparcv9
 %dir %attr (0755, root, bin) %{_libdir}/%{_arch64}
 %{_libdir}/%{_arch64}/libdbus*
@@ -219,6 +228,8 @@
 %endif
 
 %changelog
+* Tue Nov 20 2007 - [email protected]
+- Add dbus manpages.
 * Mon Oct  8 2007 - [email protected]
 - Remove %{_libdir}/dbus-1 line from base package as it only contains a header
   file and is duplicated in the devel package. Fixes 6613798.