dbus-glib.spec revision 11881
15341N/A#
15341N/A# spec file for package dbus-glib
15341N/A#
18540N/A# Copyright 2007 Sun Microsystems, Inc.
15341N/A# This file and all modifications and additions to the pristine
15341N/A# package are under the same license as the package itself.
15341N/A#
17185N/A# Owner: yippi
15341N/A# bugdb: bugzilla.freedesktop.org
15341N/A#
17181N/AName: dbus-glib
15341N/ALicense: GPL/AFL
15341N/AGroup: System/Libraries
15341N/AVersion: 0.74
15341N/ARelease: 1
17575N/ADistribution: Java Desktop System
15341N/AVendor: Sun Microsystems, Inc.
15341N/ASummary: Glib bindings for D-Bus
15341N/ASource: http://dbus.freedesktop.org/releases/dbus-glib/%{name}-%{version}.tar.gz
15341N/A#owner:yippi date:2006-11-27 type:bug bugzilla:10668
15341N/APatch1: dbus-glib-01-findlaunch.diff
15955N/AURL: http://www.freedesktop.org/wiki/Software_2fdbus
16995N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
16995N/ADocdir: %{_defaultdocdir}/doc
15531N/AAutoreqprov: on
18179N/APrereq: /sbin/ldconfig
15341N/A
15341N/A%define glib2_version 2.6.4
15341N/A%define libxml2_version 2.6.19
15341N/ABuildRequires: glib2-devel >= %glib2_version
17495N/ABuildRequires: libxml2-devel >= %libxml2_version
15406N/A# FIXME: get python rpm: BuildRequires: python >= %python_version
15341N/ARequires: glib2 >= %glib2_version
15341N/ARequires: libxml2 >= %libxml2_version
15341N/A
15341N/A%description
15341N/AGlib bindings for D-Bus.
15341N/A
15341N/A%package devel
15341N/ASummary: Simple IPC library based on messages
15341N/AGroup: Development/Libraries
15341N/ARequires: %{name} = %{version}
15341N/A
15341N/A%description devel
15341N/AGlib bindings for D-Bus.
15341N/A
15341N/A%prep
15341N/A%setup -q
15341N/A%patch1 -p1
15341N/A
15341N/A%build
15341N/A%ifos linux
15341N/Aif [ -x /usr/bin/getconf ]; then
15341N/A CPUS=`getconf _NPROCESSORS_ONLN`
15341N/Afi
15341N/A%else
15341N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
15341N/A%endif
15341N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
15341N/A CPUS=1
15341N/Afi
15341N/A
15428N/Aaclocal $ACLOCAL_FLAGS
15428N/Aautoconf
15341N/Aautomake -a -c -f
15341N/Aexport CFLAGS="%optflags -D_REENTRANT -I/usr/sfw/include"
15341N/Aexport LDFLAGS="%_ldflags -L/usr/sfw/lib -R/usr/sfw/lib"
15341N/A./configure --prefix=%{_prefix} \
15341N/A --includedir=%{_includedir} \
15341N/A --sysconfdir=%{_sysconfdir} \
15341N/A --libdir=%{_libdir} \
15341N/A --bindir=%{_bindir} \
15341N/A --localstatedir=%{_localstatedir} \
15341N/A --with-dbus-user=root \
15341N/A --with-dbus-daemondir=%{_basedir}/lib \
15341N/A --mandir=%{_mandir} \
15341N/A --datadir=%{_datadir} \
16120N/A --disable-static
15406N/Amake -j $CPUS \
15500N/A pyexecdir=%{_libdir}/python%{python_version}/vendor-packages
16995N/A
16995N/A%install
15500N/Amake DESTDIR=$RPM_BUILD_ROOT install \
15341N/A pyexecdir=%{_libdir}/python%{python_version}/vendor-packages
15500N/Amkdir -p $RPM_BUILD_ROOT%{_datadir}/dbus-1/services
15341N/Afind $RPM_BUILD_ROOT%{_libdir} -type f -name "*.a" -exec rm -f {} ';'
15341N/Afind $RPM_BUILD_ROOT%{_libdir} -type f -name "*.la" -exec rm -f {} ';'
15341N/Afind $RPM_BUILD_ROOT%{_libdir} -type f -name "*.pyo" -exec rm -f {} ';'
15341N/A
15341N/A%post
15341N/A/sbin/ldconfig
15341N/A
15341N/A%postun
15341N/A/sbin/ldconfig
15341N/A
15341N/A%clean
15341N/Arm -rf $RPM_BUILD_ROOT
15341N/A
15341N/A%files
15341N/A%defattr(-, root, root)
15341N/A%config %{_sysconfdir}/dbus-1/session.conf
15341N/A%config %{_sysconfdir}/dbus-1/system.conf
15341N/A%{_bindir}/*
15341N/A%{_libdir}/libdbus*.so*
15341N/A%{_datadir}/man/*
15341N/A%{_datadir}/dbus-1/*
15341N/A
15341N/A%files devel
15341N/A%defattr(-, root, root)
15341N/A%{_libdir}/*.so
15341N/A%{_includedir}/dbus-1.0/*
15406N/A%{_libdir}/dbus-1.0/*
15406N/A%{_libdir}/pkgconfig/*
15406N/A%{_libdir}/python?.?/vendor-packages/*
15406N/A
15406N/A%changelog
15406N/A* Wed Nov 7 2007 - padraig.obriain@sun.com
15406N/A- Add -D_REENTRANT. It was removed from SUNW spec file on Sep 28.
15406N/A See bugster 6615221
15406N/A* Fri Sep 28 2007 - laca@sun.com
15406N/A- convert to new style multi-ISA build
15406N/A* Mon Aug 06 2007 - brian.cameron@sun.com
15406N/A- Bump to 0.74.
15341N/A* Sun Apr 1 2007 - laca@sun.com
15341N/A- add missing aclocal calls
15341N/A* Wed Mar 15 2007 - dougs@truemail.co.th
15341N/A- Removed CC64 and CC32. They are not needed anymore
15341N/A* Sun Feb 25 2007 - dougs@truemail.co.th
15341N/A- updated to include 64-bit build RFE: #6480511
15341N/A* Wed Feb 14 2007 - damien.carbery@sun.com
15341N/A- Bump to 0.73. Remove upstream patch 01-uninstalled-pc. Rename remainder.
15341N/A* Thu Nov 27 2006 - brian.cameron@sun.com
15341N/A- Created.
15341N/A