]> git.pld-linux.org Git - packages/dbus.git/blame - dbus.spec
- dbus refuses to start if pidfile already exist; rel 3
[packages/dbus.git] / dbus.spec
CommitLineData
b89a2164 1%define expat_version 1:1.95.5
3f8dd6e4 2Summary: D-BUS message bus
d9e791ee 3Summary(pl.UTF-8): Magistrala przesyłania komunikatów D-BUS
3f8dd6e4 4Name: dbus
a3e5bc67 5Version: 1.2.1
e541ff1c 6Release: 3
25fd4e9e 7License: AFL v2.1 or GPL v2
bc0b5507 8Group: Libraries
e5453be6 9Source0: http://dbus.freedesktop.org/releases/dbus/%{name}-%{version}.tar.gz
a3e5bc67 10# Source0-md5: b57aa1ba0834cbbb1e7502dc2cbfacc2
817942a3 11Source1: messagebus.init
dcde8323
MK
12Source2: %{name}-daemon-1-profile.d-sh
13Source3: %{name}-sysconfig
4673fbd5 14Source4: %{name}-xinitrc.sh
80072a2c 15Patch0: %{name}-nolibs.patch
16Patch1: %{name}-config.patch
d63e2026 17Patch2: %{name}-no_fatal_checks.patch
f19fa9c8 18URL: http://www.freedesktop.org/Software/dbus
7050d71f 19BuildRequires: audit-libs-devel
48d7fff5 20BuildRequires: autoconf >= 2.52
bc0b5507 21BuildRequires: automake
ab3fabda 22BuildRequires: doxygen
b89a2164 23BuildRequires: expat-devel >= %{expat_version}
7050d71f 24BuildRequires: libcap-devel
f82a8a7b 25BuildRequires: libselinux-devel
bc0b5507 26BuildRequires: libtool
60d211c4 27BuildRequires: pkgconfig
9a0bbf5a 28BuildRequires: rpmbuild(macros) >= 1.268
f15cbea8 29BuildRequires: sed >= 4.0
17b61c76 30BuildRequires: xmlto
d31ee46d 31BuildRequires: xorg-lib-libX11-devel
9a0bbf5a
ER
32Requires(post,postun): /sbin/ldconfig
33Requires(post,preun): /sbin/chkconfig
34Requires(postun): /usr/sbin/groupdel
35Requires(postun): /usr/sbin/userdel
48d7fff5 36Requires(pre): /bin/id
b5824d21 37Requires(pre): /usr/bin/getgid
48d7fff5
JB
38Requires(pre): /usr/sbin/groupadd
39Requires(pre): /usr/sbin/useradd
9a0bbf5a 40Requires: %{name}-libs = %{version}-%{release}
9fb96e41 41Requires: expat >= %{expat_version}
9a0bbf5a 42Requires: rc-scripts
b5824d21 43Provides: group(messagebus)
44Provides: user(messagebus)
845c3048 45Conflicts: pam < 0.99.7.1
c3f3aa78 46Obsoletes: dbus-X11
75a73017 47Obsoletes: 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 50BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
3f8dd6e4
AF
51
52%description
53D-BUS is a system for sending messages between applications. It is
54used both for the systemwide message bus service, and as a
55per-user-login-session messaging facility.
56
702c1f82
JR
57%description -l pl.UTF-8
58D-BUS to system przesyłania komunikatów pomiędzy aplikacjami. Jest
59używany zarówno jako ogólnosystemowa usługa magistrali komunikatów jak
60i możliwość przesyłania komunikatów w ramach jednej sesji użytkownika.
bc0b5507 61
93c19477
JB
62%package libs
63Summary: D-BUS libraries
d9e791ee 64Summary(pl.UTF-8): Biblioteki D-BUS
93c19477
JB
65Group: Libraries
66
67%description libs
68D-BUS libraries.
69
702c1f82 70%description libs -l pl.UTF-8
93c19477
JB
71Biblioteki D-BUS.
72
3f8dd6e4 73%package devel
bc0b5507 74Summary: Header files for D-BUS
d9e791ee 75Summary(pl.UTF-8): Pliki nagłówkowe D-BUS
3f8dd6e4 76Group: Development/Libraries
e58eea39 77Requires: %{name}-libs = %{version}-%{release}
3f8dd6e4
AF
78
79%description devel
bc0b5507
JB
80Header files for D-BUS.
81
702c1f82
JR
82%description devel -l pl.UTF-8
83Pliki nagłówkowe D-BUS.
bc0b5507
JB
84
85%package static
86Summary: Static D-BUS libraries
d9e791ee 87Summary(pl.UTF-8): Statyczne biblioteki D-BUS
bc0b5507 88Group: Development/Libraries
26ded955 89Requires: %{name}-devel = %{version}-%{release}
bc0b5507
JB
90
91%description static
92Static D-BUS libraries.
93
702c1f82 94%description static -l pl.UTF-8
bc0b5507 95Statyczne 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
122rm -rf $RPM_BUILD_ROOT
6f305975 123install -d $RPM_BUILD_ROOT/etc/profile.d
4673fbd5 124install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
dcde8323 125install -d $RPM_BUILD_ROOT/etc/sysconfig
4673fbd5 126install -d $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d
39b52e3f 127install -d $RPM_BUILD_ROOT%{_datadir}/dbus-1/{services,interfaces}
184f238c 128install -d $RPM_BUILD_ROOT%{_localstatedir}/run/dbus
3f8dd6e4
AF
129
130%{__make} install \
d31ee46d 131 DESTDIR=$RPM_BUILD_ROOT
3f8dd6e4 132
817942a3 133install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/messagebus
6f305975 134install %{SOURCE2} $RPM_BUILD_ROOT/etc/profile.d/dbus-daemon-1.sh
b89dd173 135install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/messagebus
4673fbd5 136install %{SOURCE4} $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d
817942a3 137
3f8dd6e4 138%clean
bc0b5507 139rm -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
150if [ "$1" = "0" ];then
9a0bbf5a 151 %service messagebus stop
817942a3 152 /sbin/chkconfig --del messagebus
153fi
154
155%postun
817942a3 156if [ "$1" = "0" ]; then
b5824d21 157 %userremove messagebus
158 %groupremove messagebus
817942a3 159fi
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
166WARNING!!!
167configuration file /etc/sysconfig/dbus has been moved to /etc/sysconfig/messagebus!
168EOF
169
e4a64dc3
JR
170if [ -f /etc/sysconfig/dbus ]; then
171 mv -f /etc/sysconfig/messagebus{,.rpmnew}
172 mv -f /etc/sysconfig/{dbus,messagebus}
173elif [ -f /etc/sysconfig/dbus.rpmsave ]; then
174 mv -f /etc/sysconfig/messagebus{,.rpmnew}
175 mv -f /etc/sysconfig/{dbus.rpmsave,messagebus}
176fi
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
This page took 0.411518 seconds and 4 git commands to generate.