remove \r
This commit is contained in:
parent
1c6e708ca9
commit
1b22074b78
146
dbus-broker.spec
146
dbus-broker.spec
@ -1,73 +1,73 @@
|
|||||||
Name: dbus-broker
|
Name: dbus-broker
|
||||||
Version: 28
|
Version: 28
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: Linux D-Bus Message Broker
|
Summary: Linux D-Bus Message Broker
|
||||||
License: Apache License 2.0
|
License: Apache License 2.0
|
||||||
URL: https://github.com/bus1/dbus-broker
|
URL: https://github.com/bus1/dbus-broker
|
||||||
Source0: https://github.com/bus1/dbus-broker/releases/download/v%{version}/%{name}-%{version}.tar.xz
|
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: cmake gcc glibc-devel meson python-docutils dbus
|
||||||
BuildRequires: pkgconfig(expat) pkgconfig(libsystemd) pkgconfig(libselinux)
|
BuildRequires: pkgconfig(expat) pkgconfig(libsystemd) pkgconfig(libselinux)
|
||||||
BuildRequires: pkgconfig(systemd) pkgconfig(audit) pkgconfig(libcap-ng)
|
BuildRequires: pkgconfig(systemd) pkgconfig(audit) pkgconfig(libcap-ng)
|
||||||
|
|
||||||
%description
|
%description
|
||||||
dbus-broker is an implementation of a message bus as defined by the D-Bus specification.
|
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
|
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
|
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.
|
makes use of many modern features provided by recent linux kernel releases.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{name}-%{version} -p1
|
%autosetup -n %{name}-%{version} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CONFIGURE_OPTS=(
|
CONFIGURE_OPTS=(
|
||||||
-Daudit=true
|
-Daudit=true
|
||||||
-Dselinux=true
|
-Dselinux=true
|
||||||
-Ddocs=true
|
-Ddocs=true
|
||||||
-Dsystem-console-users=gdm
|
-Dsystem-console-users=gdm
|
||||||
-Dlinux-4-17=true
|
-Dlinux-4-17=true
|
||||||
)
|
)
|
||||||
%meson "${CONFIGURE_OPTS[@]}"
|
%meson "${CONFIGURE_OPTS[@]}"
|
||||||
%meson_build
|
%meson_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%meson_install
|
%meson_install
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make check
|
make check
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
# Add the "dbus" user and group
|
# Add the "dbus" user and group
|
||||||
getent group dbus > /dev/null || groupadd -f -g 81 -r dbus
|
getent group dbus > /dev/null || groupadd -f -g 81 -r dbus
|
||||||
if ! getent passwd dbus > /dev/null ; then
|
if ! getent passwd dbus > /dev/null ; then
|
||||||
if ! getent passwd 81 > /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
|
useradd -r -u 81 -c 'D-Bus' -g dbus -s /sbin/nologin -d %{_localstatedir}/run/dbus dbus
|
||||||
else
|
else
|
||||||
useradd -r -g dbus -c 'D-Bus' -s /sbin/nologin -d %{_localstatedir}/run/dbus dbus
|
useradd -r -g dbus -c 'D-Bus' -s /sbin/nologin -d %{_localstatedir}/run/dbus dbus
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%systemd_preun dbus-broker.service dbus.socket
|
%systemd_preun dbus-broker.service dbus.socket
|
||||||
%systemd_user_preun dbus-broker.service dbus.socket
|
%systemd_user_preun dbus-broker.service dbus.socket
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%systemd_post dbus-broker.service dbus.socket
|
%systemd_post dbus-broker.service dbus.socket
|
||||||
%systemd_user_post dbus-broker.service dbus.socket
|
%systemd_user_post dbus-broker.service dbus.socket
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%systemd_postun dbus-broker.service dbus.socket
|
%systemd_postun dbus-broker.service dbus.socket
|
||||||
%systemd_user_postun dbus-broker.service dbus.socket
|
%systemd_user_postun dbus-broker.service dbus.socket
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license AUTHORS
|
%license AUTHORS
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{_bindir}/dbus-broker*
|
%{_bindir}/dbus-broker*
|
||||||
%{_journalcatalogdir}/dbus-broker*.catalog
|
%{_journalcatalogdir}/dbus-broker*.catalog
|
||||||
%{_mandir}/man1/dbus-broker*.1*
|
%{_mandir}/man1/dbus-broker*.1*
|
||||||
%{_unitdir}/dbus-broker.service
|
%{_unitdir}/dbus-broker.service
|
||||||
%{_userunitdir}/dbus-broker.service
|
%{_userunitdir}/dbus-broker.service
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Aug 05 2021 openEuler BuildTeam <buildteam@openeuler.org> - 28.1
|
* Thu Aug 05 2021 openEuler BuildTeam <buildteam@openeuler.org> - 28.1
|
||||||
- Package Init.
|
- Package Init.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user