]>
Commit | Line | Data |
---|---|---|
b89a2164 | 1 | %define expat_version 1:1.95.5 |
3f8dd6e4 | 2 | Summary: D-BUS message bus |
d9e791ee | 3 | Summary(pl.UTF-8): Magistrala przesyłania komunikatów D-BUS |
3f8dd6e4 | 4 | Name: dbus |
a3e5bc67 | 5 | Version: 1.2.1 |
e541ff1c | 6 | Release: 3 |
25fd4e9e | 7 | License: AFL v2.1 or GPL v2 |
bc0b5507 | 8 | Group: Libraries |
e5453be6 | 9 | Source0: http://dbus.freedesktop.org/releases/dbus/%{name}-%{version}.tar.gz |
a3e5bc67 | 10 | # Source0-md5: b57aa1ba0834cbbb1e7502dc2cbfacc2 |
817942a3 | 11 | Source1: messagebus.init |
dcde8323 MK |
12 | Source2: %{name}-daemon-1-profile.d-sh |
13 | Source3: %{name}-sysconfig | |
4673fbd5 | 14 | Source4: %{name}-xinitrc.sh |
80072a2c | 15 | Patch0: %{name}-nolibs.patch |
16 | Patch1: %{name}-config.patch | |
d63e2026 | 17 | Patch2: %{name}-no_fatal_checks.patch |
f19fa9c8 | 18 | URL: http://www.freedesktop.org/Software/dbus |
7050d71f | 19 | BuildRequires: audit-libs-devel |
48d7fff5 | 20 | BuildRequires: autoconf >= 2.52 |
bc0b5507 | 21 | BuildRequires: automake |
ab3fabda | 22 | BuildRequires: doxygen |
b89a2164 | 23 | BuildRequires: expat-devel >= %{expat_version} |
7050d71f | 24 | BuildRequires: libcap-devel |
f82a8a7b | 25 | BuildRequires: libselinux-devel |
bc0b5507 | 26 | BuildRequires: libtool |
60d211c4 | 27 | BuildRequires: pkgconfig |
9a0bbf5a | 28 | BuildRequires: rpmbuild(macros) >= 1.268 |
f15cbea8 | 29 | BuildRequires: sed >= 4.0 |
17b61c76 | 30 | BuildRequires: xmlto |
d31ee46d | 31 | BuildRequires: xorg-lib-libX11-devel |
9a0bbf5a ER |
32 | Requires(post,postun): /sbin/ldconfig |
33 | Requires(post,preun): /sbin/chkconfig | |
34 | Requires(postun): /usr/sbin/groupdel | |
35 | Requires(postun): /usr/sbin/userdel | |
48d7fff5 | 36 | Requires(pre): /bin/id |
b5824d21 | 37 | Requires(pre): /usr/bin/getgid |
48d7fff5 JB |
38 | Requires(pre): /usr/sbin/groupadd |
39 | Requires(pre): /usr/sbin/useradd | |
9a0bbf5a | 40 | Requires: %{name}-libs = %{version}-%{release} |
9fb96e41 | 41 | Requires: expat >= %{expat_version} |
9a0bbf5a | 42 | Requires: rc-scripts |
b5824d21 | 43 | Provides: group(messagebus) |
44 | Provides: user(messagebus) | |
845c3048 | 45 | Conflicts: pam < 0.99.7.1 |
c3f3aa78 | 46 | Obsoletes: dbus-X11 |
75a73017 | 47 | Obsoletes: dbus-glib-tools |
8a7e4f09 JB |
48 | # not available for dbus 0.9x yet(?) |
49 | #Obsoletes: dbus-gtk dbus-gcj dbus-gcj-devel dbus-gcj-static | |
bc0b5507 | 50 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
3f8dd6e4 AF |
51 | |
52 | %description | |
53 | D-BUS is a system for sending messages between applications. It is | |
54 | used both for the systemwide message bus service, and as a | |
55 | per-user-login-session messaging facility. | |
56 | ||
702c1f82 JR |
57 | %description -l pl.UTF-8 |
58 | D-BUS to system przesyłania komunikatów pomiędzy aplikacjami. Jest | |
59 | używany zarówno jako ogólnosystemowa usługa magistrali komunikatów jak | |
60 | i możliwość przesyłania komunikatów w ramach jednej sesji użytkownika. | |
bc0b5507 | 61 | |
93c19477 JB |
62 | %package libs |
63 | Summary: D-BUS libraries | |
d9e791ee | 64 | Summary(pl.UTF-8): Biblioteki D-BUS |
93c19477 JB |
65 | Group: Libraries |
66 | ||
67 | %description libs | |
68 | D-BUS libraries. | |
69 | ||
702c1f82 | 70 | %description libs -l pl.UTF-8 |
93c19477 JB |
71 | Biblioteki D-BUS. |
72 | ||
3f8dd6e4 | 73 | %package devel |
bc0b5507 | 74 | Summary: Header files for D-BUS |
d9e791ee | 75 | Summary(pl.UTF-8): Pliki nagłówkowe D-BUS |
3f8dd6e4 | 76 | Group: Development/Libraries |
e58eea39 | 77 | Requires: %{name}-libs = %{version}-%{release} |
3f8dd6e4 AF |
78 | |
79 | %description devel | |
bc0b5507 JB |
80 | Header files for D-BUS. |
81 | ||
702c1f82 JR |
82 | %description devel -l pl.UTF-8 |
83 | Pliki nagłówkowe D-BUS. | |
bc0b5507 JB |
84 | |
85 | %package static | |
86 | Summary: Static D-BUS libraries | |
d9e791ee | 87 | Summary(pl.UTF-8): Statyczne biblioteki D-BUS |
bc0b5507 | 88 | Group: Development/Libraries |
26ded955 | 89 | Requires: %{name}-devel = %{version}-%{release} |
bc0b5507 JB |
90 | |
91 | %description static | |
92 | Static D-BUS libraries. | |
93 | ||
702c1f82 | 94 | %description static -l pl.UTF-8 |
bc0b5507 | 95 | Statyczne biblioteki D-BUS. |
3f8dd6e4 | 96 | |
3f8dd6e4 AF |
97 | %prep |
98 | %setup -q | |
99 | %patch0 -p1 | |
d40e6d8d | 100 | %patch1 -p1 |
d63e2026 | 101 | %patch2 -p1 |
3f8dd6e4 AF |
102 | |
103 | %build | |
104 | %{__libtoolize} | |
105 | %{__aclocal} | |
106 | %{__autoconf} | |
60d211c4 | 107 | %{__autoheader} |
3f8dd6e4 | 108 | %{__automake} |
92f6f38b | 109 | %configure \ |
d728aff5 | 110 | %{?debug:--enable-verbose-mode} \ |
7dee3cfe | 111 | --disable-asserts \ |
d728aff5 | 112 | --disable-tests \ |
f19fa9c8 | 113 | --enable-abstract-sockets \ |
d728aff5 | 114 | --enable-selinux \ |
845c3048 | 115 | --with-console-auth-dir=%{_localstatedir}/run/console/ \ |
c74466a5 | 116 | --with-session-socket-dir=/tmp \ |
ab3fabda | 117 | --with-system-pid-file=%{_localstatedir}/run/dbus.pid \ |
d728aff5 | 118 | --with-xml=expat |
d31ee46d | 119 | %{__make} |
3f8dd6e4 AF |
120 | |
121 | %install | |
122 | rm -rf $RPM_BUILD_ROOT | |
6f305975 | 123 | install -d $RPM_BUILD_ROOT/etc/profile.d |
4673fbd5 | 124 | install -d $RPM_BUILD_ROOT/etc/rc.d/init.d |
dcde8323 | 125 | install -d $RPM_BUILD_ROOT/etc/sysconfig |
4673fbd5 | 126 | install -d $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d |
39b52e3f | 127 | install -d $RPM_BUILD_ROOT%{_datadir}/dbus-1/{services,interfaces} |
184f238c | 128 | install -d $RPM_BUILD_ROOT%{_localstatedir}/run/dbus |
3f8dd6e4 AF |
129 | |
130 | %{__make} install \ | |
d31ee46d | 131 | DESTDIR=$RPM_BUILD_ROOT |
3f8dd6e4 | 132 | |
817942a3 | 133 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/messagebus |
6f305975 | 134 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/profile.d/dbus-daemon-1.sh |
b89dd173 | 135 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/messagebus |
4673fbd5 | 136 | install %{SOURCE4} $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d |
817942a3 | 137 | |
3f8dd6e4 | 138 | %clean |
bc0b5507 | 139 | rm -rf $RPM_BUILD_ROOT |
3f8dd6e4 | 140 | |
817942a3 | 141 | %pre |
64d48b42 | 142 | %groupadd -g 122 messagebus |
d3e1076f | 143 | %useradd -u 122 -d /usr/share/empty -s /bin/false -c "System message bus" -g 122 messagebus |
817942a3 | 144 | |
145 | %post | |
817942a3 | 146 | /sbin/chkconfig --add messagebus |
9a0bbf5a | 147 | %service messagebus restart "D-Bus daemon" |
817942a3 | 148 | |
149 | %preun | |
150 | if [ "$1" = "0" ];then | |
9a0bbf5a | 151 | %service messagebus stop |
817942a3 | 152 | /sbin/chkconfig --del messagebus |
153 | fi | |
154 | ||
155 | %postun | |
817942a3 | 156 | if [ "$1" = "0" ]; then |
b5824d21 | 157 | %userremove messagebus |
158 | %groupremove messagebus | |
817942a3 | 159 | fi |
0186cbb3 | 160 | |
2c14f3cc | 161 | %post libs -p /sbin/ldconfig |
162 | %postun libs -p /sbin/ldconfig | |
f82a8a7b | 163 | |
b89dd173 | 164 | %triggerpostun -- %{name} < 0.92 |
165 | %banner %{name} << EOF | |
166 | WARNING!!! | |
167 | configuration file /etc/sysconfig/dbus has been moved to /etc/sysconfig/messagebus! | |
168 | EOF | |
169 | ||
e4a64dc3 JR |
170 | if [ -f /etc/sysconfig/dbus ]; then |
171 | mv -f /etc/sysconfig/messagebus{,.rpmnew} | |
172 | mv -f /etc/sysconfig/{dbus,messagebus} | |
173 | elif [ -f /etc/sysconfig/dbus.rpmsave ]; then | |
174 | mv -f /etc/sysconfig/messagebus{,.rpmnew} | |
175 | mv -f /etc/sysconfig/{dbus.rpmsave,messagebus} | |
176 | fi | |
b89dd173 | 177 | |
3f8dd6e4 AF |
178 | %files |
179 | %defattr(644,root,root,755) | |
60d211c4 | 180 | %attr(755,root,root) %{_bindir}/dbus-cleanup-sockets |
08c9542c | 181 | %attr(755,root,root) %{_bindir}/dbus-daemon |
e5453be6 | 182 | %attr(755,root,root) %{_bindir}/dbus-uuidgen |
d6c9dbd7 | 183 | # R: libX11 |
2b8f3b50 | 184 | %attr(755,root,root) %{_bindir}/dbus-launch |
d31ee46d | 185 | %attr(755,root,root) %{_bindir}/dbus-monitor |
60d211c4 | 186 | %attr(755,root,root) %{_bindir}/dbus-send |
9fb96e41 JB |
187 | %attr(4754,root,messagebus) %{_libdir}/dbus-daemon-launch-helper |
188 | %dir %{_libdir}/dbus-1 | |
189 | %dir %{_datadir}/dbus-1 | |
39b52e3f | 190 | %dir %{_datadir}/dbus-1/interfaces |
9fb96e41 JB |
191 | %dir %{_datadir}/dbus-1/services |
192 | %dir %{_datadir}/dbus-1/system-services | |
3f8dd6e4 | 193 | %dir %{_sysconfdir}/dbus-1 |
f82a8a7b | 194 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/*.conf |
9fb96e41 JB |
195 | %dir %{_sysconfdir}/dbus-1/system.d |
196 | %dir %{_sysconfdir}/dbus-1/session.d | |
b89dd173 | 197 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/messagebus |
817942a3 | 198 | %attr(754,root,root) /etc/rc.d/init.d/* |
6f305975 | 199 | %attr(755,root,root) /etc/profile.d/dbus-daemon-1.sh |
4673fbd5 | 200 | %attr(755,root,root) /etc/X11/xinit/xinitrc.d/*.sh |
184f238c | 201 | %dir %{_localstatedir}/run/dbus |
d7c0a93c | 202 | %dir /var/lib/dbus |
60d211c4 | 203 | %{_mandir}/man1/dbus-cleanup-sockets.1* |
08c9542c | 204 | %{_mandir}/man1/dbus-daemon.1* |
e5453be6 | 205 | %{_mandir}/man1/dbus-uuidgen.1* |
d6c9dbd7 | 206 | %{_mandir}/man1/dbus-launch.1* |
d31ee46d | 207 | %{_mandir}/man1/dbus-monitor.1* |
60d211c4 | 208 | %{_mandir}/man1/dbus-send.1* |
3f8dd6e4 | 209 | |
0186cbb3 | 210 | %files libs |
3f8dd6e4 | 211 | %defattr(644,root,root,755) |
e58eea39 | 212 | %doc AUTHORS COPYING ChangeLog NEWS README doc/TODO |
2009405e | 213 | %attr(755,root,root) %{_libdir}/libdbus-1.so.*.*.* |
9fb96e41 | 214 | %attr(755,root,root) %ghost %{_libdir}/libdbus-1.so.3 |
0186cbb3 | 215 | |
216 | %files devel | |
217 | %defattr(644,root,root,755) | |
218 | %doc doc/*.{html,txt} | |
2009405e | 219 | %attr(755,root,root) %{_libdir}/libdbus-1.so |
60d211c4 | 220 | %{_libdir}/libdbus-1.la |
9fb96e41 JB |
221 | %dir %{_libdir}/dbus-1.0 |
222 | %{_libdir}/dbus-1.0/include | |
92f6f38b | 223 | %{_pkgconfigdir}/dbus-1.pc |
9fb96e41 | 224 | %{_includedir}/dbus-1.0 |
bc0b5507 JB |
225 | |
226 | %files static | |
227 | %defattr(644,root,root,755) | |
60d211c4 | 228 | %{_libdir}/libdbus-1.a |