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