author | dcarbery |
Fri, 24 Nov 2006 16:37:59 +0000 | |
branch | 217update |
changeset 19096 | d542fc2c823e |
parent 19088 | d864591cef7c |
permissions | -rw-r--r-- |
5518 | 1 |
# |
2 |
# spec file for package dbus |
|
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 |
# |
|
8529 | 8 |
# Owner: yippi |
19073 | 9 |
# bugdb: bugzilla.freedesktop.org |
8529 | 10 |
# |
5518 | 11 |
Name: dbus |
12 |
License: Other |
|
13 |
Group: System/Libraries |
|
19076 | 14 |
Version: 1.0.1 |
6849 | 15 |
Release: 1 |
5518 | 16 |
Distribution: Java Desktop System |
17 |
Vendor: Sun Microsystems, Inc. |
|
18 |
Summary: Simple IPC library based on messages |
|
19 |
Source: http://dbus.freedesktop.org/releases/%{name}-%{version}.tar.gz |
|
5528
8eaf8a1cb170
* *.spec: Bump to latest available versions for 2.11 work.
dc144907
parents:
5518
diff
changeset
|
20 |
URL: http://www.freedesktop.org/wiki/Software_2fdbus |
19088 | 21 |
Patch1: dbus-01-dbus-launch.diff |
5518 | 22 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
23 |
Docdir: %{_defaultdocdir}/doc |
|
24 |
Autoreqprov: on |
|
25 |
Prereq: /sbin/ldconfig |
|
26 |
||
27 |
%define glib2_version 2.6.4 |
|
28 |
%define libxml2_version 2.6.19 |
|
5565
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5528
diff
changeset
|
29 |
%define python_version 2.4 |
5518 | 30 |
BuildRequires: glib2-devel >= %glib2_version |
31 |
BuildRequires: libxml2-devel >= %libxml2_version |
|
5565
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5528
diff
changeset
|
32 |
# FIXME: get python rpm: BuildRequires: python >= %python_version |
5518 | 33 |
Requires: glib2 >= %glib2_version |
34 |
Requires: libxml2 >= %libxml2_version |
|
35 |
||
36 |
%description |
|
5565
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5528
diff
changeset
|
37 |
D-BUS is a message bus system, a simple way for applications to talk to one |
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5528
diff
changeset
|
38 |
another. |
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5528
diff
changeset
|
39 |
D-BUS supplies both a system daemon (for events such as "new hardware device |
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5528
diff
changeset
|
40 |
added" or "printer queue changed") and a per-user-login-session daemon (for |
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5528
diff
changeset
|
41 |
general IPC needs among user applications). Also, the message bus is built on |
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5528
diff
changeset
|
42 |
top of a general one-to-one message passing framework, which can be used by |
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5528
diff
changeset
|
43 |
any two apps to communicate directly (without going through the message bus |
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5528
diff
changeset
|
44 |
daemon). |
5518 | 45 |
|
46 |
%package devel |
|
47 |
Summary: Simple IPC library based on messages |
|
48 |
Group: Development/Libraries |
|
49 |
Requires: %{name} = %{version} |
|
50 |
||
51 |
%description devel |
|
5565
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5528
diff
changeset
|
52 |
D-BUS is a message bus system, a simple way for applications to talk to one |
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5528
diff
changeset
|
53 |
another. |
5518 | 54 |
|
5565
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5528
diff
changeset
|
55 |
D-BUS supplies both a system daemon (for events such as "new hardware device |
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5528
diff
changeset
|
56 |
added" or "printer queue changed") and a per-user-login-session daemon (for |
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5528
diff
changeset
|
57 |
general IPC needs among user applications). Also, the message bus is built on |
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5528
diff
changeset
|
58 |
top of a general one-to-one message passing framework, which can be used by |
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5528
diff
changeset
|
59 |
any two apps to communicate directly (without going through the message bus |
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5528
diff
changeset
|
60 |
daemon). |
5518 | 61 |
|
62 |
%prep |
|
63 |
%setup -q |
|
6848 | 64 |
%ifos solaris |
65 |
%patch1 -p1 |
|
66 |
%endif |
|
5518 | 67 |
|
68 |
%build |
|
69 |
%ifos linux |
|
70 |
if [ -x /usr/bin/getconf ]; then |
|
71 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
72 |
fi |
|
73 |
%else |
|
74 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
75 |
%endif |
|
76 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
77 |
CPUS=1 |
|
78 |
fi |
|
7203
ce0e4f0567a3
2006-05-02 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
6923
diff
changeset
|
79 |
autoconf |
7709 | 80 |
automake -a -c -f |
5518 | 81 |
CFLAGS="$RPM_OPT_FLAGS" \ |
82 |
./configure --prefix=%{_prefix} \ |
|
83 |
--sysconfdir=%{_sysconfdir} \ |
|
84 |
--libexecdir=%{_libexecdir} \ |
|
6296 | 85 |
--localstatedir=%{_localstatedir} \ |
7203
ce0e4f0567a3
2006-05-02 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
6923
diff
changeset
|
86 |
--with-dbus-user=root \ |
7848 | 87 |
--with-dbus-daemondir=/usr/lib \ |
8026 | 88 |
--mandir=%{_mandir} --datadir=%{_datadir} |
6849 | 89 |
make -j $CPUS \ |
90 |
pyexecdir=%{_libdir}/python%{python_version}/vendor-packages |
|
5518 | 91 |
|
92 |
%install |
|
6849 | 93 |
make DESTDIR=$RPM_BUILD_ROOT install \ |
94 |
pyexecdir=%{_libdir}/python%{python_version}/vendor-packages |
|
5645 | 95 |
mkdir -p $RPM_BUILD_ROOT%{_datadir}/dbus-1/services |
6923 | 96 |
rm $RPM_BUILD_ROOT%{_libdir}/lib*.a |
97 |
rm $RPM_BUILD_ROOT%{_libdir}/lib*.la |
|
6849 | 98 |
find $RPM_BUILD_ROOT%{_libdir} -type f -name "*.la" -exec rm -f {} ';' |
8323 | 99 |
find $RPM_BUILD_ROOT%{_libdir} -type f -name "*.a" -exec rm -f {} ';' |
6849 | 100 |
find $RPM_BUILD_ROOT%{_libdir} -type f -name "*.pyo" -exec rm -f {} ';' |
5518 | 101 |
|
102 |
%post |
|
103 |
/sbin/ldconfig |
|
104 |
||
105 |
%postun |
|
106 |
/sbin/ldconfig |
|
107 |
||
108 |
%clean |
|
109 |
rm -rf $RPM_BUILD_ROOT |
|
110 |
||
111 |
%files |
|
112 |
%defattr(-, root, root) |
|
113 |
%config %{_sysconfdir}/dbus-1/session.conf |
|
114 |
%config %{_sysconfdir}/dbus-1/system.conf |
|
115 |
%{_bindir}/* |
|
6923 | 116 |
%{_libdir}/libdbus*.so* |
5518 | 117 |
%{_datadir}/man/* |
5645 | 118 |
%{_datadir}/dbus-1/* |
5518 | 119 |
|
120 |
%files devel |
|
121 |
%defattr(-, root, root) |
|
122 |
%{_libdir}/*.so |
|
123 |
%{_includedir}/dbus-1.0/* |
|
124 |
%{_libdir}/dbus-1.0/* |
|
125 |
%{_libdir}/pkgconfig/* |
|
6849 | 126 |
%{_libdir}/python?.?/vendor-packages/* |
5518 | 127 |
|
128 |
%changelog |
|
19088 | 129 |
* Thu Nov 23 2006 - [email protected] |
130 |
- Removed upstream patches, 01, 02, 04, 05 and 06. Renumber remainder. |
|
19076 | 131 |
* Wed Nov 22 2006 - [email protected] |
132 |
- Bump to 1.0.1. |
|
8599 | 133 |
* Fri Nov 17 2006 - [email protected] |
134 |
- Added patch dbus-06-proxy-change-owner-crash.diff. This patch is only |
|
135 |
for 0.6x release of dbus, when dbus 1.0 is incorporated, this patch |
|
136 |
can be dropped. |
|
8323 | 137 |
* Fri Oct 13 2006 - [email protected] |
138 |
- Delete .a and .la files. |
|
8026 | 139 |
* Wed Aug 30 2006 - [email protected] |
140 |
- Add --datadir to configure call so that path in session.conf is expanded. |
|
7850 | 141 |
* Thu Aug 03 2006 - [email protected] |
142 |
- Updated dbus-03-dbus-launch.diff to avoid chewing idle CPU. |
|
7848 | 143 |
* Wed Aug 02 2006 - [email protected] |
144 |
- Rewrote libexec patch based on Havoc's comments. Now pass in |
|
145 |
--with-daemondir to set daemon location. |
|
7829
94eab27fc1f1
2006-07-28 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
7709
diff
changeset
|
146 |
* Fri Jul 28 2006 - [email protected] |
94eab27fc1f1
2006-07-28 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
7709
diff
changeset
|
147 |
- add patch priv.spec (from Artem Kachitchkine), makes dbus run as user |
94eab27fc1f1
2006-07-28 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
7709
diff
changeset
|
148 |
'daemon' and also with least privileges |
7709 | 149 |
* Fri Jul 21 2006 - [email protected] |
150 |
- Add patch to move dbus-daemon to /usr/lib, required by ARC. |
|
7203
ce0e4f0567a3
2006-05-02 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
6923
diff
changeset
|
151 |
* Tue May 02 2006 - [email protected] |
ce0e4f0567a3
2006-05-02 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
6923
diff
changeset
|
152 |
- add patch console.diff that allows D-BUS to authenticate console user |
6849 | 153 |
* Sun Feb 26 2006 - [email protected] |
154 |
- Bump to 0.61. |
|
155 |
- move python stuff to vendor-packages, remove .pyo and *.la |
|
6615 | 156 |
* Thu Jan 19 2006 - [email protected] |
157 |
- Remove upstream patch, 01-auth-external. Renumber remaining. |
|
6589 | 158 |
* Tue Jan 17 2006 - [email protected] |
159 |
- Bump to 0.60. |
|
6172
4969591360b9
* patches/dbus-03-archincludedir.diff: Removed. Unnecessary.
dc144907
parents:
6151
diff
changeset
|
160 |
* Tue Oct 25 2005 - [email protected] |
4969591360b9
* patches/dbus-03-archincludedir.diff: Removed. Unnecessary.
dc144907
parents:
6151
diff
changeset
|
161 |
- Remove patch3 as an include dir under _libdir is okay. Bump to 0.50. Disable |
4969591360b9
* patches/dbus-03-archincludedir.diff: Removed. Unnecessary.
dc144907
parents:
6151
diff
changeset
|
162 |
python bindings as they fail. Bug 4878 files at freedesktop.org. |
6151 | 163 |
* Fri Oct 21 2005 - [email protected] |
164 |
- Add patches to build on Solaris. |
|
5645 | 165 |
* Tue Aug 30 2005 - [email protected] |
166 |
- Create the dbus-1 services directory |
|
5565
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5528
diff
changeset
|
167 |
* Tue Aug 16 2005 - [email protected] |
b1beceba7539
* vino.spec: Remove PATH setting as it is not used (info was wrong and
dc144907
parents:
5528
diff
changeset
|
168 |
- Add python >= 2.4 dependency. Reformat description text. |
5528
8eaf8a1cb170
* *.spec: Bump to latest available versions for 2.11 work.
dc144907
parents:
5518
diff
changeset
|
169 |
* Mon Aug 15 2005 - [email protected] |
8eaf8a1cb170
* *.spec: Bump to latest available versions for 2.11 work.
dc144907
parents:
5518
diff
changeset
|
170 |
- Bump to 0.35.2. |
5518 | 171 |
* Mon Jun 20 2005 - [email protected] |
172 |
- dbus 0.23 is actually shipped with gnome 2.10 so bumping down tarball |
|
173 |
* Thu Jun 09 2005 - [email protected] |
|
174 |
- add buildrequires glib2, libxml2 |
|
175 |
* Thu May 12 2005 - [email protected] |
|
176 |
- Initial spec file for dbus. |