2013-11-27 19:50:06 +01:00
|
|
|
#
|
|
|
|
# spec file for package dbus-1-x11
|
|
|
|
#
|
2019-11-21 04:04:57 +01:00
|
|
|
# Copyright (c) 2019 SUSE LLC.
|
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
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define _name dbus
|
2014-01-10 17:58:41 +01:00
|
|
|
%define _libname libdbus-1-3
|
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-x11
|
Accepting request 670264 from home:scarabeus_iv:branches:Base:System
- Update to 1.12.12:
* Reference the freedesktop.org Code of Conduct (Simon McVittie)
* Stop the dbus-daemon leaking memory (an error message) if delivering
the message that triggered auto-activation is forbidden. This is
technically a denial of service because the dbus-daemon will
run out of memory eventually, but it's a very slow and noisy one,
because all the rejected messages are also very likely to have
been logged to the system log, and its scope is typically limited by
the finite number of activatable services available.
(dbus#234, Simon McVittie)
* Remove __attribute__((__malloc__)) attribute on dbus_realloc(),
which does not meet the criteria for that attribute in gcc 4.7+,
potentially leading to miscompilation (fd.o #107741, Simon McVittie)
* Fix some small O(1) memory leaks (fd.o #107320, Simon McVittie)
* Fix printf formats for pointer-sized integers on 64-bit Windows
(fd.o #105662, Ralf Habacker)
* Always use select()-based poll() emulation on Darwin-based OSs
(macOS, etc.) and on Interix, similar to what libcurl does
(dbus#232, dbus!19; Simon McVittie)
* Extend a test timeout to avoid spurious failures in CI
(dbus!26, Simon McVittie)
- Add patch to build with new autoconf-archive, there is now
bash variable AX_BLA that gets detected and autoreconf aborts;
thus rather just disable the pointless check:
* dbus-no-ax-check.patch
- Add patch to fix codecoverage m4 macro changes in autoconf-archive:
* dbus-new-autoconf-archive.patch
- Update to 1.12.12:
OBS-URL: https://build.opensuse.org/request/show/670264
OBS-URL: https://build.opensuse.org/package/show/Base:System/dbus-1?expand=0&rev=277
2019-01-31 10:20:00 +01:00
|
|
|
Version: 1.12.12
|
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-03-14 23:47:17 +01:00
|
|
|
License: GPL-2.0-or-later OR AFL-2.1
|
2014-09-30 10:24:18 +02:00
|
|
|
Group: System/Daemons
|
2019-05-03 17:57:18 +02:00
|
|
|
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
|
|
|
|
# Patch-Feature-opensuse sflees@suse.de, users shouldn't be allowed to start / stop the dbus service.
|
|
|
|
Patch2: feature-suse-refuse-manual-start-stop.patch
|
Accepting request 670264 from home:scarabeus_iv:branches:Base:System
- Update to 1.12.12:
* Reference the freedesktop.org Code of Conduct (Simon McVittie)
* Stop the dbus-daemon leaking memory (an error message) if delivering
the message that triggered auto-activation is forbidden. This is
technically a denial of service because the dbus-daemon will
run out of memory eventually, but it's a very slow and noisy one,
because all the rejected messages are also very likely to have
been logged to the system log, and its scope is typically limited by
the finite number of activatable services available.
(dbus#234, Simon McVittie)
* Remove __attribute__((__malloc__)) attribute on dbus_realloc(),
which does not meet the criteria for that attribute in gcc 4.7+,
potentially leading to miscompilation (fd.o #107741, Simon McVittie)
* Fix some small O(1) memory leaks (fd.o #107320, Simon McVittie)
* Fix printf formats for pointer-sized integers on 64-bit Windows
(fd.o #105662, Ralf Habacker)
* Always use select()-based poll() emulation on Darwin-based OSs
(macOS, etc.) and on Interix, similar to what libcurl does
(dbus#232, dbus!19; Simon McVittie)
* Extend a test timeout to avoid spurious failures in CI
(dbus!26, Simon McVittie)
- Add patch to build with new autoconf-archive, there is now
bash variable AX_BLA that gets detected and autoreconf aborts;
thus rather just disable the pointless check:
* dbus-no-ax-check.patch
- Add patch to fix codecoverage m4 macro changes in autoconf-archive:
* dbus-new-autoconf-archive.patch
- Update to 1.12.12:
OBS-URL: https://build.opensuse.org/request/show/670264
OBS-URL: https://build.opensuse.org/package/show/Base:System/dbus-1?expand=0&rev=277
2019-01-31 10:20:00 +01:00
|
|
|
# PATCH-FIX-UPSTREAM
|
|
|
|
Patch3: dbus-no-ax-check.patch
|
|
|
|
# PATCH-FIX-UPSTREAM tchvatal@suse.com -- work with new autoconf-archive
|
|
|
|
Patch4: dbus-new-autoconf-archive.patch
|
2017-11-17 06:00:45 +01:00
|
|
|
BuildRequires: autoconf-archive
|
2014-09-30 10:24:18 +02:00
|
|
|
BuildRequires: libcap-ng-devel
|
|
|
|
BuildRequires: libexpat-devel
|
|
|
|
BuildRequires: libtool
|
2016-12-06 11:00:23 +01:00
|
|
|
BuildRequires: pkgconfig
|
2016-12-09 12:02:34 +01:00
|
|
|
BuildRequires: pkgconfig(libsystemd) >= 209
|
2016-12-06 11:00:23 +01:00
|
|
|
BuildRequires: pkgconfig(x11)
|
|
|
|
Requires(post): update-alternatives
|
|
|
|
Requires(preun): update-alternatives
|
|
|
|
Supplements: packageand(dbus-1:libX11-6)
|
|
|
|
Provides: dbus-launch
|
2013-11-27 19:50:06 +01:00
|
|
|
%if %{with selinux}
|
|
|
|
BuildRequires: libselinux-devel
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
D-Bus contains some tools that require Xlib to be installed, those are
|
|
|
|
in this separate package so server systems need not install X.
|
|
|
|
|
|
|
|
%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
|
|
|
|
%configure \
|
2016-12-06 11:00:23 +01:00
|
|
|
--disable-static \
|
2017-11-22 23:28:31 +01:00
|
|
|
--libexecdir=%{_libexecdir}/dbus-1 \
|
2016-12-06 11:00:23 +01:00
|
|
|
--enable-inotify \
|
|
|
|
--disable-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 \
|
|
|
|
--with-console-auth-dir=/run/dbus/at_console/ \
|
|
|
|
--with-system-pid-file=/run/dbus/pid \
|
|
|
|
--with-system-socket=/run/dbus/system_bus_socket \
|
|
|
|
--with-systemdsystemunitdir=%{_unitdir} \
|
2017-01-09 15:35:49 +01:00
|
|
|
--with-systemduserunitdir=%{_userunitdir} \
|
2017-01-09 15:33:05 +01:00
|
|
|
--with-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
|
|
|
%install
|
2016-12-06 11:00:23 +01:00
|
|
|
tdir=$(mktemp -d)
|
|
|
|
make DESTDIR=$tdir install
|
2013-11-27 19:50:06 +01:00
|
|
|
mkdir -p %{buildroot}/%{_bindir}
|
2017-07-15 02:46:53 +02:00
|
|
|
mv $tdir/%{_bindir}/dbus-launch %{buildroot}/%{_bindir}/dbus-launch.x11
|
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
|
|
|
%post
|
2016-11-24 12:18:50 +01:00
|
|
|
%{_sbindir}/update-alternatives --install %{_bindir}/dbus-launch dbus-launch %{_bindir}/dbus-launch.x11 20
|
|
|
|
|
2016-12-06 11:00:23 +01:00
|
|
|
%preun
|
2016-11-24 12:18:50 +01:00
|
|
|
if [ "$1" = 0 ] ; then
|
|
|
|
%{_sbindir}/update-alternatives --remove dbus-launch %{_bindir}/dbus-launch.x11
|
|
|
|
fi
|
|
|
|
|
2013-11-27 19:50:06 +01:00
|
|
|
%files
|
2016-11-24 07:53:51 +01:00
|
|
|
%ghost %{_sysconfdir}/alternatives/dbus-launch
|
2016-11-24 11:33:11 +01:00
|
|
|
%{_bindir}/dbus-launch
|
2016-11-24 12:18:50 +01:00
|
|
|
%{_bindir}/dbus-launch.x11
|
2013-11-27 19:50:06 +01:00
|
|
|
|
|
|
|
%changelog
|