dbus-glib.spec revision 20841
15317N/A#
15317N/A# spec file for package dbus-glib
15317N/A#
15317N/A# Copyright 2010 Sun Microsystems, Inc.
15317N/A# This file and all modifications and additions to the pristine
15317N/A# package are under the same license as the package itself.
15317N/A#
17658N/A%define owner yippi
15317N/A# bugdb: bugzilla.freedesktop.org
15317N/A#
18603N/A
17176N/A%define OSR 4092:0.60
15317N/A
17016N/AName: dbus-glib
17016N/ALicense: GPL v2, AFL v2.1
18615N/AVendor: freedesktop.org
15317N/AGroup: System/Libraries
18178N/AVersion: 0.98
16477N/ARelease: 1
15599N/ADistribution: Java Desktop System
15317N/ASummary: Glib bindings for D-Bus
15317N/ASource: http://dbus.freedesktop.org/releases/dbus-glib/%{name}-%{version}.tar.gz
20065N/A# date:2011-07-25 owner:yippi type:bug bugster:7034087
20065N/APatch1: dbus-glib-01-avoid-crash.diff
15317N/AURL: http://www.freedesktop.org/wiki/Software_2fdbus
15317N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
15317N/ADocdir: %{_defaultdocdir}/doc
20065N/AAutoreqprov: on
15317N/APrereq: /sbin/ldconfig
15317N/A
15317N/A%define glib2_version 2.6.4
15317N/A%define libxml2_version 2.6.19
15317N/ABuildRequires: glib2-devel >= %glib2_version
15317N/ABuildRequires: libxml2-devel >= %libxml2_version
15317N/A# FIXME: get python rpm: BuildRequires: python >= %python_version
15317N/ARequires: glib2 >= %glib2_version
15317N/ARequires: libxml2 >= %libxml2_version
15317N/A
15599N/A%description
15599N/AGlib bindings for D-Bus.
15599N/A
15599N/A%package devel
15317N/ASummary: Simple IPC library based on messages
15317N/AGroup: Development/Libraries
15317N/ARequires: %{name} = %{version}
15317N/A
15317N/A%description devel
15317N/AGlib bindings for D-Bus.
15317N/A
15317N/A%prep
15317N/A%setup -q
15317N/A%patch1 -p1
15317N/A
15317N/A%build
15317N/A%ifos linux
15317N/Aif [ -x /usr/bin/getconf ]; then
15317N/A CPUS=`getconf _NPROCESSORS_ONLN`
15317N/Afi
15317N/A%else
15317N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
15317N/A%endif
15317N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
15317N/A CPUS=1
15317N/Afi
15317N/A
15317N/Alibtoolize --force
15317N/Aaclocal $ACLOCAL_FLAGS
15317N/Aautomake -a -c -f
15317N/Aautoconf
15317N/Aexport CFLAGS="%optflags -D_REENTRANT"
15317N/Aexport LDFLAGS="%_ldflags"
15317N/A./configure --prefix=%{_prefix} \
15317N/A --includedir=%{_includedir} \
16477N/A --sysconfdir=%{_sysconfdir} \
16477N/A --libdir=%{_libdir} \
15599N/A --bindir=%{_bindir} \
15599N/A --libexecdir=%{_libexecdir} \
15599N/A --localstatedir=%{_localstatedir} \
15551N/A --with-dbus-user=root \
15551N/A --with-dbus-daemondir=%{_basedir}/lib \
15452N/A --mandir=%{_mandir} \
15452N/A --datadir=%{_datadir} \
15317N/A --disable-static
15317N/Amake -j $CPUS \
pyexecdir=%{_libdir}/python%{python_version}/vendor-packages
%install
make DESTDIR=$RPM_BUILD_ROOT install \
pyexecdir=%{_libdir}/python%{python_version}/vendor-packages
mkdir -p $RPM_BUILD_ROOT%{_datadir}/dbus-1/services
find $RPM_BUILD_ROOT%{_libdir} -type f -name "*.a" -exec rm -f {} ';'
find $RPM_BUILD_ROOT%{_libdir} -type f -name "*.la" -exec rm -f {} ';'
find $RPM_BUILD_ROOT%{_libdir} -type f -name "*.pyo" -exec rm -f {} ';'
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%config %{_sysconfdir}/dbus-1/session.conf
%config %{_sysconfdir}/dbus-1/system.conf
%{_bindir}/*
%{_libdir}/libdbus*.so*
%{_datadir}/man/*
%{_datadir}/dbus-1/*
%files devel
%defattr(-, root, root)
%{_libdir}/*.so
%{_includedir}/dbus-1.0/*
%{_libdir}/dbus-1.0/*
%{_libdir}/pkgconfig/*
%{_libdir}/python?.?/vendor-packages/*
%changelog
* Fri Sep 30 2011 - brian.cameron@oracle.com
- Bump to 0.98.
* Wed Sep 21 2011 - brian.cameron@oracle.com
- Bump to 0.96.
* Tue Sep 13 2011 - brian.cameron@oracle.com
- Bump to 0.94.
* Mon Jul 25 2011 - brian.cameron@oracle.com
- Add patch dbus-glib-01-avoid-crash.diff to fix CR #7034087.
* Fri Aug 13 2010 - brian.cameron@oracle.com
- Bump to 0.88.
* Thu Mar 25 2010 - brian.cameron@sun.com
- Bump to 0.86.
* Wed Jan 27 2010 - brian.cameron@sun.com
- Bump to 0.84.
* Fri Jul 17 2009 - brian.cameron@sun.com
- Bump to 0.82.
* Tue Feb 03 2009 - brian.cameron@sun.com
- Bump to 0.80.
* Wed Dec 10 2008 - brian.cameron@sun.com
- Bump to 0.78.
* Thu Jul 24 2008 - brian.cameron@sun.com
- Bump to 0.76. Remove upstream patch dbus-glib-01-findlaunch.diff.
* Wed Nov 07 2007 - padraig.obriain@sun.com
- Add -D_REENTRANT. It was removed from SUNW spec file on Sep 28.
See bugster 6615221
* Fri Sep 28 2007 - laca@sun.com
- convert to new style multi-ISA build
* Mon Aug 06 2007 - brian.cameron@sun.com
- Bump to 0.74.
* Sun Apr 1 2007 - laca@sun.com
- add missing aclocal calls
* Wed Mar 15 2007 - dougs@truemail.co.th
- Removed CC64 and CC32. They are not needed anymore
* Sun Feb 25 2007 - dougs@truemail.co.th
- updated to include 64-bit build RFE: #6480511
* Wed Feb 14 2007 - damien.carbery@sun.com
- Bump to 0.73. Remove upstream patch 01-uninstalled-pc. Rename remainder.
* Thu Nov 27 2006 - brian.cameron@sun.com
- Created.