2023-09-25 12:43:07 +02:00
|
|
|
#
|
|
|
|
# spec file for package dbus-broker
|
|
|
|
#
|
2024-01-16 14:31:12 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2023-09-25 12:43:07 +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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: dbus-broker
|
2024-04-12 19:07:08 +02:00
|
|
|
Version: 36
|
2023-09-25 12:43:07 +02:00
|
|
|
Release: 0
|
2023-12-14 14:08:02 +01:00
|
|
|
Summary: XDG message bus implementation
|
2023-09-25 12:43:07 +02:00
|
|
|
License: Apache-2.0
|
|
|
|
Group: System/Daemons
|
|
|
|
URL: https://github.com/bus1/dbus-broker
|
|
|
|
|
|
|
|
Source: https://github.com/bus1/dbus-broker/releases/download/v%version/dbus-broker-%version.tar.xz
|
2024-04-12 19:07:08 +02:00
|
|
|
Source2: https://github.com/bus1/dbus-broker/releases/download/v%version/dbus-broker-%version.tar.xz.asc
|
|
|
|
Source10: allow-restart.conf
|
|
|
|
Source11: block-restart.conf
|
2023-09-25 12:43:07 +02:00
|
|
|
BuildRequires: linux-glibc-devel >= 4.17
|
|
|
|
BuildRequires: meson
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: systemd-rpm-macros
|
|
|
|
BuildRequires: pkgconfig(audit) >= 3.0
|
2023-09-29 10:51:37 +02:00
|
|
|
# dbus-1 requires dbus-broker, break that dep to avoid a cycle.
|
|
|
|
#!BuildIgnore: dbus-broker
|
2023-09-25 12:43:07 +02:00
|
|
|
BuildRequires: pkgconfig(dbus-1) >= 1.10
|
|
|
|
BuildRequires: pkgconfig(expat) >= 2.2.3
|
|
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.50
|
|
|
|
BuildRequires: pkgconfig(libcap-ng) >= 0.6
|
|
|
|
BuildRequires: pkgconfig(libselinux) >= 3.2
|
|
|
|
BuildRequires: pkgconfig(libsystemd) >= 230
|
|
|
|
BuildRequires: pkgconfig(systemd) >= 230
|
|
|
|
Provides: dbus-service
|
|
|
|
Provides: bundled(c-dvar) = 1+
|
|
|
|
Provides: bundled(c-ini) = 1+
|
|
|
|
Provides: bundled(c-list) = 3+git9
|
|
|
|
Provides: bundled(c-rbtree) = 3+git34
|
|
|
|
Provides: bundled(c-shquote) = 1+
|
|
|
|
Provides: bundled(c-stdaux) = 1+
|
|
|
|
Provides: bundled(c-utf8) = 1+
|
2024-04-12 19:07:08 +02:00
|
|
|
Requires: dbus-broker-restart-behavior = %version
|
|
|
|
Suggests: dbus-broker-block-restart = %version
|
2023-09-25 12:43:07 +02:00
|
|
|
%{?systemd_ordering}
|
|
|
|
|
|
|
|
%description
|
|
|
|
dbus-broker is an implementation of a message bus as defined by the
|
|
|
|
D-Bus specification. It has some different characteristics/features
|
|
|
|
from classic D-Bus:
|
|
|
|
|
|
|
|
* No shared medium
|
|
|
|
* No IPC to implement IPC
|
|
|
|
* User-based accounting
|
|
|
|
* Reliable messages
|
|
|
|
* Just the bus implementation, no external communication
|
|
|
|
* Local only, no remote transport
|
|
|
|
* Support for SASL pipelining
|
|
|
|
* Runtime broker control
|
|
|
|
|
2024-01-16 14:31:12 +01:00
|
|
|
%package allow-restart
|
|
|
|
Summary: Restart behavior configuration for dbus-broker - Allow restarting
|
2024-04-12 19:07:08 +02:00
|
|
|
Provides: dbus-broker-restart-behavior = %version-%release
|
2024-01-16 14:31:12 +01:00
|
|
|
Conflicts: dbus-broker-restart-behavior
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description allow-restart
|
|
|
|
This package configures how the service behave to the systemctl restart command.
|
|
|
|
|
|
|
|
By installing this package dbus-broker will be allowed to restart
|
|
|
|
|
|
|
|
%package block-restart
|
|
|
|
Summary: Restart behavior configuration for dbus-broker - Block restarting
|
2024-04-12 19:07:08 +02:00
|
|
|
Provides: dbus-broker-restart-behavior = %version-%release
|
2024-01-16 14:31:12 +01:00
|
|
|
Conflicts: dbus-broker-restart-behavior
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description block-restart
|
|
|
|
This package configures how the service behave to the systemctl restart command.
|
|
|
|
|
|
|
|
By installing this package dbus-broker will be blocked to restart
|
|
|
|
|
2023-09-25 12:43:07 +02:00
|
|
|
%prep
|
|
|
|
%autosetup -p1
|
|
|
|
|
|
|
|
%build
|
|
|
|
ln -s /bin/true rst2man
|
|
|
|
%meson -Daudit=true -Dselinux=true
|
|
|
|
%meson_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%meson_install
|
2024-01-16 14:31:12 +01:00
|
|
|
for mode in allow block ; do
|
2024-04-12 19:07:08 +02:00
|
|
|
install -Dpm0644 "%_sourcedir/$mode-restart.conf" "%buildroot/%_unitdir/dbus-broker.service.d/$mode-restart.conf"
|
|
|
|
install -Dpm0644 "%_sourcedir/$mode-restart.conf" "%buildroot/%_userunitdir/dbus-broker.service.d/$mode-restart.conf"
|
2024-01-16 14:31:12 +01:00
|
|
|
done
|
2023-09-25 12:43:07 +02:00
|
|
|
|
|
|
|
%pre
|
|
|
|
%service_add_pre dbus-broker.service
|
|
|
|
|
|
|
|
%post
|
|
|
|
%service_add_post dbus-broker.service
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%service_del_preun dbus-broker.service
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%service_del_postun_without_restart dbus-broker.service
|
|
|
|
|
|
|
|
%files
|
|
|
|
%_bindir/dbus-broker*
|
|
|
|
%_unitdir/*.service
|
2024-01-16 14:31:12 +01:00
|
|
|
%_userunitdir/*.service
|
|
|
|
%_journalcatalogdir/*
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
%files allow-restart
|
|
|
|
%license LICENSE
|
|
|
|
%dir %_unitdir/dbus-broker.service.d/
|
|
|
|
%dir %_userunitdir/dbus-broker.service.d/
|
|
|
|
%_unitdir/dbus-broker.service.d/allow-restart.conf
|
|
|
|
%_userunitdir/dbus-broker.service.d/allow-restart.conf
|
|
|
|
|
|
|
|
%files block-restart
|
2023-09-25 12:43:07 +02:00
|
|
|
%license LICENSE
|
2024-01-16 14:31:12 +01:00
|
|
|
%dir %_unitdir/dbus-broker.service.d/
|
|
|
|
%dir %_userunitdir/dbus-broker.service.d/
|
|
|
|
%_unitdir/dbus-broker.service.d/block-restart.conf
|
|
|
|
%_userunitdir/dbus-broker.service.d/block-restart.conf
|
2023-09-25 12:43:07 +02:00
|
|
|
|
|
|
|
%changelog
|