]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/blob - dbus/dbus.nm
glibc: Disable multilib support on X86_64
[people/stevee/ipfire-3.x.git] / dbus / dbus.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = dbus
7 ver_major = 1
8 ver_minor = 15
9 ver_plevel = 2
10 release = 1
11
12 version = %{ver_major}.%{ver_minor}.%{ver_plevel}
13 dbus_ver = %{ver_major}.%{ver_minor}.%{ver_plevel}
14
15 maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
16 groups = System/Daemons
17 url = https://www.freedesktop.org/software/dbus/
18 license = GPLv2+ AFL
19 summary = D-BUS message bus.
20
21 description
22 D-BUS is a system for sending messages between applications. It is
23 used both for the system-wide message bus service, and as a
24 per-user-login-session messaging facility.
25 end
26
27 source_dl = https://dbus.freedesktop.org/releases/dbus/
28 sources = %{thisapp}.tar.xz
29
30 build
31 requires
32 /usr/bin/xsltproc
33 expat-devel
34 libcap-ng-devel
35 systemd-devel
36 xmlto
37 end
38
39 configure_options += \
40 --with-systemdsystemunitdir=%{unitdir} \
41 --with-dbus-user=dbus
42
43 export LD_LIBRARY_PATH = %{DIR_APP}/dbus/.libs
44
45 test
46 make check
47 end
48
49 install_cmds
50 # Remove unneeded documentation.
51 rm -rvf %{BUILDROOT}/%{datadir}/doc
52 rm -rvf %{BUILDROOT}/%{datadir}/xml
53
54 # Drop cmake related stuff
55 rm -rvf %{BUILDROOT}/%{libdir}/cmake
56
57 # Remove daemon related binaries and manpages.
58 for bin in daemon launch run-session test-tool cleanup-sockets; do
59 rm -rvf %{BUILDROOT}/%{bindir}/dbus-$bin
60 rm -rvf %{BUILDROOT}/%{mandir}/man1/dbus-$bin*
61 done
62
63 # Remove daemon-lauch-helper
64 rm -rvf %{BUILDROOT}/usr/lib/dbus-daemon-launch-helper
65
66 # Remove daemon related systemd files.
67 rm -rvf %{BUILDROOT}/%{unitdir}/dbus.service
68 rm -rvf %{BUILDROOT}/%{unitdir}/multi-user.target.wants
69 rm -rvf %{BUILDROOT}/usr/lib/tmpfiles.d
70
71 # Remove daemon related folders in /var
72 rm -rvf %{BUILDROOT}/%{localstatedir}
73 end
74 end
75
76 packages
77 package %{name}-common
78 summary = D-BUS message bus configuration.
79 version = %{dbus_ver}
80 arch = noarch
81
82 description
83 The dbus-common package provides the configuration and setup files for D-Bus
84 implementations to provide a System and User Message Bus.
85 end
86
87 files
88 /usr/lib/sysusers.d/
89 /usr/lib/sysusers.d/*
90 %{sysconfdir}/dbus-1
91 %{sysconfdir}/dbus-1/session.d
92 %{sysconfdir}/dbus-1/system.d
93 %{sysconfdir}/dbus-1/session.conf
94 %{sysconfdir}/dbus-1/system.conf
95 %{datadir}/dbus-1
96 %{datadir}/dbus-1/session.d
97 %{datadir}/dbus-1/system.d
98 %{datadir}/dbus-1/session.conf
99 %{datadir}/dbus-1/system.conf
100 %{datadir}/dbus-1/services
101 %{datadir}/dbus-1/system-services
102 %{datadir}/dbus-1/interfaces
103 %{unitdir}/dbus.socket
104 %{unitdir}/sockets.target.wants/dbus.socket
105 end
106 end
107
108 package %{name}-tools
109 summary = D-BUS Tools and Utilities.
110 version = %{dbus_ver}
111
112 description
113 Tools and utilities to interact with a running D-Bus Message Bus, provided by
114 the reference implementation.
115 end
116
117 requires
118 dbus-libs = %{thisver}
119 dbus-common = %{dbus_ver}
120 end
121
122 files
123 %{bindir}/dbus-send
124 %{bindir}/dbus-monitor
125 %{bindir}/dbus-update-activation-environment
126 %{bindir}/dbus-uuidgen
127 %{mandir}/man1/dbus-monitor.1*
128 %{mandir}/man1/dbus-send.1*
129 %{mandir}/man1/dbus-update-activation-environment.1*
130 %{mandir}/man1/dbus-uuidgen.1*
131 end
132 end
133
134 package %{name}-libs
135 template LIBS
136 end
137
138 package %{name}-devel
139 template DEVEL
140
141 files += %{libdir}/dbus-1.0
142 end
143
144 package %{name}-debuginfo
145 template DEBUGINFO
146 end
147 end