SUNWdbus.spec
changeset 11223 629a5ee16ecc
parent 10624 303de5c195ab
child 11439 0f2a3b3ff86d
equal deleted inserted replaced
11222:1c13bc22ec30 11223:629a5ee16ecc
    22 %use dbus = dbus.spec
    22 %use dbus = dbus.spec
    23 
    23 
    24 Name:                    SUNWdbus
    24 Name:                    SUNWdbus
    25 Summary:                 Simple IPC library based on messages
    25 Summary:                 Simple IPC library based on messages
    26 Version:                 %{dbus.version}
    26 Version:                 %{dbus.version}
       
    27 Source:                  %{name}-manpages-0.1.tar.gz
    27 SUNW_BaseDir:            %{_basedir}
    28 SUNW_BaseDir:            %{_basedir}
    28 BuildRoot:               %{_tmppath}/%{name}-%{version}-build
    29 BuildRoot:               %{_tmppath}/%{name}-%{version}-build
    29 Source1:        dbus.xml
    30 Source1:        dbus.xml
    30 Source2:        svc-dbus
    31 Source2:        svc-dbus
    31 %include default-depend.inc
    32 %include default-depend.inc
    60 %endif
    61 %endif
    61 
    62 
    62 mkdir %name-%version/%{base_arch}
    63 mkdir %name-%version/%{base_arch}
    63 %dbus.prep -d %name-%version/%{base_arch}
    64 %dbus.prep -d %name-%version/%{base_arch}
    64 
    65 
       
    66 cd %{_builddir}/%name-%version
       
    67 gzcat %SOURCE0 | tar xf -
       
    68 
    65 %build
    69 %build
    66 # Put /usr/ccs/lib first in the PATH so that cpp is picked up from there
    70 # Put /usr/ccs/lib first in the PATH so that cpp is picked up from there
    67 # note: I didn't put /usr/lib in the PATH because there's too much other
    71 # note: I didn't put /usr/lib in the PATH because there's too much other
    68 # stuff in there
    72 # stuff in there
    69 #
    73 #
    80 %ifarch amd64 sparcv9
    84 %ifarch amd64 sparcv9
    81 %dbus_64.install -d %name-%version/%_arch64
    85 %dbus_64.install -d %name-%version/%_arch64
    82 %endif
    86 %endif
    83 
    87 
    84 %dbus.install -d %name-%version/%{base_arch}
    88 %dbus.install -d %name-%version/%{base_arch}
       
    89 rm -rf $RPM_BUILD_ROOT%{_mandir}
       
    90 cd %{_builddir}/%name-%version/sun-manpages
       
    91 make install DESTDIR=$RPM_BUILD_ROOT
    85 
    92 
    86 # Create symlink to support hal which was built with an older version of dbus.
    93 # Create symlink to support hal which was built with an older version of dbus.
    87 cd $RPM_BUILD_ROOT%{_libdir}
    94 cd $RPM_BUILD_ROOT%{_libdir}
    88 ln -s libdbus-1.so.3 libdbus-1.so.2 
    95 ln -s libdbus-1.so.3 libdbus-1.so.2 
    89 %ifarch amd64 sparcv9
    96 %ifarch amd64 sparcv9
   176 %{_libexecdir}/dbus-daemon
   183 %{_libexecdir}/dbus-daemon
   177 %dir %attr (0755, root, sys) %{_datadir}
   184 %dir %attr (0755, root, sys) %{_datadir}
   178 %{_datadir}/dbus-1
   185 %{_datadir}/dbus-1
   179 %dir %attr(0755, root, bin) %{_mandir}
   186 %dir %attr(0755, root, bin) %{_mandir}
   180 %dir %attr(0755, root, bin) %{_mandir}/man1
   187 %dir %attr(0755, root, bin) %{_mandir}/man1
       
   188 %dir %attr(0755, root, bin) %{_mandir}/man3
   181 %{_mandir}/man1/*
   189 %{_mandir}/man1/*
       
   190 %{_mandir}/man3/*
   182 %ifarch amd64 sparcv9
   191 %ifarch amd64 sparcv9
   183 %dir %attr (0755, root, bin) %{_libdir}/%{_arch64}
   192 %dir %attr (0755, root, bin) %{_libdir}/%{_arch64}
   184 %{_libdir}/%{_arch64}/libdbus*
   193 %{_libdir}/%{_arch64}/libdbus*
   185 %endif
   194 %endif
   186 
   195 
   217 %{_libdir}/%{_arch64}/pkgconfig/*.pc
   226 %{_libdir}/%{_arch64}/pkgconfig/*.pc
   218 %{_libdir}/%{_arch64}/dbus-1.0/*
   227 %{_libdir}/%{_arch64}/dbus-1.0/*
   219 %endif
   228 %endif
   220 
   229 
   221 %changelog
   230 %changelog
       
   231 * Tue Nov 20 2007 - [email protected]
       
   232 - Add dbus manpages.
   222 * Mon Oct  8 2007 - [email protected]
   233 * Mon Oct  8 2007 - [email protected]
   223 - Remove %{_libdir}/dbus-1 line from base package as it only contains a header
   234 - Remove %{_libdir}/dbus-1 line from base package as it only contains a header
   224   file and is duplicated in the devel package. Fixes 6613798.
   235   file and is duplicated in the devel package. Fixes 6613798.
   225 * Mon Oct  1 2007 - [email protected]
   236 * Mon Oct  1 2007 - [email protected]
   226 - change 64-bit libexecdir to /usr/lib
   237 - change 64-bit libexecdir to /usr/lib