9397
|
1 |
#
|
|
2 |
# spec file for package dbus
|
|
3 |
#
|
19973
|
4 |
# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
|
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 |
#
|
16425
|
11 |
|
|
12 |
%define OSR 12712:1.2.16
|
|
13 |
|
9397
|
14 |
Name: dbus
|
14571
|
15 |
License: GPL v2, AFL v2.1
|
9397
|
16 |
Group: System/Libraries
|
17745
|
17 |
Version: 1.2.24
|
10278
|
18 |
Release: 1
|
9397
|
19 |
Distribution: Java Desktop System
|
17864
|
20 |
Vendor: freedesktop.org
|
9397
|
21 |
Summary: Simple IPC library based on messages
|
|
22 |
Source: http://dbus.freedesktop.org/releases/dbus/%{name}-%{version}.tar.gz
|
|
23 |
URL: http://www.freedesktop.org/wiki/Software_2fdbus
|
10465
|
24 |
#owner:yippi date:2007-09-06 type:feature
|
15677
|
25 |
# System services are disabled by default in Solaris configuration since
|
|
26 |
# they are not yet supported on Solaris.
|
12044
|
27 |
Patch1: dbus-01-nosystemservice.diff
|
9397
|
28 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
29 |
Docdir: %{_defaultdocdir}/doc
|
|
30 |
Autoreqprov: on
|
|
31 |
Prereq: /sbin/ldconfig
|
|
32 |
|
|
33 |
%define glib2_version 2.6.4
|
|
34 |
%define libxml2_version 2.6.19
|
|
35 |
BuildRequires: glib2-devel >= %glib2_version
|
|
36 |
BuildRequires: libxml2-devel >= %libxml2_version
|
|
37 |
# FIXME: get python rpm: BuildRequires: python >= %python_version
|
|
38 |
Requires: glib2 >= %glib2_version
|
|
39 |
Requires: libxml2 >= %libxml2_version
|
|
40 |
|
|
41 |
%description
|
|
42 |
D-Bus is a message bus system, a simple way for applications to talk to one
|
|
43 |
another.
|
|
44 |
D-Bus supplies both a system daemon (for events such as "new hardware device
|
|
45 |
added" or "printer queue changed") and a per-user-login-session daemon (for
|
|
46 |
general IPC needs among user applications). Also, the message bus is built on
|
|
47 |
top of a general one-to-one message passing framework, which can be used by
|
|
48 |
any two apps to communicate directly (without going through the message bus
|
|
49 |
daemon).
|
|
50 |
|
|
51 |
%package devel
|
|
52 |
Summary: Simple IPC library based on messages
|
|
53 |
Group: Development/Libraries
|
|
54 |
Requires: %{name} = %{version}
|
|
55 |
|
|
56 |
%description devel
|
|
57 |
D-Bus is a message bus system, a simple way for applications to talk to one
|
|
58 |
another.
|
|
59 |
|
|
60 |
D-Bus supplies both a system daemon (for events such as "new hardware device
|
|
61 |
added" or "printer queue changed") and a per-user-login-session daemon (for
|
|
62 |
general IPC needs among user applications). Also, the message bus is built on
|
|
63 |
top of a general one-to-one message passing framework, which can be used by
|
|
64 |
any two apps to communicate directly (without going through the message bus
|
|
65 |
daemon).
|
|
66 |
|
|
67 |
%prep
|
|
68 |
%setup -q
|
|
69 |
%patch1 -p1
|
|
70 |
|
|
71 |
%build
|
|
72 |
%ifos linux
|
|
73 |
if [ -x /usr/bin/getconf ]; then
|
|
74 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
75 |
fi
|
|
76 |
%else
|
|
77 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
78 |
%endif
|
|
79 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
80 |
CPUS=1
|
|
81 |
fi
|
|
82 |
|
16026
|
83 |
libtoolize -f
|
9650
|
84 |
aclocal $ACLOCAL_FLAGS
|
12262
|
85 |
autoheader
|
|
86 |
automake -a -c -f
|
9397
|
87 |
autoconf
|
11139
|
88 |
export CFLAGS="%optflags -D_REENTRANT"
|
10572
|
89 |
export LDFLAGS="%_ldflags"
|
10649
|
90 |
export PKG_CONFIG_PATH="%{_libdir}/pkgconfig"
|
9397
|
91 |
./configure --prefix=%{_prefix} \
|
|
92 |
--includedir=%{_includedir} \
|
|
93 |
--sysconfdir=%{_sysconfdir} \
|
10572
|
94 |
--libdir=%{_libdir} \
|
10278
|
95 |
--libexecdir=%{_libexecdir} \
|
9397
|
96 |
--bindir=%{_bindir} \
|
|
97 |
--localstatedir=%{_localstatedir} \
|
|
98 |
--with-dbus-user=root \
|
10572
|
99 |
--with-dbus-daemondir=%{_basedir}/lib \
|
9397
|
100 |
--mandir=%{_mandir} \
|
|
101 |
--datadir=%{_datadir} \
|
|
102 |
--disable-static
|
|
103 |
make -j $CPUS \
|
10572
|
104 |
pyexecdir=%{_libdir}/python%{python_version}/vendor-packages
|
9397
|
105 |
cd ../%{name}-%{version}
|
|
106 |
|
|
107 |
%install
|
|
108 |
make DESTDIR=$RPM_BUILD_ROOT install \
|
|
109 |
pyexecdir=%{_libdir}/python%{python_version}/vendor-packages
|
|
110 |
mkdir -p $RPM_BUILD_ROOT%{_datadir}/dbus-1/services
|
|
111 |
find $RPM_BUILD_ROOT%{_libdir} -type f -name "*.la" -exec rm -f {} ';'
|
|
112 |
find $RPM_BUILD_ROOT%{_libdir} -type f -name "*.a" -exec rm -f {} ';'
|
|
113 |
find $RPM_BUILD_ROOT%{_libdir} -type f -name "*.pyo" -exec rm -f {} ';'
|
10465
|
114 |
# Disable system services.
|
10586
|
115 |
rm $RPM_BUILD_ROOT%{_libexecdir}/dbus-daemon-launch-helper
|
9397
|
116 |
|
|
117 |
%post
|
|
118 |
/sbin/ldconfig
|
|
119 |
|
|
120 |
%postun
|
|
121 |
/sbin/ldconfig
|
|
122 |
|
|
123 |
%clean
|
|
124 |
rm -rf $RPM_BUILD_ROOT
|
|
125 |
|
|
126 |
%files
|
|
127 |
%defattr(-, root, root)
|
|
128 |
%config %{_sysconfdir}/dbus-1/session.conf
|
|
129 |
%config %{_sysconfdir}/dbus-1/system.conf
|
|
130 |
%{_bindir}/*
|
|
131 |
%{_libdir}/libdbus*.so*
|
|
132 |
%{_datadir}/man/*
|
|
133 |
%{_datadir}/dbus-1/*
|
|
134 |
|
|
135 |
%files devel
|
|
136 |
%defattr(-, root, root)
|
|
137 |
%{_libdir}/*.so
|
|
138 |
%{_includedir}/dbus-1.0/*
|
|
139 |
%{_libdir}/dbus-1.0/*
|
|
140 |
%{_libdir}/pkgconfig/*
|
|
141 |
%{_libdir}/python?.?/vendor-packages/*
|
|
142 |
|
|
143 |
%changelog
|
17745
|
144 |
* Tue Mar 23 2010 - [email protected]
|
|
145 |
- Bump to 1.2.24. Remove upstream patch dbus-02-fixcompile.diff.
|
17494
|
146 |
* Wed Feb 03 2010 - [email protected]
|
|
147 |
- Bump to 1.2.20. Remove upstream patch dbus-02-getpwnam.diff. Add new patch
|
|
148 |
dbus-02-fixcompile.diff needed to build.
|
16026
|
149 |
* Wed Jul 15 2009 - [email protected]
|
|
150 |
- Bump to 1.2.16. Add patch dbus-02-getpwnam.diff to fix compile issue.
|
14885
|
151 |
* Thu Jan 08 2009 - [email protected]
|
14884
|
152 |
- Bump to 1.2.12.
|
14752
|
153 |
* Wed Dec 10 2008 - [email protected]
|
|
154 |
- Bump to 1.2.8
|
14725
|
155 |
* Mon Dec 08 2008 - [email protected]
|
|
156 |
- Bump to 1.2.6.
|
14441
|
157 |
* Thu Oct 09 2008 - [email protected]
|
|
158 |
- Bump to 1.2.4.
|
|
159 |
D-Bus if it fails to connect the first time.
|
13082
|
160 |
* Thu Aug 07 2008 - [email protected]
|
|
161 |
- Bump to 1.2.3. Remove upstream dbus-02-getauditsessiondata.diff patch.
|
12261
|
162 |
* Wed May 07 2008 - [email protected]
|
|
163 |
- Add patch 02-getauditsessiondata.diff to add a interface
|
|
164 |
"GetAdtAuditSessionData", getting audit data from socket connection.
|
13082
|
165 |
* Sun Apr 06 2008 - [email protected]
|
12044
|
166 |
- Bump to 1.2.1
|
13082
|
167 |
* Wed Feb 27 2008 - [email protected]
|
11743
|
168 |
- Bump to 1.1.20
|
|
169 |
* Thu Jan 17 2008 - [email protected]
|
11480
|
170 |
- Bump to 1.1.4.
|
11743
|
171 |
* Thu Jan 17 2008 - [email protected]
|
11479
|
172 |
- Bump to 1.1.3. Remove upstream patches.
|
11160
|
173 |
* Wed Nov 07 2007 - [email protected]
|
|
174 |
- Add -D_REENTRANT to CFLAGS. It was removed from SUNW spec file on Sep 28.
|
|
175 |
See bugster 6615221.
|
10649
|
176 |
* Fri Oct 12 1007 - [email protected]
|
|
177 |
- delete some env variable settings forgotten in the previous commit
|
10572
|
178 |
* Fri Sep 28 2007 - [email protected]
|
|
179 |
- convert to new style multi-ISA build
|
10465
|
180 |
* Thu Sep 06 2007 - [email protected]
|
|
181 |
- Add patch dbus-04-nosystemservice.diff and do not ship
|
|
182 |
dbus-daemon-launch-helper to disable D-Bus system services completely.
|
|
183 |
Nothing in Solaris currently needs the D-Bus system service. The Linux
|
|
184 |
solution specifies that --with-dbus-user is "messagebus". The idea is
|
|
185 |
that the system daemon runs as this user and uses the root setgid
|
|
186 |
script dbus-daemon-launch-helper to gain privilege when needed. It is
|
|
187 |
likely that Sun would instead want to use a more secure least-privilege
|
|
188 |
RBAC style solution for doing this, if we ever need to add this feature
|
|
189 |
back.
|
10278
|
190 |
* Mon Aug 06 2007 - [email protected]
|
|
191 |
- Bump to 0.74. Update patches.
|
10025
|
192 |
* Fri Jun 08 2007 - [email protected]
|
|
193 |
- Remove dbus-01-dbus-launch.diff since it is no longer needed now
|
|
194 |
that we've reworked the SUNWdtlogin-integration package to call
|
|
195 |
dbus-launch from /usr/dt/config/Xsession.jds instead of Xinitrc.jds.
|
9650
|
196 |
* Sun Apr 1 2007 - [email protected]
|
|
197 |
- add missing aclocal calls
|
9565
|
198 |
* Wed Mar 15 2007 - [email protected]
|
|
199 |
- Removed CC64 and CC32. They are not needed anymore
|
9397
|
200 |
* Sun Feb 25 2007 - [email protected]
|
|
201 |
- updated to include 64-bit build RFE: #6480511
|
|
202 |
- patch to stop Sun Studio compiling GCC asm specific code
|
|
203 |
* Wed Dec 13 2006 - [email protected]
|
|
204 |
- Bump to 1.0.2.
|
|
205 |
* Thu Nov 27 2006 - [email protected]
|
|
206 |
- Minor cleanup. Remove python build dependancy since now python bindings
|
|
207 |
are built in separate module.
|
|
208 |
* Thu Nov 23 2006 - [email protected]
|
|
209 |
- Removed upstream patches, 01, 02, 04, 05 and 06. Renumber remainder.
|
|
210 |
* Wed Nov 22 2006 - [email protected]
|
|
211 |
- Bump to 1.0.1.
|
|
212 |
* Fri Nov 17 2006 - [email protected]
|
|
213 |
- Added patch dbus-06-proxy-change-owner-crash.diff. This patch is only
|
|
214 |
for 0.6x release of dbus, when dbus 1.0 is incorporated, this patch
|
|
215 |
can be dropped.
|
|
216 |
* Fri Oct 13 2006 - [email protected]
|
|
217 |
- Delete .a and .la files.
|
|
218 |
* Wed Aug 30 2006 - [email protected]
|
|
219 |
- Add --datadir to configure call so that path in session.conf is expanded.
|
|
220 |
* Thu Aug 03 2006 - [email protected]
|
|
221 |
- Updated dbus-03-dbus-launch.diff to avoid chewing idle CPU.
|
|
222 |
* Wed Aug 02 2006 - [email protected]
|
|
223 |
- Rewrote libexec patch based on Havoc's comments. Now pass in
|
|
224 |
--with-daemondir to set daemon location.
|
|
225 |
* Fri Jul 28 2006 - [email protected]
|
|
226 |
- add patch priv.spec (from Artem Kachitchkine), makes dbus run as user
|
|
227 |
'daemon' and also with least privileges
|
|
228 |
* Fri Jul 21 2006 - [email protected]
|
|
229 |
- Add patch to move dbus-daemon to /usr/lib, required by ARC.
|
|
230 |
* Tue May 02 2006 - [email protected]
|
|
231 |
- add patch console.diff that allows D-Bus to authenticate console user
|
|
232 |
* Sun Feb 26 2006 - [email protected]
|
|
233 |
- Bump to 0.61.
|
|
234 |
- move python stuff to vendor-packages, remove .pyo and *.la
|
|
235 |
* Thu Jan 19 2006 - [email protected]
|
|
236 |
- Remove upstream patch, 01-auth-external. Renumber remaining.
|
|
237 |
* Tue Jan 17 2006 - [email protected]
|
|
238 |
- Bump to 0.60.
|
|
239 |
* Tue Oct 25 2005 - [email protected]
|
|
240 |
- Remove patch3 as an include dir under _libdir is okay. Bump to 0.50. Disable
|
|
241 |
python bindings as they fail. Bug 4878 files at freedesktop.org.
|
|
242 |
* Fri Oct 21 2005 - [email protected]
|
|
243 |
- Add patches to build on Solaris.
|
|
244 |
* Tue Aug 30 2005 - [email protected]
|
|
245 |
- Create the dbus-1 services directory
|
|
246 |
* Tue Aug 16 2005 - [email protected]
|
|
247 |
- Add python >= 2.4 dependency. Reformat description text.
|
|
248 |
* Mon Aug 15 2005 - [email protected]
|
|
249 |
- Bump to 0.35.2.
|
|
250 |
* Mon Jun 20 2005 - [email protected]
|
|
251 |
- dbus 0.23 is actually shipped with gnome 2.10 so bumping down tarball
|
|
252 |
* Thu Jun 09 2005 - [email protected]
|
|
253 |
- add buildrequires glib2, libxml2
|
|
254 |
* Thu May 12 2005 - [email protected]
|
|
255 |
- Initial spec file for dbus.
|