9397
|
1 |
#
|
|
2 |
# spec file for package dbus-glib
|
|
3 |
#
|
17462
|
4 |
# Copyright 2010 Sun Microsystems, Inc.
|
9397
|
5 |
# This file and all modifications and additions to the pristine
|
|
6 |
# package are under the same license as the package itself.
|
|
7 |
#
|
16434
|
8 |
%define owner yippi
|
9397
|
9 |
# bugdb: bugzilla.freedesktop.org
|
|
10 |
#
|
17842
|
11 |
|
|
12 |
%define OSR 4092:0.60
|
|
13 |
|
9397
|
14 |
Name: dbus-glib
|
14571
|
15 |
License: GPL v2, AFL v2.1
|
17864
|
16 |
Vendor: freedesktop.org
|
9397
|
17 |
Group: System/Libraries
|
20073
|
18 |
Version: 0.88
|
9397
|
19 |
Release: 1
|
|
20 |
Distribution: Java Desktop System
|
|
21 |
Summary: Glib bindings for D-Bus
|
|
22 |
Source: http://dbus.freedesktop.org/releases/dbus-glib/%{name}-%{version}.tar.gz
|
|
23 |
URL: http://www.freedesktop.org/wiki/Software_2fdbus
|
|
24 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
25 |
Docdir: %{_defaultdocdir}/doc
|
|
26 |
Autoreqprov: on
|
|
27 |
Prereq: /sbin/ldconfig
|
|
28 |
|
|
29 |
%define glib2_version 2.6.4
|
|
30 |
%define libxml2_version 2.6.19
|
|
31 |
BuildRequires: glib2-devel >= %glib2_version
|
|
32 |
BuildRequires: libxml2-devel >= %libxml2_version
|
|
33 |
# FIXME: get python rpm: BuildRequires: python >= %python_version
|
|
34 |
Requires: glib2 >= %glib2_version
|
|
35 |
Requires: libxml2 >= %libxml2_version
|
|
36 |
|
|
37 |
%description
|
|
38 |
Glib bindings for D-Bus.
|
|
39 |
|
|
40 |
%package devel
|
|
41 |
Summary: Simple IPC library based on messages
|
|
42 |
Group: Development/Libraries
|
|
43 |
Requires: %{name} = %{version}
|
|
44 |
|
|
45 |
%description devel
|
|
46 |
Glib bindings for D-Bus.
|
|
47 |
|
|
48 |
%prep
|
|
49 |
%setup -q
|
|
50 |
|
|
51 |
%build
|
|
52 |
%ifos linux
|
|
53 |
if [ -x /usr/bin/getconf ]; then
|
|
54 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
55 |
fi
|
|
56 |
%else
|
|
57 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
58 |
%endif
|
|
59 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
60 |
CPUS=1
|
|
61 |
fi
|
|
62 |
|
16045
|
63 |
libtoolize --force
|
9650
|
64 |
aclocal $ACLOCAL_FLAGS
|
9397
|
65 |
autoconf
|
|
66 |
automake -a -c -f
|
11139
|
67 |
export CFLAGS="%optflags -D_REENTRANT -I/usr/sfw/include"
|
10572
|
68 |
export LDFLAGS="%_ldflags -L/usr/sfw/lib -R/usr/sfw/lib"
|
9397
|
69 |
./configure --prefix=%{_prefix} \
|
|
70 |
--includedir=%{_includedir} \
|
|
71 |
--sysconfdir=%{_sysconfdir} \
|
|
72 |
--libdir=%{_libdir} \
|
|
73 |
--bindir=%{_bindir} \
|
14752
|
74 |
--libexecdir=%{_libexecdir} \
|
9397
|
75 |
--localstatedir=%{_localstatedir} \
|
|
76 |
--with-dbus-user=root \
|
10572
|
77 |
--with-dbus-daemondir=%{_basedir}/lib \
|
9397
|
78 |
--mandir=%{_mandir} \
|
|
79 |
--datadir=%{_datadir} \
|
|
80 |
--disable-static
|
|
81 |
make -j $CPUS \
|
|
82 |
pyexecdir=%{_libdir}/python%{python_version}/vendor-packages
|
|
83 |
|
|
84 |
%install
|
|
85 |
make DESTDIR=$RPM_BUILD_ROOT install \
|
|
86 |
pyexecdir=%{_libdir}/python%{python_version}/vendor-packages
|
|
87 |
mkdir -p $RPM_BUILD_ROOT%{_datadir}/dbus-1/services
|
|
88 |
find $RPM_BUILD_ROOT%{_libdir} -type f -name "*.a" -exec rm -f {} ';'
|
|
89 |
find $RPM_BUILD_ROOT%{_libdir} -type f -name "*.la" -exec rm -f {} ';'
|
|
90 |
find $RPM_BUILD_ROOT%{_libdir} -type f -name "*.pyo" -exec rm -f {} ';'
|
|
91 |
|
|
92 |
%post
|
|
93 |
/sbin/ldconfig
|
|
94 |
|
|
95 |
%postun
|
|
96 |
/sbin/ldconfig
|
|
97 |
|
|
98 |
%clean
|
|
99 |
rm -rf $RPM_BUILD_ROOT
|
|
100 |
|
|
101 |
%files
|
|
102 |
%defattr(-, root, root)
|
|
103 |
%config %{_sysconfdir}/dbus-1/session.conf
|
|
104 |
%config %{_sysconfdir}/dbus-1/system.conf
|
|
105 |
%{_bindir}/*
|
|
106 |
%{_libdir}/libdbus*.so*
|
|
107 |
%{_datadir}/man/*
|
|
108 |
%{_datadir}/dbus-1/*
|
|
109 |
|
|
110 |
%files devel
|
|
111 |
%defattr(-, root, root)
|
|
112 |
%{_libdir}/*.so
|
|
113 |
%{_includedir}/dbus-1.0/*
|
|
114 |
%{_libdir}/dbus-1.0/*
|
|
115 |
%{_libdir}/pkgconfig/*
|
|
116 |
%{_libdir}/python?.?/vendor-packages/*
|
|
117 |
|
|
118 |
%changelog
|
20073
|
119 |
* Fri Aug 13 2010 - [email protected]
|
|
120 |
- Bump to 0.88.
|
17753
|
121 |
* Thu Mar 25 2010 - [email protected]
|
|
122 |
- Bump to 0.86.
|
17462
|
123 |
* Wed Jan 27 2010 - [email protected]
|
|
124 |
- Bump to 0.84.
|
16045
|
125 |
* Fri Jul 17 2009 - [email protected]
|
|
126 |
- Bump to 0.82.
|
15007
|
127 |
* Tue Feb 03 2009 - [email protected]
|
|
128 |
- Bump to 0.80.
|
14752
|
129 |
* Wed Dec 10 2008 - [email protected]
|
|
130 |
- Bump to 0.78.
|
12918
|
131 |
* Thu Jul 24 2008 - [email protected]
|
|
132 |
- Bump to 0.76. Remove upstream patch dbus-glib-01-findlaunch.diff.
|
|
133 |
* Wed Nov 07 2007 - [email protected]
|
11139
|
134 |
- Add -D_REENTRANT. It was removed from SUNW spec file on Sep 28.
|
|
135 |
See bugster 6615221
|
10572
|
136 |
* Fri Sep 28 2007 - [email protected]
|
|
137 |
- convert to new style multi-ISA build
|
10278
|
138 |
* Mon Aug 06 2007 - [email protected]
|
|
139 |
- Bump to 0.74.
|
9650
|
140 |
* Sun Apr 1 2007 - [email protected]
|
|
141 |
- add missing aclocal calls
|
9565
|
142 |
* Wed Mar 15 2007 - [email protected]
|
|
143 |
- Removed CC64 and CC32. They are not needed anymore
|
9397
|
144 |
* Sun Feb 25 2007 - [email protected]
|
|
145 |
- updated to include 64-bit build RFE: #6480511
|
|
146 |
* Wed Feb 14 2007 - [email protected]
|
|
147 |
- Bump to 0.73. Remove upstream patch 01-uninstalled-pc. Rename remainder.
|
|
148 |
* Thu Nov 27 2006 - [email protected]
|
|
149 |
- Created.
|