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