1 # 2 # spec file for package dbus-glib 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-glib 12 License: Other 13 Group: System/Libraries 14 Version: 0.72 15 Release: 1 16 Distribution: Java Desktop System 17 Vendor: Sun Microsystems, Inc. 18 Summary: Glib bindings for D-Bus 19 Source: http://dbus.freedesktop.org/releases/dbus-glib/%{name}-%{version}.tar.gz 20 #owner:yippi date:2006-11-17 type:feature bugzilla:9769 21 Patch1: dbus-glib-01-uninstalled-pc.diff 22 #owner:yippi date:2006-11-27 type:bug 23 Patch2: dbus-glib-02-findlaunch.diff 24 URL: http://www.freedesktop.org/wiki/Software_2fdbus 25 BuildRoot: %{_tmppath}/%{name}-%{version}-build 26 Docdir: %{_defaultdocdir}/doc 27 Autoreqprov: on 28 Prereq: /sbin/ldconfig 29 30 %define glib2_version 2.6.4 31 %define libxml2_version 2.6.19 32 BuildRequires: glib2-devel >= %glib2_version 33 BuildRequires: libxml2-devel >= %libxml2_version 34 # FIXME: get python rpm: BuildRequires: python >= %python_version 35 Requires: glib2 >= %glib2_version 36 Requires: libxml2 >= %libxml2_version 37 38 %description 39 Glib bindings for D-Bus. 40 41 %package devel 42 Summary: Simple IPC library based on messages 43 Group: Development/Libraries 44 Requires: %{name} = %{version} 45 46 %description devel 47 Glib bindings for D-Bus. 48 49 %prep 50 %setup -q 51 %patch1 -p1 52 %patch2 -p1 53 54 %build 55 %ifos linux 56 if [ -x /usr/bin/getconf ]; then 57 CPUS=`getconf _NPROCESSORS_ONLN` 58 fi 59 %else 60 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` 61 %endif 62 if test "x$CPUS" = "x" -o $CPUS = 0; then 63 CPUS=1 64 fi 65 autoconf 66 automake -a -c -f 67 CFLAGS="$RPM_OPT_FLAGS" \ 68 ./configure --prefix=%{_prefix} \ 69 --sysconfdir=%{_sysconfdir} \ 70 --libexecdir=%{_libexecdir} \ 71 --localstatedir=%{_localstatedir} \ 72 --mandir=%{_mandir} --datadir=%{_datadir} 73 make -j $CPUS \ 74 pyexecdir=%{_libdir}/python%{python_version}/vendor-packages 75 76 %install 77 make DESTDIR=$RPM_BUILD_ROOT install \ 78 pyexecdir=%{_libdir}/python%{python_version}/vendor-packages 79 mkdir -p $RPM_BUILD_ROOT%{_datadir}/dbus-1/services 80 rm $RPM_BUILD_ROOT%{_libdir}/lib*.a 81 rm $RPM_BUILD_ROOT%{_libdir}/lib*.la 82 find $RPM_BUILD_ROOT%{_libdir} -type f -name "*.la" -exec rm -f {} ';' 83 find $RPM_BUILD_ROOT%{_libdir} -type f -name "*.pyo" -exec rm -f {} ';' 84 85 %post 86 /sbin/ldconfig 87 88 %postun 89 /sbin/ldconfig 90 91 %clean 92 rm -rf $RPM_BUILD_ROOT 93 94 %files 95 %defattr(-, root, root) 96 %config %{_sysconfdir}/dbus-1/session.conf 97 %config %{_sysconfdir}/dbus-1/system.conf 98 %{_bindir}/* 99 %{_libdir}/libdbus*.so* 100 %{_datadir}/man/* 101 %{_datadir}/dbus-1/* 102 103 %files devel 104 %defattr(-, root, root) 105 %{_libdir}/*.so 106 %{_includedir}/dbus-1.0/* 107 %{_libdir}/dbus-1.0/* 108 %{_libdir}/pkgconfig/* 109 %{_libdir}/python?.?/vendor-packages/* 110 111 %changelog 112 * Thu Nov 27 2006 - brian.cameron@sun.com 113 - Created. 114