## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 9; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %if 0%{?mageia} %global dbus_user_id messagedbus %else %global dbus_user_id 81 %endif %if 0%{!?mkrel:1} %define mkrel(c) %{1}%{?dist} %endif %global bindgen_version 0.60 %global rust_version 1.84 # Optional features only in in versions that they exist upstream %if 0%{?mageia} >= 11 || 0%{?fedora} >= 44 || 0%{?suse_version} || 0%{?centos} >= 10 || 0%{?epel} %bcond_without audit %bcond_without libcap %bcond_without selinux %bcond_without tests %bcond_without docs %bcond_without kernel_check %else %bcond_with audit %bcond_with libcap %bcond_with selinux %bcond_with tests %bcond_with docs %bcond_with kernel_check %endif %bcond_without launcher Name: dbus-broker Version: 37 Release: %mkrel 1 Summary: Linux D-Bus Message Broker Group: System/Servers License: Apache-2.0 AND LGPL-2.0-or-later AND LGPL-2.1-or-later AND (Apache-2.0 OR LGPL-2.1-or-later) URL: https://github.com/bus1/dbus-broker Source0: https://github.com/bus1/dbus-broker/releases/download/v%{version}/dbus-broker-%{version}.tar.xz Patch0: 0001-test-sockopt-loosen-verification-of-stale-pidfds.patch %if %{with audit} BuildRequires: pkgconfig(audit) >= 3.0 %endif %if %{with launcher} BuildRequires: pkgconfig(expat) >= 2.2 %endif BuildRequires: pkgconfig(dbus-1) >= 1.10 %if %{with libcap} BuildRequires: pkgconfig(libcap-ng) >= 0.6 %endif %if %{with selinux} BuildRequires: pkgconfig(libselinux) >= 3.2 %endif %if %{with launcher} BuildRequires: pkgconfig(libsystemd) BuildRequires: pkgconfig(systemd) >= 230 BuildRequires: rpm_macro(_journalcatalogdir) %endif BuildRequires: (bindgen-cli >= %bindgen_version or rust-bindgen >= %bindgen_version) BuildRequires: cargo >= %rust_version BuildRequires: clang BuildRequires: gcc BuildRequires: glibc-devel >= 2.16 %if %{with kernel_check} BuildRequires: kernel-headers >= 6.5 %endif BuildRequires: jq BuildRequires: meson BuildRequires: pkg-config >= 0.29 %if %{with docs} BuildRequires: python3dist(docutils) >= 0.13 %endif BuildRequires: rust >= %rust_version Requires: dbus-common %if %{with kernel check} Requires: kernel >= 4.17 %endif Requires: systemd >= 230 %if %{with launcher} %{?systemd_requires} Provides: should-restart = system %endif Provides: dbus%{?_isa} = 1.14.10-10 Provides: dbus = 1.14.10-10 %description dbus-broker is an implementation of a message bus as defined by the D-Bus specification. Its aim is to provide high performance and reliability, while keeping compatibility to the D-Bus reference implementation. It is exclusively written for Linux systems, and makes use of many modern features provided by recent Linux kernel releases. %package tests Summary: Internal unit and reference tests of dbus-broker Requires: %{name}%{_isa} = %{version}-%{release} %description tests dbus-broker's unit and reference tests that can be used to verify the functionality of the installed dbus-broker. %prep %autosetup -p1 # Create a sysusers.d config file cat >dbus-broker.sysusers.conf <