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