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