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