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