diff --git a/dbus-broker-28.tar.xz b/dbus-broker-28.tar.xz new file mode 100644 index 0000000..f247e88 Binary files /dev/null and b/dbus-broker-28.tar.xz differ diff --git a/dbus-broker.spec b/dbus-broker.spec new file mode 100644 index 0000000..8c16b58 --- /dev/null +++ b/dbus-broker.spec @@ -0,0 +1,73 @@ +Name: dbus-broker +Version: 28 +Release: 1 +Summary: Linux D-Bus Message Broker +License: Apache License 2.0 +URL: https://github.com/bus1/dbus-broker +Source0: https://github.com/bus1/dbus-broker/releases/download/v%{version}/%{name}-%{version}.tar.xz + +BuildRequires: cmake gcc glibc-devel meson python-docutils dbus +BuildRequires: pkgconfig(expat) pkgconfig(libsystemd) pkgconfig(libselinux) +BuildRequires: pkgconfig(systemd) pkgconfig(audit) pkgconfig(libcap-ng) + +%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. + +%prep +%autosetup -n %{name}-%{version} -p1 + +%build +CONFIGURE_OPTS=( + -Daudit=true + -Dselinux=true + -Ddocs=true + -Dsystem-console-users=gdm + -Dlinux-4-17=true +) +%meson "${CONFIGURE_OPTS[@]}" +%meson_build + +%install +%meson_install + +%check +%meson_test + +%pre +# Add the "dbus" user and group +getent group dbus > /dev/null || groupadd -f -g 81 -r dbus +if ! getent passwd dbus > /dev/null ; then + if ! getent passwd 81 > /dev/null ; then + useradd -r -u 81 -c 'D-Bus' -g dbus -s /sbin/nologin -d %{_localstatedir}/run/dbus dbus + else + useradd -r -g dbus -c 'D-Bus' -s /sbin/nologin -d %{_localstatedir}/run/dbus dbus + fi +fi + +%preun +%systemd_preun dbus-broker.service dbus.socket +%systemd_user_preun dbus-broker.service dbus.socket + +%post +%systemd_post dbus-broker.service dbus.socket +%systemd_user_post dbus-broker.service dbus.socket + +%postun +%systemd_postun dbus-broker.service dbus.socket +%systemd_user_postun dbus-broker.service dbus.socket + +%files +%license AUTHORS +%license LICENSE +%{_bindir}/dbus-broker* +%{_journalcatalogdir}/dbus-broker*.catalog +%{_mandir}/man1/dbus-broker*.1* +%{_unitdir}/dbus-broker.service +%{_userunitdir}/dbus-broker.service + +%changelog +* Thu Aug 05 2021 openEuler BuildTeam - 28.1 +- Package Init. diff --git a/dbus-broker.yaml b/dbus-broker.yaml new file mode 100644 index 0000000..ca80348 --- /dev/null +++ b/dbus-broker.yaml @@ -0,0 +1,4 @@ +version_control: git +src_repo: https://github.com/bus1/dbus-broker.git +tag_prefix: "^dbus-broker-" +seperator: "."