2007-01-16 00:08:38 +01:00
|
|
|
#
|
2011-03-09 17:23:52 +01:00
|
|
|
# spec file for package dbus-1
|
2007-01-16 00:08:38 +01:00
|
|
|
#
|
2011-01-03 10:48:19 +01:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:08:38 +01:00
|
|
|
#
|
2008-08-08 02:10:13 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:08:38 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-02-28 01:53:29 +01:00
|
|
|
|
2007-01-16 00:08:38 +01:00
|
|
|
Name: dbus-1
|
2007-10-03 00:50:39 +02:00
|
|
|
Url: http://dbus.freedesktop.org/
|
- Update to 1.5.0
• D-Bus Specification v0.16
· Add support for path_namespace and arg0namespace in match rules
(fd.o #24317, #34870; Will Thompson, David Zeuthen, Simon McVittie)
· Make argNpath support object paths, not just object-path-like strings,
and document it better (fd.o #31818, Will Thompson)
• Let the bus daemon implement more than one interface (fd.o #33757,
Simon McVittie)
• Optimize _dbus_string_replace_len to reduce waste (fd.o #21261,
Roberto Guido)
• Require user intervention to compile with missing 64-bit support
(fd.o #35114, Simon McVittie)
• Add dbus_type_is_valid as public API (fd.o #20496, Simon McVittie)
• Raise UnknownObject instead of UnknownMethod for calls to methods on
paths that are not part of the object tree, and UnknownInterface for calls
to unknown interfaces in the bus daemon (fd.o #34527, Lennart Poettering)
- Update to 1.4.8
• Rename configure.in to configure.ac, and update it to modern conventions
(fd.o #32245; Javier Jardón, Simon McVittie)
• Correctly give XDG_DATA_HOME priority over XDG_DATA_DIRS (fd.o #34496,
Anders Kaseorg)
• Prevent X11 autolaunching if $DISPLAY is unset or empty, and add
--disable-x11-autolaunch configure option to prevent it altogether
in embedded environments (fd.o #19997, NB#219964; Simon McVittie)
• Install the documentation, and an index for Devhelp (fd.o #13495,
Debian #454142; Simon McVittie, Matthias Clasen)
• If checks are not disabled, check validity of string-like types and
booleans when sending them (fd.o #16338, NB#223152; Simon McVittie)
OBS-URL: https://build.opensuse.org/package/show/Base:System/dbus-1?expand=0&rev=41
2011-04-20 12:07:41 +02:00
|
|
|
License: GPL2+ or AFL 2.1
|
2007-01-16 00:08:38 +01:00
|
|
|
Group: System/Daemons
|
2007-02-15 18:16:44 +01:00
|
|
|
Summary: D-Bus Message Bus System
|
|
|
|
# COMMON1-BEGIN
|
2007-07-21 17:28:46 +02:00
|
|
|
BuildRequires: doxygen libexpat-devel libzio pkgconfig
|
2008-09-05 20:16:27 +02:00
|
|
|
BuildRequires: audit-devel
|
2011-04-20 13:18:02 +02:00
|
|
|
Version: 1.5.0
|
2011-03-09 14:25:56 +01:00
|
|
|
Release: 1
|
2007-10-03 00:50:39 +02:00
|
|
|
AutoReqProv: on
|
2008-11-02 15:38:31 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: dbus-1-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2007-12-13 20:08:48 +01:00
|
|
|
Source0: dbus-%{version}.tar.bz2
|
2007-01-16 00:08:38 +01:00
|
|
|
Source1: rc.boot.dbus
|
|
|
|
Source2: dbus-1.desktop
|
2008-09-05 20:16:27 +02:00
|
|
|
Source3: dbus_at_console.ck
|
2010-02-12 07:57:00 +01:00
|
|
|
Source4: baselibs.conf
|
2009-02-17 22:17:46 +01:00
|
|
|
Patch0: dbus-log-deny.patch
|
2008-12-15 12:25:37 +01:00
|
|
|
%if 0%{?suse_version} > 1100
|
|
|
|
%bcond_without selinux
|
|
|
|
%else
|
|
|
|
%bcond_with selinux
|
|
|
|
%endif
|
|
|
|
%if %{with selinux}
|
|
|
|
BuildRequires: libselinux-devel
|
|
|
|
%endif
|
2010-10-07 22:02:37 +02:00
|
|
|
BuildRequires: libcap-ng-devel
|
2007-01-16 00:08:38 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-02-15 18:16:44 +01:00
|
|
|
# COMMON1-END
|
2007-10-20 17:36:33 +02:00
|
|
|
PreReq: permissions /usr/sbin/groupadd /usr/sbin/useradd /sbin/insserv /etc/init.d/boot.localfs
|
2007-10-03 00:50:39 +02:00
|
|
|
|
2007-01-16 00:08:38 +01:00
|
|
|
%package -n dbus-1-devel
|
|
|
|
Summary: Developer package for D-Bus
|
2009-04-23 20:44:14 +02:00
|
|
|
Requires: %{name} = %{version} glibc-devel
|
2007-10-03 00:50:39 +02:00
|
|
|
AutoReqProv: on
|
2007-01-16 00:08:38 +01:00
|
|
|
Group: Development/Libraries/Other
|
2007-10-03 00:50:39 +02:00
|
|
|
|
2007-01-16 00:08:38 +01:00
|
|
|
%package -n dbus-1-devel-doc
|
|
|
|
Summary: Developer documentation package for D-Bus
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Group: Development/Libraries/Other
|
2007-10-03 00:50:39 +02:00
|
|
|
AutoReqProv: on
|
2010-02-12 07:57:00 +01:00
|
|
|
%if 0%{?suse_version} >= 1120
|
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
2007-01-16 00:08:38 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
D-Bus is a message bus system, a simple way for applications to talk to
|
|
|
|
one another. D-Bus supplies both a system daemon and a
|
|
|
|
per-user-login-session daemon. Also, the message bus is built on top of
|
|
|
|
a general one-to-one message passing framework, which can be used by
|
|
|
|
any two apps to communicate directly (without going through the message
|
|
|
|
bus daemon).
|
|
|
|
|
|
|
|
%description -n dbus-1-devel
|
|
|
|
D-Bus is a message bus system, a simple way for applications to talk to
|
|
|
|
one another. D-Bus supplies both a system daemon and a
|
|
|
|
per-user-login-session daemon. Also, the message bus is built on top of
|
|
|
|
a general one-to-one message passing framework, which can be used by
|
|
|
|
any two apps to communicate directly (without going through the message
|
|
|
|
bus daemon).
|
|
|
|
|
|
|
|
%description -n dbus-1-devel-doc
|
|
|
|
D-Bus is a message bus system, a simple way for applications to talk to
|
|
|
|
one another. D-BUS supplies both a system daemon and a
|
|
|
|
per-user-login-session daemon. Also, the message bus is built on top of
|
|
|
|
a general one-to-one message passing framework, which can be used by
|
|
|
|
any two apps to communicate directly (without going through the message
|
|
|
|
bus daemon).
|
|
|
|
|
|
|
|
%prep
|
2007-02-19 11:59:04 +01:00
|
|
|
# COMMON2-BEGIN
|
2007-01-16 00:08:38 +01:00
|
|
|
%setup -n dbus-%{version} -q
|
2009-01-29 23:01:42 +01:00
|
|
|
%patch0 -p1
|
2007-01-16 00:08:38 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -fi
|
|
|
|
export CFLAGS="${RPM_OPT_FLAGS} -fno-strict-aliasing -fPIC"
|
|
|
|
export CXXFLAGS="${RPM_OPT_FLAGS} -fno-strict-aliasing"
|
|
|
|
%if 0%{?suse_version} > 1000
|
|
|
|
export CFLAGS="$CFLAGS -fstack-protector"
|
|
|
|
export CXXFLAGS="$CXXFLAGS -fstack-protector"
|
2010-07-20 20:18:20 +02:00
|
|
|
export V=1
|
2007-01-16 00:08:38 +01:00
|
|
|
%endif
|
2009-07-17 18:13:29 +02:00
|
|
|
%configure \
|
|
|
|
--disable-static \
|
|
|
|
--with-pic \
|
|
|
|
--bindir=/bin \
|
|
|
|
--libexecdir=/lib/%{name} \
|
2007-07-27 15:33:15 +02:00
|
|
|
--libdir=/%{_lib} \
|
2007-01-16 00:08:38 +01:00
|
|
|
--with-init-scripts=suse \
|
2008-01-17 22:34:04 +01:00
|
|
|
--enable-inotify \
|
2007-01-16 00:08:38 +01:00
|
|
|
--enable-doxygen-docs \
|
2008-09-05 20:16:27 +02:00
|
|
|
%if %{with selinux}
|
|
|
|
--enable-selinux \
|
|
|
|
%endif
|
|
|
|
--enable-libaudit \
|
2010-07-20 20:18:20 +02:00
|
|
|
--with-console-auth-dir=/var/run/dbus/at_console/ \
|
|
|
|
--with-systemdsystemunitdir=/lib/systemd/system
|
|
|
|
make %{?_smp_mflags}
|
2007-01-16 00:08:38 +01:00
|
|
|
doxygen -u && doxygen
|
|
|
|
./cleanup-man-pages.sh
|
|
|
|
|
|
|
|
%install
|
2007-02-15 18:16:44 +01:00
|
|
|
# COMMON2-END
|
2007-01-16 00:08:38 +01:00
|
|
|
make DESTDIR=%{buildroot} install
|
|
|
|
mkdir -p %{buildroot}/etc/init.d
|
|
|
|
mkdir -p %{buildroot}/usr/sbin
|
|
|
|
install -m 755 %{SOURCE1} %{buildroot}/%{_sysconfdir}/init.d/dbus
|
|
|
|
ln -sf %{_sysconfdir}/init.d/dbus %{buildroot}/%{_sbindir}/rcdbus
|
|
|
|
install -d %{buildroot}/%{_localstatedir}/run/dbus
|
2007-02-15 18:16:44 +01:00
|
|
|
mkdir -p %{buildroot}/%{_datadir}/susehelp/meta/Development/Libraries/
|
|
|
|
install -m 0644 %SOURCE2 \
|
|
|
|
%{buildroot}/%{_datadir}/susehelp/meta/Development/Libraries/dbus-1.desktop
|
2007-07-27 15:33:15 +02:00
|
|
|
mkdir -p %{buildroot}/%{_libdir}/pkgconfig
|
2007-11-23 02:03:01 +01:00
|
|
|
mkdir -p %{buildroot}/%{_datadir}/dbus-1/system-services
|
2007-10-20 17:36:33 +02:00
|
|
|
mkdir -p %{buildroot}/%{_datadir}/dbus-1/interfaces
|
2007-07-27 15:33:15 +02:00
|
|
|
mkdir -p %{buildroot}/%{_libdir}/dbus-1.0/include/
|
|
|
|
mv -f %{buildroot}/%{_lib}/dbus-1.0/include/* %{buildroot}/%{_libdir}/dbus-1.0/include/
|
|
|
|
rm -f %{buildroot}/%{_lib}/*.la
|
2009-01-29 23:01:42 +01:00
|
|
|
# devel stuff must not be in /lib
|
2009-04-23 20:44:14 +02:00
|
|
|
%{__ln_s} -v /%{_lib}/$(readlink %{buildroot}/%{_lib}/lib%{name}.so) %{buildroot}%{_libdir}/lib%{name}.so
|
|
|
|
%{__rm} -v %{buildroot}/%{_lib}/lib%{name}.so
|
2009-01-29 23:01:42 +01:00
|
|
|
# fix up pkgconfig file
|
|
|
|
sed -e 's@^\(libdir=\).*@\1%{_libdir}@' %{buildroot}/%{_lib}/pkgconfig/dbus-1.pc > %{buildroot}/%{_libdir}/pkgconfig/dbus-1.pc
|
|
|
|
rm -f %{buildroot}/%{_lib}/pkgconfig/dbus-1.pc
|
|
|
|
#
|
2007-07-27 15:33:15 +02:00
|
|
|
rm -f %{buildroot}/bin/dbus-launch
|
2007-02-15 18:16:44 +01:00
|
|
|
rm -f %{buildroot}/%{_mandir}/man1/dbus-launch.1*
|
2007-08-10 19:17:47 +02:00
|
|
|
chmod a-x AUTHORS COPYING HACKING NEWS README doc/*.txt doc/file-boilerplate.c doc/TODO
|
2008-09-05 20:16:27 +02:00
|
|
|
#
|
|
|
|
install -d %{buildroot}%{_sysconfdir}/ConsoleKit/run-session.d
|
|
|
|
install -m 755 %{SOURCE3} %{buildroot}%{_sysconfdir}/ConsoleKit/run-session.d
|
2008-10-22 17:46:52 +02:00
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/lib/dbus
|
2008-12-15 12:25:37 +01:00
|
|
|
touch %{buildroot}/%{_localstatedir}/lib/dbus/machine-id
|
2007-01-16 00:08:38 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
|
|
|
|
%pre
|
|
|
|
/usr/sbin/groupadd -r messagebus 2> /dev/null || :
|
|
|
|
/usr/sbin/useradd -r -o -s /bin/false -c "User for D-Bus" -d /var/run/dbus -g messagebus messagebus 2> /dev/null || :
|
|
|
|
%if 0%{?suse_version:1}
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%{stop_on_removal dbus}
|
|
|
|
|
|
|
|
%post
|
2008-04-25 16:01:42 +02:00
|
|
|
/bin/dbus-uuidgen --ensure
|
2007-01-16 00:08:38 +01:00
|
|
|
%{insserv_force_if_yast dbus}
|
2008-04-25 16:01:42 +02:00
|
|
|
/sbin/ldconfig
|
2007-10-20 17:36:33 +02:00
|
|
|
%{run_permissions}
|
|
|
|
%verifyscript
|
2009-07-17 18:13:29 +02:00
|
|
|
%verify_permissions -e /lib/dbus-1/dbus-daemon-launch-helper
|
2007-01-16 00:08:38 +01:00
|
|
|
|
|
|
|
%postun
|
|
|
|
%{insserv_cleanup}
|
2008-10-22 17:46:52 +02:00
|
|
|
/sbin/ldconfig
|
2007-01-16 00:08:38 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%dir %{_datadir}/dbus-1
|
|
|
|
%dir %{_datadir}/dbus-1/services
|
2007-11-23 02:03:01 +01:00
|
|
|
%dir %{_datadir}/dbus-1/system-services
|
2007-10-03 00:50:39 +02:00
|
|
|
%dir %{_datadir}/dbus-1/interfaces
|
2008-10-22 17:46:52 +02:00
|
|
|
%dir %{_localstatedir}/lib/dbus
|
2009-07-17 18:13:29 +02:00
|
|
|
%dir /lib/dbus-1
|
2007-08-10 19:17:47 +02:00
|
|
|
%doc AUTHORS COPYING HACKING NEWS README
|
2010-07-20 20:18:20 +02:00
|
|
|
%dir %{_sysconfdir}/dbus-1
|
|
|
|
%dir %{_sysconfdir}/dbus-1/session.d
|
|
|
|
%dir %{_sysconfdir}/dbus-1/system.d
|
|
|
|
%config(noreplace) %{_sysconfdir}/dbus-1/session.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/dbus-1/system.conf
|
2007-01-16 00:08:38 +01:00
|
|
|
%{_sysconfdir}/init.d/dbus
|
2008-09-05 20:16:27 +02:00
|
|
|
%{_sysconfdir}/ConsoleKit
|
2007-07-27 15:33:15 +02:00
|
|
|
/bin/dbus-cleanup-sockets
|
|
|
|
/bin/dbus-daemon
|
|
|
|
/bin/dbus-monitor
|
|
|
|
/bin/dbus-send
|
|
|
|
/bin/dbus-uuidgen
|
2009-01-29 23:01:42 +01:00
|
|
|
/%{_lib}/libdbus-1.so.*
|
2007-01-16 00:08:38 +01:00
|
|
|
%{_mandir}/man1/dbus-cleanup-sockets.1.*
|
|
|
|
%{_mandir}/man1/dbus-daemon.1.*
|
|
|
|
%{_mandir}/man1/dbus-monitor.1.*
|
|
|
|
%{_mandir}/man1/dbus-send.1.*
|
|
|
|
%{_mandir}/man1/dbus-uuidgen.1.*
|
|
|
|
%{_sbindir}/rcdbus
|
2007-10-20 17:36:33 +02:00
|
|
|
# See doc/system-activation.txt in source tarball for the rationale
|
|
|
|
# behind these permissions
|
2011-04-20 13:18:02 +02:00
|
|
|
%attr(4750,root,messagebus) %verify(not mode) /lib/%{name}/dbus-daemon-launch-helper
|
2010-07-20 20:18:20 +02:00
|
|
|
%ghost %{_localstatedir}/run/dbus
|
|
|
|
%ghost %{_localstatedir}/lib/dbus/machine-id
|
2010-11-08 15:57:43 +01:00
|
|
|
%dir /lib/systemd
|
|
|
|
%dir /lib/systemd/system
|
2010-07-20 20:18:20 +02:00
|
|
|
/lib/systemd/system/dbus.service
|
|
|
|
/lib/systemd/system/dbus.socket
|
2010-11-08 15:57:43 +01:00
|
|
|
%dir /lib/systemd/system/dbus.target.wants
|
2010-07-20 20:18:20 +02:00
|
|
|
/lib/systemd/system/dbus.target.wants/dbus.socket
|
2010-11-08 15:57:43 +01:00
|
|
|
%dir /lib/systemd/system/multi-user.target.wants
|
2010-09-10 14:54:24 +02:00
|
|
|
/lib/systemd/system/multi-user.target.wants/dbus.service
|
2010-11-08 15:57:43 +01:00
|
|
|
%dir /lib/systemd/system/sockets.target.wants
|
2010-09-10 14:54:24 +02:00
|
|
|
/lib/systemd/system/sockets.target.wants/dbus.socket
|
2007-01-16 00:08:38 +01:00
|
|
|
|
|
|
|
%files -n dbus-1-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/*
|
2009-01-29 23:01:42 +01:00
|
|
|
%{_libdir}/libdbus-1.so
|
2008-12-15 12:25:37 +01:00
|
|
|
%dir %{_libdir}/dbus-1.0
|
2007-01-16 00:08:38 +01:00
|
|
|
%{_libdir}/dbus-1.0/include
|
|
|
|
%{_libdir}/pkgconfig/dbus-1.pc
|
|
|
|
|
|
|
|
%files -n dbus-1-devel-doc
|
|
|
|
%defattr(-,root,root)
|
2011-04-20 13:18:02 +02:00
|
|
|
/usr/share/doc/dbus/api
|
2007-01-16 00:08:38 +01:00
|
|
|
%doc doc/api/html
|
|
|
|
%doc doc/*.txt doc/file-boilerplate.c doc/TODO
|
|
|
|
%{_datadir}/susehelp
|
2007-11-23 02:03:01 +01:00
|
|
|
|
2011-04-20 13:18:02 +02:00
|
|
|
|
2007-02-19 11:59:04 +01:00
|
|
|
%changelog
|