Home | History | Annotate | Download | only in gnome-2-16
      1 #
      2 # spec file for package dbus
      3 #
      4 # Copyright (c) 2005 Sun Microsystems, Inc.
      5 # This file and all modifications and additions to the pristine
      6 # package are under the same license as the package itself.
      7 #
      8 # Owner: yippi
      9 # bugdb: bugzilla.freedesktop.org
     10 #
     11 Name:         dbus
     12 License:      Other
     13 Group:        System/Libraries
     14 Version:      1.0.2 
     15 Release:      2
     16 Distribution: Java Desktop System
     17 Vendor:       Sun Microsystems, Inc.
     18 Summary:      Simple IPC library based on messages
     19 Source:       http://dbus.freedesktop.org/releases/dbus/%{name}-%{version}.tar.gz
     20 URL:          http://www.freedesktop.org/wiki/Software_2fdbus
     21 #owner:yippi date:2006-11-23 type:bug bugzilla:8391
     22 Patch1:       dbus-01-dbus-launch.diff
     23 BuildRoot:    %{_tmppath}/%{name}-%{version}-build
     24 Docdir:	      %{_defaultdocdir}/doc
     25 Autoreqprov:  on
     26 Prereq:       /sbin/ldconfig
     27 
     28 %define glib2_version 2.6.4
     29 %define libxml2_version 2.6.19
     30 BuildRequires: glib2-devel >= %glib2_version
     31 BuildRequires: libxml2-devel >= %libxml2_version
     32 # FIXME: get python rpm: BuildRequires: python >= %python_version
     33 Requires: glib2 >= %glib2_version
     34 Requires: libxml2 >= %libxml2_version
     35 
     36 %description
     37 D-Bus is a message bus system, a simple way for applications to talk to one
     38 another.
     39 D-Bus supplies both a system daemon (for events such as "new hardware device 
     40 added" or "printer queue changed") and a per-user-login-session daemon (for 
     41 general IPC needs among user applications). Also, the message bus is built on
     42 top of a general one-to-one message passing framework, which can be used by
     43 any two apps to communicate directly (without going through the message bus
     44 daemon). 
     45 
     46 %package devel
     47 Summary:      Simple IPC library based on messages
     48 Group:        Development/Libraries
     49 Requires:     %{name} = %{version}
     50 
     51 %description devel
     52 D-Bus is a message bus system, a simple way for applications to talk to one 
     53 another.
     54 
     55 D-Bus supplies both a system daemon (for events such as "new hardware device
     56 added" or "printer queue changed") and a per-user-login-session daemon (for
     57 general IPC needs among user applications). Also, the message bus is built on
     58 top of a general one-to-one message passing framework, which can be used by
     59 any two apps to communicate directly (without going through the message bus
     60 daemon). 
     61 
     62 %prep
     63 %setup -q
     64 %ifos solaris
     65 %patch1 -p1
     66 %endif
     67 
     68 %build
     69 %ifos linux
     70 if [ -x /usr/bin/getconf ]; then
     71   CPUS=`getconf _NPROCESSORS_ONLN`
     72 fi
     73 %else
     74   CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
     75 %endif
     76 if test "x$CPUS" = "x" -o $CPUS = 0; then
     77   CPUS=1
     78 fi
     79 autoconf
     80 automake -a -c -f
     81 CFLAGS="$RPM_OPT_FLAGS"			\
     82 ./configure --prefix=%{_prefix}		\
     83             --sysconfdir=%{_sysconfdir} \
     84             --libexecdir=%{_libexecdir} \
     85             --localstatedir=%{_localstatedir} \
     86             --with-dbus-user=root       \
     87             --with-dbus-daemondir=/usr/lib \
     88 	    --mandir=%{_mandir} --datadir=%{_datadir}
     89 make -j $CPUS \
     90     pyexecdir=%{_libdir}/python%{python_version}/vendor-packages
     91 
     92 %install
     93 make DESTDIR=$RPM_BUILD_ROOT install \
     94     pyexecdir=%{_libdir}/python%{python_version}/vendor-packages
     95 mkdir -p $RPM_BUILD_ROOT%{_datadir}/dbus-1/services
     96 rm $RPM_BUILD_ROOT%{_libdir}/lib*.a
     97 rm $RPM_BUILD_ROOT%{_libdir}/lib*.la
     98 find $RPM_BUILD_ROOT%{_libdir} -type f -name "*.la" -exec rm -f {} ';'
     99 find $RPM_BUILD_ROOT%{_libdir} -type f -name "*.a" -exec rm -f {} ';'
    100 find $RPM_BUILD_ROOT%{_libdir} -type f -name "*.pyo" -exec rm -f {} ';'
    101 
    102 %post
    103 /sbin/ldconfig
    104 
    105 %postun
    106 /sbin/ldconfig
    107 
    108 %clean 
    109 rm -rf $RPM_BUILD_ROOT
    110 
    111 %files 
    112 %defattr(-, root, root)
    113 %config %{_sysconfdir}/dbus-1/session.conf
    114 %config %{_sysconfdir}/dbus-1/system.conf
    115 %{_bindir}/*
    116 %{_libdir}/libdbus*.so*
    117 %{_datadir}/man/*
    118 %{_datadir}/dbus-1/*
    119 
    120 %files devel
    121 %defattr(-, root, root)
    122 %{_libdir}/*.so
    123 %{_includedir}/dbus-1.0/*
    124 %{_libdir}/dbus-1.0/*
    125 %{_libdir}/pkgconfig/*
    126 %{_libdir}/python?.?/vendor-packages/*
    127 
    128 %changelog
    129 * Wed Dec 13 2006 - damien.carbery@sun.com
    130 - Bump to 1.0.2.
    131 * Thu Nov 27 2006 - brian.cameron@sun.com
    132 - Minor cleanup.  Remove python build dependancy since now python bindings
    133   are built in separate module.
    134 * Thu Nov 23 2006 - damien.carbery@sun.com
    135 - Removed upstream patches, 01, 02, 04, 05 and 06. Renumber remainder.
    136 * Wed Nov 22 2006 - damien.carbery@sun.com
    137 - Bump to 1.0.1.
    138 * Fri Nov 17 2006 - ghee.teo@sun.com
    139 - Added patch dbus-06-proxy-change-owner-crash.diff. This patch is only
    140   for 0.6x release of dbus, when dbus 1.0 is incorporated, this patch
    141   can be dropped.
    142 * Fri Oct 13 2006 - damien.carbery@sun.com
    143 - Delete .a and .la files.
    144 * Wed Aug 30 2006 - damien.carbery@sun.com
    145 - Add --datadir to configure call so that path in session.conf is expanded.
    146 * Thu Aug 03 2006 - padraig.obriain@sun.com
    147 - Updated dbus-03-dbus-launch.diff to avoid chewing idle CPU.
    148 * Wed Aug 02 2006 - brian.cameron@sun.com
    149 - Rewrote libexec patch based on Havoc's comments.  Now pass in 
    150   --with-daemondir to set daemon location.
    151 * Fri Jul 28 2006 - laca (at] sun.com
    152 - add patch priv.spec (from Artem Kachitchkine), makes dbus run as user
    153   'daemon' and also with least privileges
    154 * Fri Jul 21 2006 - brian.cameron (at] sun.com
    155 - Add patch to move dbus-daemon to /usr/lib, required by ARC.
    156 * Tue May 02 2006 - laca (at] sun.com
    157 - add patch console.diff that allows D-Bus to authenticate console user
    158 * Sun Feb 26 2006 - laca (at] sun.com
    159 - Bump to 0.61.
    160 - move python stuff to vendor-packages, remove .pyo and *.la
    161 * Thu Jan 19 2006 - damien.carbery (at] sun.com
    162 - Remove upstream patch, 01-auth-external. Renumber remaining.
    163 * Tue Jan 17 2006 - damien.carbery (at] sun.com
    164 - Bump to 0.60.
    165 * Tue Oct 25 2005 - damien.carbery (at] sun.com
    166 - Remove patch3 as an include dir under _libdir is okay. Bump to 0.50. Disable
    167   python bindings as they fail. Bug 4878 files at freedesktop.org.
    168 * Fri Oct 21 2005 - damien.carbery (at] sun.com
    169 - Add patches to build on Solaris.
    170 * Tue Aug 30 2005 - glynn.foster (at] sun.com
    171 - Create the dbus-1 services directory
    172 * Tue Aug 16 2005 - damien.carbery (at] sun.com
    173 - Add python >= 2.4 dependency. Reformat description text.
    174 * Mon Aug 15 2005 - damien.carbery (at] sun.com
    175 - Bump to 0.35.2.
    176 * Mon Jun 20 2005 - matt.keenan (at] sun.com
    177 - dbus 0.23 is actually shipped with gnome 2.10 so bumping down tarball
    178 * Thu Jun 09 2005 - laca (at] sun.com
    179 - add buildrequires glib2, libxml2
    180 * Thu May 12 2005 - glynn.foster (at] sun.com
    181 - Initial spec file for dbus.
    182