author | yippi |
Thu, 05 Aug 2010 11:47:22 +0000 | |
changeset 19973 | f05dadadf325 |
parent 18269 | 5218a1567988 |
child 20342 | 393ae73665bc |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package SUNWdbus |
|
3 |
# |
|
4 |
# includes module(s): dbus |
|
5 |
# |
|
19973 | 6 |
# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. |
9397 | 7 |
# This file and all modifications and additions to the pristine |
8 |
# package are under the same license as the package itself. |
|
9 |
# |
|
16434 | 10 |
%define owner yippi |
9397 | 11 |
# |
10572 | 12 |
|
9397 | 13 |
%include Solaris.inc |
14 |
||
10572 | 15 |
%ifarch amd64 sparcv9 |
16 |
%include arch64.inc |
|
10586 | 17 |
%define _libexecdir %{_basedir}/lib |
10572 | 18 |
%use dbus_64 = dbus.spec |
19 |
%endif |
|
20 |
||
21 |
%include base.inc |
|
9397 | 22 |
%use dbus = dbus.spec |
23 |
||
24 |
Name: SUNWdbus |
|
17937
664c0536875a
Added tags IPS_package_name and Meta(info.consolidation)
davelam
parents:
17902
diff
changeset
|
25 |
IPS_package_name: system/library/dbus |
664c0536875a
Added tags IPS_package_name and Meta(info.consolidation)
davelam
parents:
17902
diff
changeset
|
26 |
Meta(info.classification): %{classification_prefix}:System/Services |
9397 | 27 |
Summary: Simple IPC library based on messages |
28 |
Version: %{dbus.version} |
|
11223 | 29 |
Source: %{name}-manpages-0.1.tar.gz |
9397 | 30 |
SUNW_BaseDir: %{_basedir} |
11937 | 31 |
SUNW_Copyright: %{name}.copyright |
9397 | 32 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
33 |
Source1: dbus.xml |
|
34 |
Source2: svc-dbus |
|
15009 | 35 |
Source3: 0070.dbus |
9397 | 36 |
%include default-depend.inc |
15650 | 37 |
Requires: SUNWxwrtl |
13398 | 38 |
Requires: SUNWdbus-libs |
9397 | 39 |
Requires: SUNWdbus-root |
40 |
Requires: SUNWlxml |
|
15600 | 41 |
Requires: SUNWlexpt |
18269 | 42 |
Requires: SUNWPython26-extra |
9397 | 43 |
BuildRequires: SUNWlxml |
18269 | 44 |
BuildRequires: SUNWPython26-extra |
9397 | 45 |
|
46 |
%package devel |
|
47 |
Summary: %{summary} - development files |
|
48 |
SUNW_BaseDir: %{_basedir} |
|
49 |
%include default-depend.inc |
|
50 |
||
13398 | 51 |
%package libs |
17937
664c0536875a
Added tags IPS_package_name and Meta(info.consolidation)
davelam
parents:
17902
diff
changeset
|
52 |
IPS_package_name: system/library/libdbus |
664c0536875a
Added tags IPS_package_name and Meta(info.consolidation)
davelam
parents:
17902
diff
changeset
|
53 |
Meta(info.classification): %{classification_prefix}:System/Libraries |
13398 | 54 |
Summary: %{summary} - client libraries |
55 |
SUNW_BaseDir: %{_basedir} |
|
56 |
%include default-depend.inc |
|
15600 | 57 |
BuildRequires: SUNWdbus-devel |
13398 | 58 |
|
9397 | 59 |
%package root |
60 |
Summary: %{summary} - / filesystem |
|
61 |
SUNW_BaseDir: / |
|
62 |
%include default-depend.inc |
|
63 |
||
64 |
%prep |
|
65 |
rm -rf %name-%version |
|
66 |
mkdir %name-%version |
|
10572 | 67 |
|
68 |
%ifarch amd64 sparcv9 |
|
69 |
mkdir %name-%version/%_arch64 |
|
70 |
%dbus_64.prep -d %name-%version/%_arch64 |
|
71 |
%endif |
|
72 |
||
73 |
mkdir %name-%version/%{base_arch} |
|
74 |
%dbus.prep -d %name-%version/%{base_arch} |
|
9397 | 75 |
|
11223 | 76 |
cd %{_builddir}/%name-%version |
77 |
gzcat %SOURCE0 | tar xf - |
|
78 |
||
9397 | 79 |
%build |
80 |
# Put /usr/ccs/lib first in the PATH so that cpp is picked up from there |
|
81 |
# note: I didn't put /usr/lib in the PATH because there's too much other |
|
82 |
# stuff in there |
|
83 |
# |
|
84 |
export PATH=/usr/ccs/lib:$PATH |
|
10572 | 85 |
%ifarch amd64 sparcv9 |
86 |
%dbus_64.build -d %name-%version/%_arch64 |
|
87 |
%endif |
|
88 |
||
89 |
%dbus.build -d %name-%version/%{base_arch} |
|
9397 | 90 |
|
91 |
%install |
|
92 |
rm -rf $RPM_BUILD_ROOT |
|
10579 | 93 |
|
94 |
%ifarch amd64 sparcv9 |
|
95 |
%dbus_64.install -d %name-%version/%_arch64 |
|
96 |
%endif |
|
97 |
||
98 |
%dbus.install -d %name-%version/%{base_arch} |
|
11223 | 99 |
rm -rf $RPM_BUILD_ROOT%{_mandir} |
100 |
cd %{_builddir}/%name-%version/sun-manpages |
|
101 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
9397 | 102 |
|
10572 | 103 |
%ifarch amd64 sparcv9 |
11891 | 104 |
cd $RPM_BUILD_ROOT%{_bindir}/%{_arch64} |
10572 | 105 |
rm dbus-launch dbus-monitor dbus-cleanup-sockets dbus-send dbus-uuidgen |
106 |
cd .. |
|
107 |
rmdir %{_arch64} |
|
108 |
%endif |
|
9397 | 109 |
|
15032 | 110 |
# The /var/run directory should not be included with the packages. |
111 |
# D-Bus will create it at run-time. |
|
112 |
# |
|
113 |
rmdir $RPM_BUILD_ROOT/var/run/dbus |
|
114 |
rmdir $RPM_BUILD_ROOT/var/run |
|
115 |
||
116 |
# Add SMF integration files. |
|
117 |
# |
|
9397 | 118 |
mkdir -p $RPM_BUILD_ROOT/var/svc/manifest/system |
119 |
chmod -R 755 $RPM_BUILD_ROOT/var/svc |
|
120 |
cp %SOURCE1 $RPM_BUILD_ROOT/var/svc/manifest/system/ |
|
121 |
mkdir -p $RPM_BUILD_ROOT/lib/svc/method |
|
122 |
chmod -R 755 $RPM_BUILD_ROOT/lib |
|
123 |
cp %SOURCE2 $RPM_BUILD_ROOT/lib/svc/method/ |
|
124 |
||
14410 | 125 |
# Add in dbus session launching for gdm |
15032 | 126 |
# |
14410 | 127 |
install --mode=0755 -d $RPM_BUILD_ROOT/%{_sysconfdir} |
128 |
install --mode=0755 -d $RPM_BUILD_ROOT/%{_sysconfdir}/X11 |
|
129 |
install --mode=0755 -d $RPM_BUILD_ROOT/%{_sysconfdir}/X11/xinit |
|
130 |
install --mode=0755 -d $RPM_BUILD_ROOT/%{_sysconfdir}/X11/xinit/xinitrc.d |
|
15009 | 131 |
install --mode=0755 %SOURCE3 $RPM_BUILD_ROOT/%{_sysconfdir}/X11/xinit/xinitrc.d/0070.dbus |
14410 | 132 |
|
9397 | 133 |
mkdir -p $RPM_BUILD_ROOT/etc/security |
134 |
echo 'solaris.smf.manage.dbus:::Manage D-BUS Service States::help=SmfDBUSStates.html' > $RPM_BUILD_ROOT/etc/security/auth_attr |
|
135 |
echo 'D-BUS Management:::Manage D-BUS:auths=solaris.smf.manage.dbus;help=RtDBUSMngmnt.html' > $RPM_BUILD_ROOT/etc/security/prof_attr |
|
136 |
||
137 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} |
|
138 |
||
139 |
%clean |
|
140 |
rm -rf $RPM_BUILD_ROOT |
|
141 |
||
142 |
%if %(test -f /usr/sadm/install/scripts/i.manifest && echo 0 || echo 1) |
|
143 |
%iclass manifest -f i.manifest |
|
144 |
%endif |
|
145 |
||
146 |
%pre root |
|
147 |
#!/bin/sh |
|
148 |
# |
|
149 |
# Copyright 2006 Sun Microsystems, Inc. All rights reserved. |
|
150 |
# Use is subject to license terms. |
|
151 |
# |
|
152 |
||
153 |
# Presence of this temp file will tell postinstall script |
|
154 |
# that the dbus service is already installed, in which case |
|
155 |
# the current service state will be preserved, be it enabled |
|
156 |
# or disabled. |
|
157 |
rm -f $PKG_INSTALL_ROOT/var/dbus_installed.tmp > /dev/null 2>&1 |
|
158 |
||
159 |
if [ -f $PKG_INSTALL_ROOT/var/svc/manifest/system/dbus.xml ]; then |
|
160 |
touch $PKG_INSTALL_ROOT/var/dbus_installed.tmp |
|
161 |
fi |
|
162 |
||
163 |
exit 0 |
|
164 |
||
165 |
%post root |
|
166 |
#!/bin/sh |
|
167 |
# |
|
168 |
# Copyright 2006 Sun Microsystems, Inc. All rights reserved. |
|
169 |
# Use is subject to license terms. |
|
170 |
# |
|
171 |
||
172 |
# Preinstall script will create this file if dbus service was already |
|
173 |
# installed, in which case we preserve current service state, |
|
174 |
# be it enabled or disabled. |
|
175 |
if [ -f $PKG_INSTALL_ROOT/var/dbus_installed.tmp ]; then |
|
176 |
rm -f $PKG_INSTALL_ROOT/var/dbus_installed.tmp |
|
177 |
else |
|
178 |
# enable dbus: |
|
179 |
# - PKG_INSTALL_ROOT is / or empty when installing onto a live system |
|
180 |
# and we can invoke svcadm directly; |
|
181 |
# - otherwise it's upgrade, so we append to the upgrade script |
|
182 |
if [ "${PKG_INSTALL_ROOT:-/}" = "/" ]; then |
|
183 |
if [ `/sbin/zonename` = global ]; then |
|
184 |
/usr/sbin/svcadm enable svc:/system/dbus:default |
|
185 |
fi |
|
186 |
else |
|
187 |
cat >> ${PKG_INSTALL_ROOT}/var/svc/profile/upgrade <<-EOF |
|
188 |
if [ \`/sbin/zonename\` = global ]; then |
|
189 |
/usr/sbin/svcadm enable svc:/system/dbus:default |
|
190 |
fi |
|
191 |
EOF |
|
192 |
fi |
|
193 |
fi |
|
194 |
||
195 |
exit 0 |
|
196 |
||
197 |
%files |
|
198 |
%defattr (-, root, bin) |
|
199 |
%dir %attr (0755, root, bin) %{_bindir} |
|
200 |
%{_bindir}/* |
|
10278 | 201 |
%{_libexecdir}/dbus-1 |
9397 | 202 |
%{_libexecdir}/dbus-daemon |
203 |
%dir %attr (0755, root, sys) %{_datadir} |
|
204 |
%{_datadir}/dbus-1 |
|
13578 | 205 |
%doc -d %{base_arch}/dbus-%{dbus.version} AUTHORS README |
206 |
%doc(bzip2) -d %{base_arch}/dbus-%{dbus.version} ChangeLog ChangeLog.pre-1-0 |
|
207 |
%doc(bzip2) -d %{base_arch}/dbus-%{dbus.version} ChangeLog.pre-1-2 |
|
208 |
%doc(bzip2) -d %{base_arch}/dbus-%{dbus.version} COPYING NEWS |
|
209 |
%doc(bzip2) -d %{base_arch}/dbus-%{dbus.version} NEWS.pre-1-0 NEWS.pre-1-2 |
|
210 |
%dir %attr (0755, root, other) %{_datadir}/doc |
|
9397 | 211 |
%dir %attr(0755, root, bin) %{_mandir} |
212 |
%dir %attr(0755, root, bin) %{_mandir}/man1 |
|
15264 | 213 |
%dir %attr(0755, root, bin) %{_mandir}/man3 |
9397 | 214 |
%{_mandir}/man1/* |
15264 | 215 |
%{_mandir}/man3/* |
9397 | 216 |
|
18099 | 217 |
%files -n SUNWdbus-libs |
13398 | 218 |
%defattr (-, root, bin) |
219 |
%dir %attr (0755, root, bin) %{_libdir} |
|
220 |
%{_libdir}/libdbus* |
|
13578 | 221 |
%ifarch amd64 sparcv9 |
222 |
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64} |
|
223 |
%{_libdir}/%{_arch64}/libdbus* |
|
224 |
%endif |
|
13398 | 225 |
|
9397 | 226 |
%files root |
227 |
%defattr (-, root, bin) |
|
228 |
%dir %attr (0755, root, sys) %{_sysconfdir} |
|
229 |
%config %{_sysconfdir}/dbus-1 |
|
14412 | 230 |
%dir %attr (0755, root, sys) %{_sysconfdir}/X11 |
231 |
%dir %attr (0755, root, sys) %{_sysconfdir}/X11/xinit |
|
232 |
%dir %attr (0755, root, sys) %{_sysconfdir}/X11/xinit/xinitrc.d |
|
15009 | 233 |
%{_sysconfdir}/X11/xinit/xinitrc.d/0070.dbus |
9397 | 234 |
%dir %attr (0755, root, sys) %{_localstatedir} |
235 |
%dir %attr (0755, root, other) %{_localstatedir}/lib |
|
236 |
%attr (0755, root, root) %{_localstatedir}/lib/dbus |
|
237 |
%dir %attr (0755, root, sys) /var/svc |
|
238 |
%dir %attr (0755, root, sys) /var/svc/manifest |
|
239 |
%dir %attr (0755, root, sys) /var/svc/manifest/system |
|
240 |
%class(manifest) %attr (0444, root, sys) /var/svc/manifest/system/dbus.xml |
|
241 |
%attr (0555, root, bin) /lib/svc/method/svc-dbus |
|
242 |
%dir %attr (0755, root, sys) /etc/security |
|
243 |
%config %class (rbac) %attr (0644, root, sys) /etc/security/auth_attr |
|
244 |
%config %class (rbac) %attr (0644, root, sys) /etc/security/prof_attr |
|
245 |
||
246 |
%files devel |
|
247 |
%defattr (-, root, bin) |
|
248 |
%dir %attr (0755, root, bin) %{_libdir} |
|
249 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig |
|
250 |
%{_libdir}/pkgconfig/* |
|
251 |
%{_libdir}/dbus*/include |
|
252 |
%dir %attr (0755, root, bin) %{_includedir} |
|
253 |
%{_includedir}/* |
|
254 |
%ifarch amd64 sparcv9 |
|
255 |
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64} |
|
256 |
%dir %attr (0755, root, other) %{_libdir}/%{_arch64}/pkgconfig |
|
257 |
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64}/dbus-1.0 |
|
258 |
%{_libdir}/%{_arch64}/pkgconfig/*.pc |
|
259 |
%{_libdir}/%{_arch64}/dbus-1.0/* |
|
260 |
%endif |
|
261 |
||
262 |
%changelog |
|
18099 | 263 |
* Tue Jun 08 2010 - [email protected] |
264 |
- Updated BuildRequires to fit SourceJuicer. |
|
15264 | 265 |
* Mon Mar 02 2009 - [email protected] |
266 |
- Add man/man3. |
|
15032 | 267 |
* Thu Feb 05 2009 - [email protected] |
268 |
- Do not package /var/run files. Fixes bug #6799059. |
|
15009 | 269 |
* Wed Feb 04 2009 - [email protected] |
270 |
- Renamed 0005.dbus to 0070.dbus. |
|
14410 | 271 |
* Thu Oct 02 2008 - [email protected] |
272 |
- Add /etc/X11/xinit/xinitrc.d/0005.dbus to fix 6755007 so that gdm can launch |
|
15032 | 273 |
dbus session for the user. This can be used for both gdm on nevada and |
274 |
OpenSolaris. |
|
13578 | 275 |
* Sun Sep 14 2008 - [email protected] |
276 |
- Add new copyright files. |
|
13398 | 277 |
* Tue Sep 02 2008 - [email protected] |
278 |
- Place the library in a separate package, so that people who just |
|
279 |
want to write their own D-Bus services don't need to depend on the |
|
280 |
daemon. |
|
13189 | 281 |
* Wed Aug 20 2008 - [email protected] |
282 |
- Move dbus-daemon.3 manpage to dbus-daemon.1 manpage. |
|
11937 | 283 |
* Thu Mar 27 2008 - [email protected] |
284 |
- Add SUNW_Copyright. |
|
11891 | 285 |
* Wed Mar 19 2008 - [email protected] |
286 |
- Remove the symlinks that point from /usr/lib/libdbus-1.so.2 to |
|
287 |
/usr/lib/libdbus-1.so.3. Now that ON updated their build machines to use the |
|
288 |
new D-Bus library, the symlinks are no longer needed. |
|
11439 | 289 |
* Fri Jan 11 2008 - [email protected] |
290 |
- Fix amd64/sparcv9 symlink to point to libdbus-1.so.3 (2nd half of Brian's |
|
291 |
change on Aug 6. Fixes 6624762. |
|
11223 | 292 |
* Tue Nov 20 2007 - [email protected] |
293 |
- Add dbus manpages. |
|
10624 | 294 |
* Mon Oct 8 2007 - [email protected] |
295 |
- Remove %{_libdir}/dbus-1 line from base package as it only contains a header |
|
296 |
file and is duplicated in the devel package. Fixes 6613798. |
|
10581 | 297 |
* Mon Oct 1 2007 - [email protected] |
10586 | 298 |
- change 64-bit libexecdir to /usr/lib |
299 |
* Mon Oct 1 2007 - [email protected] |
|
10581 | 300 |
- Fix %files, adding %{_libdir}/%{_arch64}/dbus-1. |
10579 | 301 |
* Sun Sep 30 2007 - [email protected] |
302 |
- fix %install |
|
10572 | 303 |
* Fri Sep 28 2007 - [email protected] |
304 |
- convert to new style multi-ISA build |
|
305 |
- delete SUNWxwrtl dep |
|
10278 | 306 |
* Mon Aug 06 2007 - [email protected] |
307 |
- Fix packaging after bumping to 1.1.2. Also fix the symlink so we |
|
308 |
link to libdbus-1.so.3 rather than libdbus-1.so.3.# so we don't have |
|
309 |
to update the link each time we upgrade the D-Bus library. |
|
9397 | 310 |
* Sun Feb 25 2007 - [email protected] |
311 |
- updated to include 64-bit build RFE: #6480511 |
|
312 |
* Fri Dec 15 2006 - [email protected] |
|
313 |
- Create symlink to support hal which was built with an older version of dbus. |
|
314 |
* Mon Nov 27 2006 - [email protected] |
|
315 |
- Update to 1.0.1. |
|
316 |
* Fri Nov 24 2006 - [email protected] |
|
317 |
- Update %files - remove python dir, add %{_localstatedir}/lib/dbus. |
|
318 |
* Mon Sep 18 2006 - [email protected] |
|
319 |
- revert to normal optimisation flags, the build problems were caused by |
|
320 |
ld(1) bug 6467925 |
|
321 |
- change /var/run/dbus permissions to root:root, fixes 6460949 |
|
322 |
* Mon Aug 28 2006 - [email protected] |
|
323 |
- Use '-xO2' optimization (not -xO4) as the latter causes seg faults in build. |
|
324 |
* Fri Aug 25 2006 - [email protected] |
|
325 |
- Use c99 compiler |
|
326 |
* Fri Jul 28 2006 - [email protected] |
|
327 |
- add pre and post scripts for enabling the dbus svc upon installation |
|
328 |
but leaving it as is upon upgrade (Artem Kachitchkine, David Bustos) |
|
329 |
* Fri Jul 21 2006 - [email protected] |
|
330 |
- Add dbus RBAC entries to auth_attr and prof_attr |
|
331 |
* Mon May 08 2006 - [email protected] |
|
332 |
- Add Build/Requires dependency on SUNWPython-extra (for Pyrex) so that python |
|
333 |
bindings are built. |
|
334 |
* Tue May 02 2006 - [email protected] |
|
335 |
- add SMF support (from Artem Kachitchkine) |
|
336 |
* Fri Feb 17 2006 - [email protected] |
|
337 |
- Update Build/Requires after running check-deps.pl script. |
|
338 |
* Tue Oct 25 2005 - [email protected] |
|
339 |
- Add the include dir under _libdir. |
|
340 |
* Fri Oct 21 2005 - [email protected] |
|
341 |
- Initial spec file created. |
|
342 |