2013-11-27 19:50:06 +01:00
|
|
|
#
|
|
|
|
# spec file for package dbus-1
|
|
|
|
#
|
2019-01-15 09:12:38 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2013-11-27 19:50:06 +01: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.
|
|
|
|
|
2018-12-19 20:15:58 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-11-27 19:50:06 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2015-05-28 10:59:53 +02:00
|
|
|
%define with_systemd 1
|
2013-11-27 19:50:06 +01:00
|
|
|
%define _name dbus
|
|
|
|
%define _libname libdbus-1-3
|
2017-01-30 01:18:46 +01:00
|
|
|
# Temporary code to disable service restart on update sflees@suse.de boo#1020301
|
|
|
|
%global _backup /etc/sysconfig/services.rpmbak.%{name}-%{version}-%{release}
|
2017-01-09 17:16:27 +01:00
|
|
|
%if 0%{?suse_version} <= 1320
|
|
|
|
%define _userunitdir %{_prefix}/lib/systemd/user
|
|
|
|
%endif
|
2014-09-30 10:24:18 +02:00
|
|
|
%bcond_without selinux
|
|
|
|
Name: dbus-1
|
Accepting request 630995 from home:simotek:branches:Base:System
- Update to 1.12.10
* Changelog for 1.12.10
• Prevent reading up to 3 bytes beyond the end of a truncated message.
This could in principle be an information leak or denial of service
on the system bus, but is not believed to be exploitable to crash
the system bus or leak interesting information in practice.
(fd.o #107332, Simon McVittie)
• Fix build with gcc 8 -Werror=cast-function-type
(fd.o #107349, Simon McVittie)
• Fix warning from gcc 8 about suspicious use of strncpy() when
populating struct sockaddr_un (fd.o #107350, Simon McVittie)
• Fix a minor memory leak when a DBusServer listens on a new address
(fd.o #107194, Simon McVittie)
• Fix an invalid NULL argument to rmdir() if a nonce-tcp DBusServer
runs out of memory (fd.o #107194, Simon McVittie)
• Don't use misleading errno-derived error names if getaddrinfo() or
getnameinfo() fails with a code other than EAI_SYSTEM
(fd.o #106395, Simon McVittie)
• Skip tests that require working TCP if we are in a container environment
where 127.0.0.1 cannot be resolved (fd.o #106812, Simon McVittie)
* Changelog for 1.12.8
• The Devhelp documentation index is now in version 2 format
(fd.o #106186, Simon McVittie)
• Give the dbus-daemon man page some scarier warnings about
<allow_anonymous/> and non-local TCP, which are insecure and should
not be used, particularly for the standard system and session buses
(fd.o #106004, Simon McVittie)
• Fix installation of Ducktype documentation with newer yelp-build
versions (fd.o #106171, Simon McVittie)
OBS-URL: https://build.opensuse.org/request/show/630995
OBS-URL: https://build.opensuse.org/package/show/Base:System/dbus-1?expand=0&rev=268
2018-08-27 03:01:00 +02:00
|
|
|
Version: 1.12.10
|
2016-12-06 11:00:23 +01:00
|
|
|
Release: 0
|
2014-09-30 10:24:18 +02:00
|
|
|
Summary: D-Bus Message Bus System
|
2018-04-09 02:51:22 +02:00
|
|
|
License: GPL-2.0-or-later OR AFL-2.1
|
2014-09-30 10:24:18 +02:00
|
|
|
Group: System/Daemons
|
|
|
|
Url: http://dbus.freedesktop.org/
|
2013-11-27 19:50:06 +01:00
|
|
|
Source0: http://dbus.freedesktop.org/releases/dbus/%{_name}-%{version}.tar.gz
|
|
|
|
Source2: dbus-1.desktop
|
|
|
|
Source3: dbus_at_console.ck
|
|
|
|
Source4: baselibs.conf
|
2017-06-19 13:30:43 +02:00
|
|
|
Patch0: feature-suse-log-deny.patch
|
2013-11-27 19:50:06 +01:00
|
|
|
# PATCH-FIX-OPENSUSE coolo@suse.de -- force a feature configure won't accept without x11 in buildrequires
|
2017-06-19 13:30:43 +02:00
|
|
|
Patch1: feature-suse-do-autolaunch.patch
|
2017-01-30 01:18:46 +01:00
|
|
|
# Patch-Feature-opensuse sflees@suse.de, users shouldn't be allowed to start / stop the dbus service.
|
2017-06-19 13:30:43 +02:00
|
|
|
Patch2: feature-suse-refuse-manual-start-stop.patch
|
2016-12-06 11:00:23 +01:00
|
|
|
BuildRequires: audit-devel
|
2017-11-17 06:00:45 +01:00
|
|
|
BuildRequires: autoconf-archive
|
2016-12-06 11:00:23 +01:00
|
|
|
BuildRequires: doxygen
|
2014-09-30 10:24:18 +02:00
|
|
|
BuildRequires: libcap-ng-devel
|
2017-11-17 06:00:45 +01:00
|
|
|
BuildRequires: libexpat-devel >= 2.1.0
|
2014-09-30 10:24:18 +02:00
|
|
|
BuildRequires: libtool
|
2016-12-08 16:23:47 +01:00
|
|
|
BuildRequires: permissions
|
2017-07-15 02:46:53 +02:00
|
|
|
BuildRequires: pkg-config
|
2016-12-06 11:00:23 +01:00
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
BuildRequires: xmlto
|
2016-12-09 12:02:34 +01:00
|
|
|
BuildRequires: pkgconfig(libsystemd) >= 209
|
2016-12-06 11:00:23 +01:00
|
|
|
Requires(post): %{_libname} = %{version}
|
|
|
|
Requires(post): update-alternatives
|
2016-12-08 16:07:51 +01:00
|
|
|
Requires(pre): permissions
|
2016-12-08 16:32:57 +01:00
|
|
|
Requires(pre): shadow
|
2016-12-06 11:00:23 +01:00
|
|
|
Requires(preun): update-alternatives
|
|
|
|
Provides: dbus-launch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-11-27 19:50:06 +01:00
|
|
|
%if %{with selinux}
|
|
|
|
BuildRequires: libselinux-devel
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%package -n %{_libname}
|
|
|
|
Summary: Library package for D-Bus
|
|
|
|
Group: Development/Libraries/Other
|
|
|
|
|
2016-12-06 11:00:23 +01:00
|
|
|
%package devel
|
2013-11-27 19:50:06 +01:00
|
|
|
Summary: Developer package for D-Bus
|
|
|
|
Group: Development/Libraries/Other
|
|
|
|
Requires: %{_libname} = %{version}
|
2016-12-06 11:00:23 +01:00
|
|
|
Requires: dbus-1 = %{version}
|
2013-11-27 19:50:06 +01:00
|
|
|
Requires: glibc-devel
|
|
|
|
|
2016-12-06 11:00:23 +01:00
|
|
|
%package devel-doc
|
|
|
|
Summary: Developer documentation package for D-Bus
|
|
|
|
Group: Development/Libraries/Other
|
|
|
|
Requires: dbus-1 = %{version}
|
|
|
|
BuildArch: noarch
|
2016-11-22 09:31:31 +01:00
|
|
|
|
2013-11-27 19:50:06 +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 %{_libname}
|
|
|
|
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).
|
|
|
|
|
2016-12-06 11:00:23 +01:00
|
|
|
%description devel
|
2013-11-27 19:50:06 +01:00
|
|
|
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).
|
|
|
|
|
2016-12-06 11:00:23 +01:00
|
|
|
%description 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).
|
2016-11-22 09:31:31 +01:00
|
|
|
|
2013-11-27 19:50:06 +01:00
|
|
|
%prep
|
2014-09-30 10:24:18 +02:00
|
|
|
%setup -q -n %{_name}-%{version}
|
2017-06-19 13:30:43 +02:00
|
|
|
%autopatch -p1
|
2013-11-27 19:50:06 +01:00
|
|
|
|
|
|
|
%build
|
2014-07-21 13:52:56 +02:00
|
|
|
echo 'HTML_TIMESTAMP=NO' >> Doxyfile.in
|
2013-11-27 19:50:06 +01:00
|
|
|
autoreconf -fi
|
|
|
|
# We use -fpie/-pie for the whole build; this is the recommended way to harden
|
|
|
|
# the build upstream, see discussion in fdo#46570
|
2014-09-30 10:24:18 +02:00
|
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing -fPIC -fpie"
|
2013-11-27 19:50:06 +01:00
|
|
|
export LDFLAGS="-pie"
|
2014-09-30 10:24:18 +02:00
|
|
|
export CXXFLAGS="%{optflags} -fno-strict-aliasing"
|
2013-11-27 19:50:06 +01:00
|
|
|
export V=1
|
2015-09-16 15:48:02 +02:00
|
|
|
# is_opensuse was first defined after openSUSE 13.2
|
2013-11-27 19:50:06 +01:00
|
|
|
%configure \
|
2016-12-06 11:00:23 +01:00
|
|
|
--disable-static \
|
2017-11-23 11:15:57 +01:00
|
|
|
--libexecdir=%{_libexecdir}/dbus-1 \
|
2016-12-06 11:00:23 +01:00
|
|
|
--enable-inotify \
|
|
|
|
--enable-doxygen-docs \
|
2013-11-27 19:50:06 +01:00
|
|
|
%if %{with selinux}
|
2016-12-06 11:00:23 +01:00
|
|
|
--enable-selinux \
|
2013-11-27 19:50:06 +01:00
|
|
|
%endif
|
2016-12-06 11:00:23 +01:00
|
|
|
--enable-systemd \
|
2017-01-09 15:33:05 +01:00
|
|
|
--enable-user-session \
|
2016-12-06 11:00:23 +01:00
|
|
|
--enable-libaudit \
|
2015-09-16 17:29:00 +02:00
|
|
|
%if 0%{?suse_version} <= 1315 && !0%{?is_opensuse}
|
2016-12-06 11:00:23 +01:00
|
|
|
--with-console-auth-dir=%{_localstatedir}/run/dbus/at_console/ \
|
|
|
|
--with-system-pid-file=%{_localstatedir}/run/dbus/pid \
|
|
|
|
--with-system-socket=%{_localstatedir}/run/dbus/system_bus_socket \
|
2015-03-26 12:13:44 +01:00
|
|
|
%else
|
2016-12-06 11:00:23 +01:00
|
|
|
--with-console-auth-dir=/run/dbus/at_console/ \
|
|
|
|
--with-system-pid-file=/run/dbus/pid \
|
|
|
|
--with-system-socket=/run/dbus/system_bus_socket \
|
2015-03-26 12:13:44 +01:00
|
|
|
%endif
|
2016-12-06 11:00:23 +01:00
|
|
|
--with-systemdsystemunitdir=%{_unitdir} \
|
2017-01-09 15:35:49 +01:00
|
|
|
--with-systemduserunitdir=%{_userunitdir} \
|
2017-01-09 15:33:05 +01:00
|
|
|
--without-x
|
2013-11-27 19:50:06 +01:00
|
|
|
make %{?_smp_mflags}
|
2014-09-30 10:24:18 +02:00
|
|
|
|
2013-11-27 19:50:06 +01:00
|
|
|
doxygen -u && doxygen
|
|
|
|
./cleanup-man-pages.sh
|
|
|
|
|
2017-11-17 06:00:45 +01:00
|
|
|
%check
|
|
|
|
make check
|
|
|
|
|
2013-11-27 19:50:06 +01:00
|
|
|
%install
|
2017-01-09 17:16:27 +01:00
|
|
|
%make_install
|
2013-11-27 19:50:06 +01:00
|
|
|
|
2016-12-06 11:00:23 +01:00
|
|
|
mkdir -p %{buildroot}/lib/dbus-1/system-services
|
2016-11-22 09:31:31 +01:00
|
|
|
# dbus-launch, too
|
2017-06-19 13:30:43 +02:00
|
|
|
mv -f %{buildroot}/%{_bindir}/dbus-launch %{buildroot}%{_bindir}/dbus-launch.nox11
|
2016-12-06 11:00:23 +01:00
|
|
|
mkdir -p %{buildroot}%{_sbindir}
|
|
|
|
ln -sf %{_sbindir}/service %{buildroot}/%{_sbindir}/rcdbus
|
|
|
|
%if 0%{?suse_version} <= 1315 && !0%{?is_opensuse}
|
|
|
|
install -d %{buildroot}%{_localstatedir}/run/dbus
|
|
|
|
%else
|
|
|
|
install -d %{buildroot}/run/dbus
|
|
|
|
%endif
|
|
|
|
mkdir -p %{buildroot}/%{_datadir}/susehelp/meta/Development/Libraries/
|
|
|
|
install -m 0644 %{SOURCE2} \
|
|
|
|
%{buildroot}/%{_datadir}/susehelp/meta/Development/Libraries/dbus-1.desktop
|
|
|
|
mkdir -p %{buildroot}/%{_libdir}/pkgconfig
|
|
|
|
mkdir -p %{buildroot}/lib/dbus-1/system-services
|
|
|
|
mkdir -p %{buildroot}/%{_datadir}/dbus-1/interfaces
|
2013-11-27 19:50:06 +01:00
|
|
|
|
2014-09-30 10:24:18 +02:00
|
|
|
for i in %{_sysconfdir}/dbus-1/session.d %{_sysconfdir}/dbus-1/system.d \
|
|
|
|
%{_datadir}/dbus-1/interfaces %{_datadir}/dbus-1/services %{_datadir}/dbus-1/system-services; do
|
2013-11-27 19:50:06 +01:00
|
|
|
mkdir -p %{buildroot}$i
|
|
|
|
done
|
|
|
|
|
2016-12-06 11:00:23 +01:00
|
|
|
install -d %{buildroot}%{_sysconfdir}/ConsoleKit/run-session.d
|
|
|
|
install -m 755 %{SOURCE3} %{buildroot}%{_sysconfdir}/ConsoleKit/run-session.d
|
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/lib/dbus
|
|
|
|
|
2017-11-17 06:00:45 +01:00
|
|
|
# don't ship executables in doc
|
|
|
|
chmod -x %{buildroot}%{_datadir}/doc/dbus/examples/GetAllMatchRules.py
|
|
|
|
|
2017-06-19 13:30:43 +02:00
|
|
|
# Link the binaries that were in /bin back to /bin for compat (maybe remove for SLE-16)
|
2016-12-06 11:00:23 +01:00
|
|
|
# Currently required to make upower work together with systemd
|
2017-06-19 13:30:43 +02:00
|
|
|
mkdir -p %{buildroot}/bin
|
|
|
|
|
|
|
|
ln -sf /%{_bindir}/dbus-cleanup-sockets %{buildroot}/bin/dbus-cleanup-sockets
|
|
|
|
ln -sf /%{_bindir}/dbus-daemon %{buildroot}/bin/dbus-daemon
|
|
|
|
ln -sf /%{_bindir}/dbus-monitor %{buildroot}/bin/dbus-monitor
|
|
|
|
ln -sf /%{_bindir}/dbus-send %{buildroot}/bin/dbus-send
|
|
|
|
ln -sf /%{_bindir}/dbus-test-tool %{buildroot}/bin/dbus-test-tool
|
|
|
|
ln -sf /%{_bindir}/dbus-update-activation-environment %{buildroot}/bin/dbus-update-activation-environment
|
|
|
|
ln -sf /%{_bindir}/dbus-uuidgen %{buildroot}/bin/dbus-uuidgen
|
2016-12-06 11:00:23 +01:00
|
|
|
|
2016-11-24 09:29:21 +01:00
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
|
|
|
ln -s -f %{_sysconfdir}/alternatives/dbus-launch %{buildroot}%{_bindir}/dbus-launch
|
|
|
|
|
2016-12-06 11:00:23 +01:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
|
|
|
|
%verifyscript -n dbus-1
|
2017-11-23 11:04:56 +01:00
|
|
|
%verify_permissions -e %{_libexecdir}/dbus-1/dbus-daemon-launch-helper
|
2016-12-06 11:00:23 +01:00
|
|
|
|
2013-11-27 19:50:06 +01:00
|
|
|
%post -n %{_libname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{_libname} -p /sbin/ldconfig
|
2016-12-06 11:00:23 +01:00
|
|
|
%pre
|
2017-12-11 13:11:51 +01:00
|
|
|
getent group messagebus >/dev/null || \
|
2016-12-08 11:10:38 +01:00
|
|
|
%{_sbindir}/groupadd -r messagebus
|
2016-12-06 11:00:23 +01:00
|
|
|
%if 0%{?suse_version} <= 1315 && !0%{?is_opensuse}
|
2017-12-11 13:11:51 +01:00
|
|
|
getent passwd messagebus >/dev/null || \
|
2017-09-16 02:45:31 +02:00
|
|
|
%{_sbindir}/useradd -r -s /usr/bin/false -c "User for D-Bus" -d %{_localstatedir}/run/dbus -g messagebus messagebus
|
2016-12-06 11:00:23 +01:00
|
|
|
%else
|
2017-12-11 13:11:51 +01:00
|
|
|
getent passwd messagebus >/dev/null || \
|
2017-09-16 02:45:31 +02:00
|
|
|
%{_sbindir}/useradd -r -s /usr/bin/false -c "User for D-Bus" -d /run/dbus -g messagebus messagebus
|
2016-12-06 11:00:23 +01:00
|
|
|
%endif
|
2016-12-08 11:10:38 +01:00
|
|
|
%service_add_pre dbus.service dbus.socket
|
2016-12-06 11:00:23 +01:00
|
|
|
|
2017-01-30 01:18:46 +01:00
|
|
|
# Lines below are temporary code to disable service restart on update sflees@suse.de boo#1020301
|
|
|
|
# These are potentially not needed on non tumbleweed systems where updates while running a desktop are not supported.
|
|
|
|
# This seems likely to only effect the last version of tumbleweed where the service files were added and can probably be
|
|
|
|
# removed reletavly soon.
|
|
|
|
|
|
|
|
# Get the current version
|
2018-12-19 20:15:58 +01:00
|
|
|
if [ "$FIRST_ARG" -gt 1 ]; then
|
2018-12-19 14:13:41 +01:00
|
|
|
CURRENT_VER=$(/usr/bin/dbus-daemon --version 2>/dev/null| sed 's/^.*[^0-9]\([0-9]*\.[0-9]*\.[0-9]*\).*$/\1/' | head -1)
|
2017-01-30 01:18:46 +01:00
|
|
|
|
Accepting request 630995 from home:simotek:branches:Base:System
- Update to 1.12.10
* Changelog for 1.12.10
• Prevent reading up to 3 bytes beyond the end of a truncated message.
This could in principle be an information leak or denial of service
on the system bus, but is not believed to be exploitable to crash
the system bus or leak interesting information in practice.
(fd.o #107332, Simon McVittie)
• Fix build with gcc 8 -Werror=cast-function-type
(fd.o #107349, Simon McVittie)
• Fix warning from gcc 8 about suspicious use of strncpy() when
populating struct sockaddr_un (fd.o #107350, Simon McVittie)
• Fix a minor memory leak when a DBusServer listens on a new address
(fd.o #107194, Simon McVittie)
• Fix an invalid NULL argument to rmdir() if a nonce-tcp DBusServer
runs out of memory (fd.o #107194, Simon McVittie)
• Don't use misleading errno-derived error names if getaddrinfo() or
getnameinfo() fails with a code other than EAI_SYSTEM
(fd.o #106395, Simon McVittie)
• Skip tests that require working TCP if we are in a container environment
where 127.0.0.1 cannot be resolved (fd.o #106812, Simon McVittie)
* Changelog for 1.12.8
• The Devhelp documentation index is now in version 2 format
(fd.o #106186, Simon McVittie)
• Give the dbus-daemon man page some scarier warnings about
<allow_anonymous/> and non-local TCP, which are insecure and should
not be used, particularly for the standard system and session buses
(fd.o #106004, Simon McVittie)
• Fix installation of Ducktype documentation with newer yelp-build
versions (fd.o #106171, Simon McVittie)
OBS-URL: https://build.opensuse.org/request/show/630995
OBS-URL: https://build.opensuse.org/package/show/Base:System/dbus-1?expand=0&rev=268
2018-08-27 03:01:00 +02:00
|
|
|
# If the current version is or less then 1.10.2 where this change was added then migration needs to be run
|
2017-01-30 01:18:46 +01:00
|
|
|
# The following line will return 1.10.2 if its newer then the current version
|
2018-12-19 14:13:41 +01:00
|
|
|
TEST_VER=$(printf "1.10.2\n$CURRENT_VER" | sort -Vr | head -1)
|
|
|
|
|
2018-12-19 20:15:58 +01:00
|
|
|
if [ "$TEST_VER" = "1.10.12" ]; then
|
|
|
|
if [ -f /etc/sysconfig/services ]; then
|
2018-12-19 14:13:41 +01:00
|
|
|
cp -a /etc/sysconfig/services %{_backup}
|
|
|
|
else
|
|
|
|
touch %{_backup}
|
|
|
|
fi
|
|
|
|
cat >>/etc/sysconfig/services <<EOF
|
2017-01-30 01:18:46 +01:00
|
|
|
# temporarily added by rpm update to avoid dbus service restart
|
|
|
|
# backup saved in %{_backup}
|
|
|
|
DISABLE_RESTART_ON_UPDATE="yes"
|
|
|
|
EOF
|
2018-12-19 14:13:41 +01:00
|
|
|
fi
|
2017-01-30 01:18:46 +01:00
|
|
|
fi
|
|
|
|
|
2016-12-06 11:00:23 +01:00
|
|
|
%post
|
|
|
|
if [ -e %{_localstatedir}/lib/dbus/machine-id -a -e %{_sysconfdir}/machine-id ]; then
|
|
|
|
cmp -s %{_localstatedir}/lib/dbus/machine-id %{_sysconfdir}/machine-id > /dev/null
|
|
|
|
if [ $? ]; then
|
|
|
|
rm -f %{_localstatedir}/lib/dbus/machine-id
|
|
|
|
fi
|
|
|
|
fi
|
2017-09-16 02:45:31 +02:00
|
|
|
if [ ! -L %{_localstatedir}/lib/dbus/machine-id ]; then
|
|
|
|
mkdir -p %{_localstatedir}/lib/dbus/
|
|
|
|
ln -s %{_sysconfdir}/machine-id %{_localstatedir}/lib/dbus/machine-id
|
2016-12-06 11:00:23 +01:00
|
|
|
fi
|
2017-09-16 02:45:31 +02:00
|
|
|
|
2016-12-06 11:00:23 +01:00
|
|
|
/sbin/ldconfig
|
2017-11-23 11:04:56 +01:00
|
|
|
%set_permissions %{_libexecdir}/dbus-1/dbus-daemon-launch-helper
|
2016-11-22 09:31:31 +01:00
|
|
|
%{_sbindir}/update-alternatives --install %{_bindir}/dbus-launch dbus-launch %{_bindir}/dbus-launch.nox11 10
|
2016-12-08 11:10:38 +01:00
|
|
|
%service_add_post dbus.service dbus.socket
|
2017-11-17 06:00:45 +01:00
|
|
|
%tmpfiles_create %_tmpfilesdir/dbus.conf
|
2016-11-22 09:31:31 +01:00
|
|
|
|
2016-12-06 11:00:23 +01:00
|
|
|
%preun
|
2016-11-24 09:29:21 +01:00
|
|
|
if [ "$1" = 0 ] ; then
|
|
|
|
%{_sbindir}/update-alternatives --remove dbus-launch %{_bindir}/dbus-launch.nox11
|
|
|
|
fi
|
2016-12-08 11:10:38 +01:00
|
|
|
%service_del_preun dbus.service dbus.socket
|
2016-12-06 11:00:23 +01:00
|
|
|
|
|
|
|
%postun
|
2017-01-30 01:18:46 +01:00
|
|
|
# immediately restarting the dbus service causes issues, As such wait for the next reboot to restart
|
|
|
|
export DISABLE_RESTART_ON_UPDATE=yes
|
2016-12-08 11:10:38 +01:00
|
|
|
%service_del_postun dbus.service dbus.socket
|
2016-12-06 11:00:23 +01:00
|
|
|
|
2017-01-30 01:18:46 +01:00
|
|
|
%posttrans
|
|
|
|
# See comments in pre
|
2018-12-19 20:15:58 +01:00
|
|
|
if [ -s "%{_backup}" ]; then
|
2017-01-30 01:18:46 +01:00
|
|
|
mv -f %{_backup} /etc/sysconfig/services
|
2018-12-19 20:15:58 +01:00
|
|
|
elif [ -e "%{_backup}" ]; then
|
2017-01-30 01:18:46 +01:00
|
|
|
rm -f /etc/sysconfig/services
|
|
|
|
fi
|
|
|
|
|
2016-12-06 11:00:23 +01:00
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%dir %{_localstatedir}/lib/dbus
|
|
|
|
%dir /lib/dbus-1
|
|
|
|
%dir /lib/dbus-1/system-services
|
2017-12-11 13:11:51 +01:00
|
|
|
%dir %{_libexecdir}/dbus-1/
|
2019-01-15 09:12:38 +01:00
|
|
|
%license COPYING
|
|
|
|
%doc AUTHORS HACKING NEWS README
|
2016-12-06 11:00:23 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/dbus-1/session.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/dbus-1/system.conf
|
|
|
|
%{_datadir}/dbus-1/session.conf
|
|
|
|
%{_datadir}/dbus-1/system.conf
|
|
|
|
%{_sysconfdir}/ConsoleKit
|
2017-06-19 13:30:43 +02:00
|
|
|
%{_bindir}/dbus-cleanup-sockets
|
|
|
|
%{_bindir}/dbus-daemon
|
|
|
|
%{_bindir}/dbus-monitor
|
|
|
|
%{_bindir}/dbus-run-session
|
|
|
|
%{_bindir}/dbus-send
|
|
|
|
%{_bindir}/dbus-test-tool
|
|
|
|
%{_bindir}/dbus-update-activation-environment
|
|
|
|
%{_bindir}/dbus-uuidgen
|
2016-12-06 11:00:23 +01:00
|
|
|
/bin/dbus-cleanup-sockets
|
|
|
|
/bin/dbus-daemon
|
|
|
|
/bin/dbus-monitor
|
|
|
|
/bin/dbus-send
|
|
|
|
/bin/dbus-test-tool
|
|
|
|
/bin/dbus-update-activation-environment
|
|
|
|
/bin/dbus-uuidgen
|
|
|
|
%{_mandir}/man1/dbus-cleanup-sockets.1*
|
|
|
|
%{_mandir}/man1/dbus-daemon.1*
|
|
|
|
%{_mandir}/man1/dbus-monitor.1*
|
|
|
|
%{_mandir}/man1/dbus-run-session.1*
|
|
|
|
%{_mandir}/man1/dbus-send.1*
|
|
|
|
%{_mandir}/man1/dbus-test-tool.1*
|
|
|
|
%{_mandir}/man1/dbus-update-activation-environment.1*
|
|
|
|
%{_mandir}/man1/dbus-uuidgen.1*
|
|
|
|
%{_mandir}/man1/dbus-launch.1*
|
|
|
|
%{_sbindir}/rcdbus
|
|
|
|
# See doc/system-activation.txt in source tarball for the rationale
|
|
|
|
# behind these permissions
|
2017-11-23 11:04:56 +01:00
|
|
|
%attr(4750,root,messagebus) %verify(not mode) %{_libexecdir}/dbus-1/dbus-daemon-launch-helper
|
2016-12-06 11:00:23 +01:00
|
|
|
%if 0%{?suse_version} <= 1315 && !0%{?is_opensuse}
|
|
|
|
%ghost %{_localstatedir}/run/dbus
|
|
|
|
%else
|
|
|
|
%ghost /run/dbus
|
|
|
|
%endif
|
|
|
|
%ghost %{_localstatedir}/lib/dbus/machine-id
|
2017-11-17 06:00:45 +01:00
|
|
|
%{_libexecdir}/sysusers.d/dbus.conf
|
|
|
|
%{_libexecdir}/tmpfiles.d/dbus.conf
|
2016-12-06 11:00:23 +01:00
|
|
|
%{_unitdir}/dbus.service
|
|
|
|
%{_unitdir}/dbus.socket
|
2017-11-17 06:00:45 +01:00
|
|
|
# %dir %{_unitdir}/dbus.target.wants
|
|
|
|
# %{_unitdir}/dbus.target.wants/dbus.socket
|
2016-12-06 11:00:23 +01:00
|
|
|
%dir %{_unitdir}/multi-user.target.wants
|
|
|
|
%{_unitdir}/multi-user.target.wants/dbus.service
|
|
|
|
%dir %{_unitdir}/sockets.target.wants
|
|
|
|
%{_unitdir}/sockets.target.wants/dbus.socket
|
2017-01-09 15:35:49 +01:00
|
|
|
%{_userunitdir}/dbus.service
|
|
|
|
%{_userunitdir}/dbus.socket
|
|
|
|
%dir %{_userunitdir}/sockets.target.wants
|
|
|
|
%{_userunitdir}/sockets.target.wants/dbus.socket
|
2016-12-06 11:00:23 +01:00
|
|
|
%ghost %{_sysconfdir}/alternatives/dbus-launch
|
|
|
|
%{_bindir}/dbus-launch.nox11
|
|
|
|
%{_bindir}/dbus-launch
|
2016-11-22 09:31:31 +01:00
|
|
|
|
2013-11-27 19:50:06 +01:00
|
|
|
%files -n %{_libname}
|
|
|
|
%defattr(-, root, root)
|
2017-07-15 02:46:53 +02:00
|
|
|
%{_libdir}/libdbus-1.so.*
|
2013-11-27 19:50:06 +01:00
|
|
|
# Own those directories in the library instead of dbus-1, since dbus users
|
|
|
|
# often ship files there
|
|
|
|
%dir %{_sysconfdir}/dbus-1
|
|
|
|
%dir %{_sysconfdir}/dbus-1/session.d
|
|
|
|
%dir %{_sysconfdir}/dbus-1/system.d
|
|
|
|
%dir %{_datadir}/dbus-1
|
|
|
|
%dir %{_datadir}/dbus-1/interfaces
|
|
|
|
%dir %{_datadir}/dbus-1/services
|
|
|
|
%dir %{_datadir}/dbus-1/system-services
|
|
|
|
|
2016-12-06 11:00:23 +01:00
|
|
|
%files devel
|
2013-11-27 19:50:06 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/libdbus-1.so
|
|
|
|
%dir %{_libdir}/dbus-1.0
|
|
|
|
%{_libdir}/dbus-1.0/include
|
|
|
|
%{_libdir}/pkgconfig/dbus-1.pc
|
2017-11-17 06:00:45 +01:00
|
|
|
%{_libdir}/cmake/
|
|
|
|
%{_datadir}/xml/dbus-1
|
2013-11-27 19:50:06 +01:00
|
|
|
|
2016-12-06 11:00:23 +01:00
|
|
|
%files devel-doc
|
2016-11-22 09:31:31 +01:00
|
|
|
%defattr(-,root,root)
|
2016-12-06 11:00:23 +01:00
|
|
|
%dir %{_datadir}/doc/dbus
|
|
|
|
%dir %{_datadir}/doc/dbus/examples
|
|
|
|
%{_datadir}/doc/dbus/api/
|
|
|
|
%doc %{_datadir}/doc/dbus/dbus-faq.html
|
|
|
|
%doc %{_datadir}/doc/dbus/dbus-specification.html
|
|
|
|
%doc %{_datadir}/doc/dbus/dbus-test-plan.html
|
|
|
|
%doc %{_datadir}/doc/dbus/dbus-tutorial.html
|
|
|
|
%doc %{_datadir}/doc/dbus/diagram.*
|
|
|
|
%doc %{_datadir}/doc/dbus/system-activation.txt
|
|
|
|
%doc %{_datadir}/doc/dbus/dbus-cleanup-sockets.1.html
|
|
|
|
%doc %{_datadir}/doc/dbus/dbus-daemon.1.html
|
|
|
|
%doc %{_datadir}/doc/dbus/dbus-launch.1.html
|
|
|
|
%doc %{_datadir}/doc/dbus/dbus-run-session.1.html
|
|
|
|
%doc %{_datadir}/doc/dbus/dbus-monitor.1.html
|
|
|
|
%doc %{_datadir}/doc/dbus/dbus-send.1.html
|
|
|
|
%doc %{_datadir}/doc/dbus/dbus-uuidgen.1.html
|
Accepting request 630995 from home:simotek:branches:Base:System
- Update to 1.12.10
* Changelog for 1.12.10
• Prevent reading up to 3 bytes beyond the end of a truncated message.
This could in principle be an information leak or denial of service
on the system bus, but is not believed to be exploitable to crash
the system bus or leak interesting information in practice.
(fd.o #107332, Simon McVittie)
• Fix build with gcc 8 -Werror=cast-function-type
(fd.o #107349, Simon McVittie)
• Fix warning from gcc 8 about suspicious use of strncpy() when
populating struct sockaddr_un (fd.o #107350, Simon McVittie)
• Fix a minor memory leak when a DBusServer listens on a new address
(fd.o #107194, Simon McVittie)
• Fix an invalid NULL argument to rmdir() if a nonce-tcp DBusServer
runs out of memory (fd.o #107194, Simon McVittie)
• Don't use misleading errno-derived error names if getaddrinfo() or
getnameinfo() fails with a code other than EAI_SYSTEM
(fd.o #106395, Simon McVittie)
• Skip tests that require working TCP if we are in a container environment
where 127.0.0.1 cannot be resolved (fd.o #106812, Simon McVittie)
* Changelog for 1.12.8
• The Devhelp documentation index is now in version 2 format
(fd.o #106186, Simon McVittie)
• Give the dbus-daemon man page some scarier warnings about
<allow_anonymous/> and non-local TCP, which are insecure and should
not be used, particularly for the standard system and session buses
(fd.o #106004, Simon McVittie)
• Fix installation of Ducktype documentation with newer yelp-build
versions (fd.o #106171, Simon McVittie)
OBS-URL: https://build.opensuse.org/request/show/630995
OBS-URL: https://build.opensuse.org/package/show/Base:System/dbus-1?expand=0&rev=268
2018-08-27 03:01:00 +02:00
|
|
|
%doc %{_datadir}/doc/dbus/dbus.devhelp2
|
2016-12-06 11:00:23 +01:00
|
|
|
%doc %{_datadir}/doc/dbus/dbus-test-tool.1.html
|
|
|
|
%doc %{_datadir}/doc/dbus/dbus-update-activation-environment.1.html
|
|
|
|
%doc %{_datadir}/doc/dbus/examples/GetAllMatchRules.py
|
|
|
|
%doc %{_datadir}/doc/dbus/examples/example-session-disable-stats.conf
|
|
|
|
%doc %{_datadir}/doc/dbus/examples/example-system-enable-stats.conf
|
|
|
|
%doc doc/*.txt doc/file-boilerplate.c doc/TODO
|
|
|
|
%{_datadir}/susehelp
|
2016-11-22 09:31:31 +01:00
|
|
|
|
2013-11-27 19:50:06 +01:00
|
|
|
%changelog
|