############################################################################### # IPFire.org - An Open Source Firewall Solution # # Copyright (C) - IPFire Development Team # ############################################################################### name = dbus ver_major = 1 ver_minor = 15 ver_plevel = 2 release = 1 version = %{ver_major}.%{ver_minor}.%{ver_plevel} dbus_ver = %{ver_major}.%{ver_minor}.%{ver_plevel} maintainer = Stefan Schantl groups = System/Daemons url = https://www.freedesktop.org/software/dbus/ license = GPLv2+ AFL summary = D-BUS message bus. 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. end source_dl = https://dbus.freedesktop.org/releases/dbus/ sources = %{thisapp}.tar.xz build requires /usr/bin/xsltproc expat-devel libcap-ng-devel systemd-devel xmlto end configure_options += \ --with-systemdsystemunitdir=%{unitdir} \ --with-dbus-user=dbus export LD_LIBRARY_PATH = %{DIR_APP}/dbus/.libs test make check end install_cmds # Remove unneeded documentation. rm -rvf %{BUILDROOT}/%{datadir}/doc rm -rvf %{BUILDROOT}/%{datadir}/xml # Drop cmake related stuff rm -rvf %{BUILDROOT}/%{libdir}/cmake # Remove daemon related binaries and manpages. for bin in daemon launch run-session test-tool cleanup-sockets; do rm -rvf %{BUILDROOT}/%{bindir}/dbus-$bin rm -rvf %{BUILDROOT}/%{mandir}/man1/dbus-$bin* done # Remove daemon-lauch-helper rm -rvf %{BUILDROOT}/usr/lib/dbus-daemon-launch-helper # Remove daemon related systemd files. rm -rvf %{BUILDROOT}/%{unitdir}/dbus.service rm -rvf %{BUILDROOT}/%{unitdir}/multi-user.target.wants rm -rvf %{BUILDROOT}/usr/lib/tmpfiles.d # Remove daemon related folders in /var rm -rvf %{BUILDROOT}/%{localstatedir} end end packages package %{name}-common summary = D-BUS message bus configuration. version = %{dbus_ver} arch = noarch description The dbus-common package provides the configuration and setup files for D-Bus implementations to provide a System and User Message Bus. end files /usr/lib/sysusers.d/ /usr/lib/sysusers.d/* %{sysconfdir}/dbus-1 %{sysconfdir}/dbus-1/session.d %{sysconfdir}/dbus-1/system.d %{sysconfdir}/dbus-1/session.conf %{sysconfdir}/dbus-1/system.conf %{datadir}/dbus-1 %{datadir}/dbus-1/session.d %{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 %{unitdir}/dbus.socket %{unitdir}/sockets.target.wants/dbus.socket end end package %{name}-tools summary = D-BUS Tools and Utilities. version = %{dbus_ver} description Tools and utilities to interact with a running D-Bus Message Bus, provided by the reference implementation. end requires dbus-libs = %{thisver} dbus-common = %{dbus_ver} end files %{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* end end package %{name}-libs template LIBS end package %{name}-devel template DEVEL files += %{libdir}/dbus-1.0 end package %{name}-debuginfo template DEBUGINFO end end