Projects
home:pandora:RobinOS23
dbus
_service:download_src_package:dbus.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:download_src_package:dbus.spec of Package dbus
%define anolis_release 1 %global _hardened_build 1 %{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}} %global gettext_package dbus-1 %global libselinux_version 2.0.86 %global dbus_user_uid 81 %global dbus_common_config_opts --enable-libaudit --enable-selinux=yes %--with-system-socket=/run/dbus/system_bus_socket --with-dbus-user=dbus %--libexecdir=/%{_libexecdir}/dbus-1 --runstatedir=/run --enable-user-session --docdir=%{_pkgdocdir} --enable-installed-tests Name: dbus Epoch: 1 Version: 1.13.22 Release: %{anolis_release}%{?dist} Summary: D-BUS message bus License: (GPLv2+ or AFL) and GPLv2+ URL: http://www.freedesktop.org/Software/dbus/ Source0: https://dbus.freedesktop.org/releases/%{name}/%{name}-%{version}.tar.xz Source1: 00-start-message-bus.sh Source2: dbus.socket Source3: dbus-daemon.service Source4: dbus.user.socket Source5: dbus-daemon.user.service BuildRequires: autoconf-archive BuildRequires: libtool BuildRequires: audit-libs-devel >= 0.9 BuildRequires: gnupg2 BuildRequires: libX11-devel BuildRequires: libcap-ng-devel BuildRequires: pkgconfig(expat) BuildRequires: pkgconfig(libselinux) >= %{libselinux_version} BuildRequires: pkgconfig(libsystemd) BuildRequires: pkgconfig(systemd) BuildRequires: doxygen BuildRequires: /usr/bin/ducktype BuildRequires: /usr/bin/yelp-build BuildRequires: /usr/bin/xsltproc BuildRequires: xmlto BuildRequires: cmake BuildRequires: systemd BuildRequires: pkgconfig(gio-2.0) >= 2.40.0 BuildRequires: python3-dbus BuildRequires: python3-gobject BuildRequires: make Requires: dbus-broker >= 16-4 %description D-BUS is a system for sending messages between applications. It is used both for the system-wide message bus service, and as a per-user-login-session messaging facility. %package common Summary: D-BUS message bus configuration BuildArch: noarch %description common The %{name}-common package provides the configuration and setup files for D-Bus implementations to provide a System and User Message Bus. %package daemon Summary: D-BUS message bus Requires: libselinux%{?_isa} >= %{libselinux_version} Requires: dbus-common = %{epoch}:%{version}-%{release} Requires: dbus-libs%{?_isa} = %{epoch}:%{version}-%{release} Requires: dbus-tools = %{epoch}:%{version}-%{release} Requires(pre): /usr/sbin/useradd %description daemon D-BUS is a system for sending messages between applications. It is used both for the system-wide message bus service, and as a per-user-login-session messaging facility. %package tools Summary: D-BUS Tools and Utilities Requires: dbus-libs%{?_isa} = %{epoch}:%{version}-%{release} %description tools Tools and utilities to interact with a running D-Bus Message Bus, provided by the reference implementation. %package libs Summary: Libraries for accessing D-BUS %description libs This package contains lowlevel libraries for accessing D-BUS. %package doc Summary: Developer documentation for D-BUS Requires: %{name}-daemon = %{epoch}:%{version}-%{release} BuildArch: noarch %description doc This package contains developer documentation for D-Bus along with other supporting documentation such as the introspect dtd file. %package devel Summary: Development files for D-BUS Requires: dbus-libs%{?_isa} = %{epoch}:%{version}-%{release} Requires: xml-common %description devel This package contains libraries and header files needed for developing software that uses D-BUS. %package tests Summary: Tests for the %{name}-daemon package Requires: %{name}-daemon%{?_isa} = %{epoch}:%{version}-%{release} %description tests The %{name}-tests package contains tests that can be used to verify the functionality of the installed %{name}-daemon package. %package x11 Summary: X11-requiring add-ons for D-BUS Requires: %{name}-daemon = %{epoch}:%{version}-%{release} %description x11 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 %autosetup -p1 %build # Avoid rpath. if test -f autogen.sh; then env NOCONFIGURE=1 ./autogen.sh; else autoreconf --verbose --force --install; fi %configure %{dbus_common_config_opts} --enable-doxygen-docs --enable-ducktype-docs --enable-xml-docs --disable-asserts make distclean mkdir build pushd build %global _configure ../configure %configure %{dbus_common_config_opts} --enable-doxygen-docs --enable-ducktype-docs --enable-xml-docs --disable-asserts %make_build popd %install pushd build %make_install popd rm -f %{buildroot}/%{_pkgdocdir}/examples/GetAllMatchRules.py find %{buildroot} -name '*.a' -type f -delete find %{buildroot} -name '*.la' -type f -delete rm -f %{buildroot}%{_unitdir}/dbus.{socket,service} rm -f %{buildroot}%{_unitdir}/sockets.target.wants/dbus.socket rm -f %{buildroot}%{_unitdir}/multi-user.target.wants/dbus.service rm -f %{buildroot}%{_userunitdir}/dbus.{socket,service} rm -f %{buildroot}%{_userunitdir}/sockets.target.wants/dbus.socket install -Dp -m755 %{SOURCE1} %{buildroot}%{_sysconfdir}/X11/xinit/xinitrc.d/00-start-message-bus.sh install -Dp -m644 %{SOURCE2} %{buildroot}%{_unitdir}/dbus.socket install -Dp -m644 %{SOURCE3} %{buildroot}%{_unitdir}/dbus-daemon.service install -Dp -m644 %{SOURCE4} %{buildroot}%{_userunitdir}/dbus.socket install -Dp -m644 %{SOURCE5} %{buildroot}%{_userunitdir}/dbus-daemon.service install --directory %{buildroot}%{_sysconfdir}/dbus-1/session.d install --directory %{buildroot}%{_sysconfdir}/dbus-1/system.d install --directory %{buildroot}%{_datadir}/dbus-1/interfaces install --directory %{buildroot}/var/lib/dbus install --directory %{buildroot}/run/dbus install -pm 644 -t %{buildroot}%{_pkgdocdir} \ doc/introspect.dtd doc/introspect.xsl doc/system-activation.txt install --directory %{buildroot}%{_datadir}/gtk-doc/html ln -s %{_pkgdocdir} %{buildroot}%{_datadir}/gtk-doc/html/dbus # Shell wrapper for installed tests, modified from Debian package. cat > dbus-run-installed-tests <<EOF #!/bin/sh # installed-tests wrapper for dbus. Outputs TAP format because why not set -e timeout="timeout 300s" ret=0 i=0 tmpdir=\$(mktemp --directory --tmpdir dbus-run-installed-tests.XXXXXX) for t in %{_libexecdir}/dbus-1/installed-tests/dbus/test-*; do i=\$(( \$i + 1 )) echo "# \$i - \$t ..." echo "x" > "\$tmpdir/result" ( set +e; \$timeout \$t; echo "\$?" > "\$tmpdir/result" ) 2>&1 | sed 's/^/# /' e="\$(cat "\$tmpdir/result")" case "\$e" in (0) echo "ok \$i - \$t" ;; (77) echo "ok \$i # SKIP \$t" ;; (*) echo "not ok \$i - \$t (\$e)" ret=1 ;; esac done rm -rf tmpdir echo "1..\$i" exit \$ret EOF install -pm 755 -t %{buildroot}%{_libexecdir}/dbus-1 dbus-run-installed-tests %check # disable check because several unit tests in DBus require an active X server. %pre daemon # Add the "dbus" user and group getent group dbus >/dev/null || groupadd -f -g %{dbus_user_uid} -r dbus if ! getent passwd dbus >/dev/null ; then if ! getent passwd %{dbus_user_uid} >/dev/null ; then useradd -r -u %{dbus_user_uid} -g %{dbus_user_uid} -d '/' -s /sbin/nologin -c "System message bus" dbus else useradd -r -g %{dbus_user_uid} -d '/' -s /sbin/nologin -c "System message bus" dbus fi fi exit 0 %post common %systemd_post dbus.socket %systemd_user_post dbus.socket %post daemon %systemd_post dbus-daemon.service %systemd_user_post dbus-daemon.service %preun common %systemd_preun dbus.socket %systemd_user_preun dbus.socket %preun daemon %systemd_preun dbus-daemon.service %systemd_user_preun dbus-daemon.service %postun common %systemd_postun dbus.socket %systemd_user_postun dbus.socket %postun daemon %systemd_postun dbus-daemon.service %systemd_user_postun dbus-daemon.service %triggerpostun common -- dbus-common < 1:1.12.10-4 if [ -x /usr/bin/systemctl ]; then systemctl --no-reload preset dbus.socket &>/dev/null || : systemctl --no-reload --global preset dbus.socket &>/dev/null || : fi %triggerpostun daemon -- dbus-daemon < 1:1.12.10-7 if [ -x /usr/bin/systemctl ]; then systemctl --no-reload preset dbus-daemon.service &>/dev/null || : systemctl --no-reload --global preset dbus-daemon.service &>/dev/null || : fi %files # Empty package just for compatibility. %files common %dir %{_sysconfdir}/dbus-1 %dir %{_sysconfdir}/dbus-1/session.d %dir %{_sysconfdir}/dbus-1/system.d %config %{_sysconfdir}/dbus-1/session.conf %config %{_sysconfdir}/dbus-1/system.conf %dir %{_datadir}/dbus-1 %dir %{_datadir}/dbus-1/session.d %dir %{_datadir}/dbus-1/system.d %{_datadir}/dbus-1/session.conf %{_datadir}/dbus-1/system.conf %{_datadir}/dbus-1/services %{_datadir}/dbus-1/system-services %{_datadir}/dbus-1/interfaces %{_sysusersdir}/dbus.conf %{_unitdir}/dbus.socket %{_userunitdir}/dbus.socket %files daemon %{!?_licensedir:%global license %%doc} %license COPYING %doc AUTHORS CONTRIBUTING.md NEWS README %exclude %{_pkgdocdir}/api %exclude %{_pkgdocdir}/dbus.devhelp %exclude %{_pkgdocdir}/diagram.* %exclude %{_pkgdocdir}/introspect.* %exclude %{_pkgdocdir}/system-activation.txt %exclude %{_pkgdocdir}/*.html %ghost %dir /run/%{name} %dir %{_localstatedir}/lib/dbus/ %{_bindir}/dbus-daemon %{_bindir}/dbus-cleanup-sockets %{_bindir}/dbus-run-session %{_bindir}/dbus-test-tool %{_mandir}/man1/dbus-cleanup-sockets.1* %{_mandir}/man1/dbus-daemon.1* %{_mandir}/man1/dbus-run-session.1* %{_mandir}/man1/dbus-test-tool.1* %dir %{_libexecdir}/dbus-1 %attr(4750,root,dbus) %{_libexecdir}/dbus-1/dbus-daemon-launch-helper %exclude %{_libexecdir}/dbus-1/dbus-run-installed-tests %{_tmpfilesdir}/dbus.conf %{_unitdir}/dbus-daemon.service %{_userunitdir}/dbus-daemon.service %files tools %{!?_licensedir:%global license %%doc} %license COPYING %{_bindir}/dbus-send %{_bindir}/dbus-monitor %{_bindir}/dbus-update-activation-environment %{_bindir}/dbus-uuidgen %{_mandir}/man1/dbus-monitor.1* %{_mandir}/man1/dbus-send.1* %{_mandir}/man1/dbus-update-activation-environment.1* %{_mandir}/man1/dbus-uuidgen.1* %files libs %{!?_licensedir:%global license %%doc} %license COPYING %{_libdir}/*dbus-1*.so.* %files tests %{_libexecdir}/dbus-1/installed-tests %{_libexecdir}/dbus-1/dbus-run-installed-tests %{_datadir}/installed-tests %files x11 %{_bindir}/dbus-launch %{_mandir}/man1/dbus-launch.1* %{_sysconfdir}/X11/xinit/xinitrc.d/00-start-message-bus.sh %files doc %{_pkgdocdir}/* %{_datadir}/gtk-doc %exclude %{_pkgdocdir}/AUTHORS %exclude %{_pkgdocdir}/ChangeLog %exclude %{_pkgdocdir}/HACKING %exclude %{_pkgdocdir}/NEWS %exclude %{_pkgdocdir}/README %files devel %{_datadir}/xml/dbus-1 %{_libdir}/lib*.so %dir %{_libdir}/dbus-1.0 %{_libdir}/cmake/DBus1 %{_libdir}/dbus-1.0/include/ %{_libdir}/pkgconfig/dbus-1.pc %{_includedir}/* %changelog * Mon Mar 07 2022 Chunmei Xu <xuchunmei@linux.alibaba.com> - 1:1.13.22-1 - init from upstream 1.13.22 and disable check while building
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2