]>
Commit | Line | Data |
---|---|---|
d374e721 | 1 | # TODO: |
b63d2415 | 2 | # - pldize vconsole setup: |
30121190 JR |
3 | # http://cgit.freedesktop.org/systemd/systemd/tree/src/vconsole/vconsole-setup.c |
4 | # - udev initrd needs love (is probably completly unusable in current form) | |
d374e721 | 5 | # |
c3037397 | 6 | # Conditional build: |
6c89bbd4 ER |
7 | %bcond_without audit # without audit support |
8 | %bcond_without cryptsetup # without cryptsetup support | |
23107006 | 9 | %bcond_without pam # PAM authentication support |
dadb67fe | 10 | %bcond_without plymouth # do not install plymouth units |
23107006 TP |
11 | %bcond_without selinux # without SELinux support |
12 | %bcond_without tcpd # libwrap (tcp_wrappers) support | |
9c0b975d | 13 | |
183de3c2 | 14 | %bcond_without initrd # build without udev-initrd |
30121190 JR |
15 | %bcond_with uClibc # link initrd version with static uClibc |
16 | %bcond_with klibc # link initrd version with static klibc | |
17 | %bcond_with dietlibc # link initrd version with static dietlibc (currently broken and unsupported) | |
18 | %bcond_without glibc # link initrd version with static glibc | |
19 | ||
20 | %ifarch sparc sparc64 | |
21 | %define with_glibc 1 | |
22 | %endif | |
23 | ||
24 | # if one of the *libc is enabled disable default uClibc | |
25 | %if %{with dietlibc} && %{with uClibc} | |
26 | %undefine with_uClibc | |
27 | %endif | |
28 | ||
29 | %if %{with glibc} && %{with uClibc} | |
30 | %undefine with_uClibc | |
31 | %endif | |
32 | ||
33 | %if %{with klibc} && %{with uClibc} | |
34 | %undefine with_uClibc | |
35 | %endif | |
36 | ||
c3037397 | 37 | Summary: A System and Service Manager |
ede8d3e5 | 38 | Summary(pl.UTF-8): systemd - zarządca systemu i usług dla Linuksa |
39 | Name: systemd | |
30121190 | 40 | # Verify ChangeLog and NEWS when updating (since there are incompatible/breaking changes very often) |
d833377f | 41 | Version: 183 |
7e0e6b4e | 42 | Release: 0.2 |
30121190 | 43 | Epoch: 1 |
ede8d3e5 | 44 | License: GPL v2+ |
45 | Group: Base | |
440d1d13 | 46 | Source0: http://www.freedesktop.org/software/systemd/%{name}-%{version}.tar.xz |
d833377f | 47 | # Source0-md5: e1e5e0f376fa2a4cb4bc31a2161c09f2 |
4f25b6ac | 48 | Source1: %{name}-sysv-convert |
b0980573 | 49 | Source2: %{name}_booted.c |
a3a953ae | 50 | Source3: network.service |
870fdd3d JR |
51 | Source4: var-lock.mount |
52 | Source5: var-run.mount | |
44410185 JR |
53 | Source10: pld-storage-init-late.service |
54 | Source11: pld-storage-init.service | |
55 | Source12: pld-wait-storage.service | |
56 | Source13: pld-storage-init.sh | |
50b8f452 ER |
57 | Source14: pld-clean-tmp.service |
58 | Source15: pld-clean-tmp.sh | |
30121190 JR |
59 | # rules |
60 | Source101: udev-alsa.rules | |
61 | Source102: udev.rules | |
62 | Source103: udev-links.conf | |
63 | # scripts / helpers | |
64 | Source110: udev-net.helper | |
65 | Source111: start_udev | |
66 | # misc | |
67 | Source120: udev.blacklist | |
68 | Source121: fbdev.blacklist | |
7619c097 | 69 | Patch0: target-pld.patch |
252e1bad | 70 | Patch1: config-pld.patch |
8e088cd5 | 71 | Patch2: shut-sysv-up.patch |
2e1f31c8 | 72 | Patch3: pld-sysv-network.patch |
d374e721 | 73 | Patch4: tmpfiles-not-fatal.patch |
c75fd19d JR |
74 | Patch5: kmsg-to-syslog.patch |
75 | Patch6: udev-so.patch | |
76 | Patch7: udev-uClibc.patch | |
77 | Patch8: udev-ploop-rules.patch | |
78 | Patch9: udevlibexecdir.patch | |
183de3c2 | 79 | Patch10: static-udev.patch |
ede8d3e5 | 80 | URL: http://www.freedesktop.org/wiki/Software/systemd |
5b9bde26 | 81 | BuildRequires: acl-devel |
6c89bbd4 | 82 | %{?with_audit:BuildRequires: audit-libs-devel} |
6e34428f MB |
83 | BuildRequires: autoconf >= 2.63 |
84 | BuildRequires: automake >= 1:1.11 | |
e4c66821 | 85 | BuildRequires: binutils >= 3:2.22.52.0.1-2 |
6e34428f | 86 | %{?with_cryptsetup:BuildRequires: cryptsetup-luks-devel} |
23107006 | 87 | BuildRequires: dbus-devel >= 1.3.2 |
c3037397 | 88 | BuildRequires: docbook-style-xsl |
30121190 JR |
89 | BuildRequires: glib2-devel >= 1:2.22.0 |
90 | BuildRequires: glibc-misc | |
91 | BuildRequires: gobject-introspection-devel >= 0.6.2 | |
3fc7a1cc | 92 | BuildRequires: gperf |
30121190 | 93 | BuildRequires: gtk-doc >= 1.10 |
5b9bde26 | 94 | BuildRequires: intltool >= 0.40.0 |
4389e6f9 | 95 | BuildRequires: kmod-devel >= 5 |
30121190 | 96 | BuildRequires: libblkid-devel >= 2.20 |
b82d0bf2 | 97 | BuildRequires: libcap-devel |
def6d132 | 98 | %{?with_selinux:BuildRequires: libselinux-devel >= 2.1.0} |
6c89bbd4 ER |
99 | BuildRequires: libtool >= 2:2.2 |
100 | %{?with_tcpd:BuildRequires: libwrap-devel} | |
6e34428f | 101 | BuildRequires: libxslt-progs |
961baf80 | 102 | BuildRequires: m4 |
6c89bbd4 | 103 | %{?with_pam:BuildRequires: pam-devel} |
30121190 | 104 | BuildRequires: pciutils |
23107006 | 105 | BuildRequires: pkgconfig >= 0.9.0 |
30121190 JR |
106 | BuildRequires: python-modules |
107 | BuildRequires: rpmbuild(macros) >= 1.628 | |
108 | BuildRequires: sed >= 4.0 | |
109 | BuildRequires: usbutils >= 0.82 | |
58fd72e9 | 110 | BuildRequires: xz-devel |
30121190 JR |
111 | BuildRequires: zlib-devel |
112 | %if %{with initrd} | |
113 | BuildRequires: acl-static | |
114 | BuildRequires: attr-static | |
115 | %{?with_dietlibc:BuildRequires: dietlibc-static} | |
116 | BuildRequires: glib2-static >= 1:2.22.0 | |
117 | %{?with_glibc:BuildRequires: glibc-static} | |
118 | %{?with_klibc:BuildRequires: klibc-static} | |
119 | BuildRequires: kmod-libs-static >= 5 | |
120 | BuildRequires: libblkid-static >= 2.20 | |
121 | %{?with_glibc:BuildRequires: libselinux-static} | |
122 | %{?with_glibc:BuildRequires: libsepol-static} | |
123 | %{?with_klibc:BuildRequires: linux-libc-headers} | |
124 | BuildRequires: pcre-static | |
125 | %{?with_uClibc:BuildRequires: uClibc-static >= 4:0.9.30.3} | |
126 | BuildRequires: xz-static | |
127 | BuildRequires: zlib-static | |
128 | %endif | |
7e0e6b4e JR |
129 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
130 | Requires: %{name}-units = %{epoch}:%{version}-%{release} | |
58d6217a | 131 | Requires: /etc/os-release |
2ff27c26 | 132 | Requires: SysVinit-tools |
37b8df82 | 133 | Requires: agetty |
b0980573 | 134 | Requires: dbus >= 1.4.16-6 |
7cb5cfc8 | 135 | Requires: filesystem >= 4.0-2 |
ed5c41d4 | 136 | Requires: libutempter |
a2018b66 | 137 | Requires: rc-scripts >= 0.4.5.3-7 |
56701781 | 138 | Requires: setup >= 2.8.0-2 |
b0980573 | 139 | Requires: udev-core >= 1:175-5 |
fe6ae5ab | 140 | Requires: udev-libs >= 1:172 |
e3134fe0 | 141 | Requires: virtual(module-tools) |
b0980573 | 142 | Suggests: ConsoleKit |
2a61be78 | 143 | Suggests: fsck >= 2.20 |
e3134fe0 | 144 | Suggests: kmod >= 5 |
4b15486a | 145 | Suggests: nss_myhostname |
c35aa49c | 146 | Suggests: service(klogd) |
1cdd35cf | 147 | Suggests: service(syslog) |
fda563d5 | 148 | Provides: udev-acl |
ca73092d | 149 | Obsoletes: systemd-no-compat-tmpfiles |
3baeefca PG |
150 | # systemd takes care of that and causes problems |
151 | Conflicts: binfmt-detector | |
a6203073 | 152 | # sytemd wants pam with pam_systemd.so in system-auth... |
3b292a99 | 153 | Conflicts: pam < 1:1.1.5-5 |
a6203073 JR |
154 | # ...and sudo hates it |
155 | Conflicts: sudo < 1:1.7.8p2-4 | |
06d34666 JR |
156 | # for prefdm script |
157 | Conflicts: xinitrc-ng < 1.0 | |
0fedd233 JR |
158 | # systemd scripts use options not present in older versions |
159 | Conflicts: kpartx < 0.4.9-7 | |
160 | Conflicts: multipath-tools < 0.4.9-7 | |
d833377f JR |
161 | # no tmpfs on /media, use /run/media/$USER for mounting |
162 | Conflicts: udisks2 < 1.92.0 | |
ca73092d JR |
163 | # packages that have dirs under /var/run and/or /var/lock must provide tmpfiles configs |
164 | Conflicts: ConsoleKit-dirs < 0.4.5-7 | |
165 | Conflicts: NetworkManager < 2:0.9.2.0-3 | |
166 | Conflicts: Zope < 2.11.8-2 | |
167 | Conflicts: amavisd-new < 1:2.7.0-1 | |
168 | Conflicts: apache-base < 2.2.21-4 | |
169 | Conflicts: apache-mod_bw < 0.92-3 | |
170 | Conflicts: apache-mod_fastcgi < 2.4.6-6 | |
171 | Conflicts: apache1-base < 1.3.42-5 | |
172 | Conflicts: apache1-mod_fastcgi < 2.4.6-2 | |
173 | Conflicts: asterisk < 10.0.1-2 | |
174 | Conflicts: autossh-init < 1.4b-3 | |
175 | Conflicts: balance < 3.54-2 | |
176 | Conflicts: bind < 7:9.8.1.P1-4 | |
177 | Conflicts: bopm < 3.1.3-4 | |
178 | Conflicts: callweaver < 1.2.1-9 | |
179 | Conflicts: cassandra-bin < 0.8.9-2 | |
180 | Conflicts: clamav < 0.97.3-3 | |
181 | Conflicts: cups < 1:1.5.0-10 | |
182 | Conflicts: dbus < 1.4.16-4 | |
183 | Conflicts: dovecot < 1:2.0.16-3 | |
184 | Conflicts: dspam < 3.9.0-6 | |
185 | Conflicts: fail2ban < 0.8.4-4 | |
186 | Conflicts: filesystem < 4.0-3 | |
187 | Conflicts: gammu-smsd < 1:1.31.0-3 | |
188 | # Break gdm2.20 installs | |
189 | #Conflicts: gdm < 2:3.2.1.1-9 | |
190 | Conflicts: greylistd < 0.8.8-2 | |
191 | Conflicts: inn < 2.4.6-7 | |
192 | Conflicts: ipsec-tools < 0.8.0-3 | |
193 | Conflicts: jabber-common < 0-9 | |
194 | Conflicts: laptop-mode-tools < 1.58-2 | |
195 | Conflicts: libgpod < 0.8.0-6 | |
196 | Conflicts: libvirt-utils < 0.9.9-4 | |
197 | Conflicts: lighttpd < 1.4.30-5 | |
198 | Conflicts: lirc < 0.9.0-20 | |
199 | Conflicts: mailman < 5:2.1.14-4 | |
200 | Conflicts: memcached < 1.4.11-2 | |
201 | Conflicts: mpd < 0.16.5-4 | |
202 | Conflicts: mrtg < 2.17.0-3 | |
203 | Conflicts: munin-common < 1.4.5-5 | |
204 | Conflicts: nagios-nrpe < 2.13-2 | |
205 | Conflicts: ndisc6-rdnssd < 1.0.1-3 | |
206 | Conflicts: nscd < 6:2.14.1-5 | |
207 | Conflicts: nss_ldapd-nslcd < 0.8.4-2 | |
208 | Conflicts: openct < 0.6.20-3 | |
209 | Conflicts: openl2tp < 1.8-3 | |
210 | Conflicts: openldap-overlay-nssov < 2.4.28-4 | |
211 | Conflicts: openldap-servers < 2.4.28-4 | |
212 | Conflicts: openvpn < 2.2.2-2 | |
213 | Conflicts: pam-pam_mount < 2.12-3 | |
214 | Conflicts: pam-pam_ssh < 1.97-2 | |
215 | Conflicts: pcsc-lite < 1.8.1-2 | |
216 | Conflicts: php-dirs < 1.2-3 | |
217 | Conflicts: policyd < 2.0.10-3 | |
218 | Conflicts: pound < 2.6-2 | |
219 | Conflicts: pptp < 1.7.2-3 | |
220 | Conflicts: proftpd-common < 2:1.3.4a-2 | |
221 | Conflicts: pulseaudio-server < 1.1-2 | |
222 | Conflicts: quagga < 0.99.20-3 | |
223 | Conflicts: radvd < 1.8.5-2 | |
224 | Conflicts: rc-scripts < 0.4.5.2-3 | |
225 | Conflicts: red5 < 0.9.0-2 | |
226 | Conflicts: redis-server < 2.4.2-4 | |
227 | Conflicts: smokeping < 2.4.2-10 | |
228 | Conflicts: smtp-gated < 1.4.17-2 | |
229 | Conflicts: socat < 1.7.2.0-2 | |
230 | Conflicts: speech-dispatcher < 0.7.1-2 | |
231 | Conflicts: sphinx < 2.0.3-4 | |
232 | Conflicts: splashutils < 1.5.4.3-3 | |
233 | Conflicts: stunnel < 4.50-2 | |
234 | Conflicts: tenshi < 0.12-2 | |
235 | Conflicts: tor < 0.2.2.35-2 | |
236 | Conflicts: ucarp < 1.5.2-3 | |
237 | Conflicts: udisks < 1.0.4-3 | |
238 | Conflicts: util-vserver < 0.30.216-1.pre3002.3 | |
239 | Conflicts: vpnc < 0.5.3-2 | |
240 | Conflicts: web2ldap < 1.1.0rc1-2 | |
241 | Conflicts: wesnoth-server < 1:1.10-2 | |
242 | Conflicts: wpa_supplicant < 0.7.3-10 | |
243 | Conflicts: xl2tpd < 1.3.0-2 | |
244 | # end of tmpfiles conflicts | |
ede8d3e5 | 245 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
246 | ||
c75fd19d | 247 | %define _sbindir /sbin |
85879912 ER |
248 | %define _libexecdir %{_prefix}/lib |
249 | ||
ede8d3e5 | 250 | %description |
1c239f8b | 251 | systemd is a system and service manager for Linux, compatible with |
ede8d3e5 | 252 | SysV and LSB init scripts. systemd provides aggressive parallelization |
253 | capabilities, uses socket and D-Bus activation for starting services, | |
254 | offers on-demand starting of daemons, keeps track of processes using | |
255 | Linux cgroups, supports snapshotting and restoring of the system | |
256 | state, maintains mount and automount points and implements an | |
257 | elaborate transactional dependency-based service control logic. It can | |
1c239f8b | 258 | work as a drop-in replacement for sysvinit. |
ede8d3e5 | 259 | |
260 | %description -l pl.UTF-8 | |
261 | systemd jest zarządcą systemu i usług dla Linuksa, kompatybilny ze | |
262 | skryptami SysV i LSB. systemd udostępnia rozbudowane zdolności | |
263 | paralelizacji, do uruchamiania usług używa socketów oraz D-Busa, | |
264 | oferuje uruchamianie usług na życzenie, monitoruje procesy używając | |
265 | linuksowych cgroups, wspomaga zapisywanie (snapshot) i odczytywanie | |
266 | (restore) stanu systemu, zarządza (auto)mount pointami oraz | |
267 | implementuje starannie opracowaną transakcjonalną, bazującą na | |
d45dfc3a | 268 | zależnościach logikę kontroli usług. Może pracować jako zastępca dla |
ede8d3e5 | 269 | sysvinit. |
270 | ||
c97dacdd TP |
271 | %package init |
272 | Summary: systemd /sbin/init and LSB/SysV compatibility symlinks | |
5b9bde26 | 273 | Summary(pl.UTF-8): /sbin/init z systemd i dowiązania dla kompatybilności z LSB/SysV |
c97dacdd | 274 | Group: Base |
d6829efa | 275 | Requires: systemd |
c97dacdd TP |
276 | Provides: readahead = 1:1.5.7-3 |
277 | Provides: virtual(init-daemon) | |
278 | Obsoletes: SysVinit | |
279 | Obsoletes: readahead < 1:1.5.7-3 | |
280 | Obsoletes: virtual(init-daemon) | |
4e1559fc | 281 | Conflicts: upstart |
c97dacdd TP |
282 | |
283 | %description init | |
284 | Install this package when you are ready to final switch to systemd. | |
285 | ||
5b9bde26 JB |
286 | %description init -l pl.UTF-8 |
287 | Ten pakiet należy zainstalować po przygotowaniu się do ostatecznego | |
288 | przejścia na systemd. | |
289 | ||
c3037397 ER |
290 | %package units |
291 | Summary: Configuration files, directories and installation tool for systemd | |
5b9bde26 | 292 | Summary(pl.UTF-8): Pliki konfiguracyjne, katalogi i narzędzie instalacyjne dla systemd |
c3037397 | 293 | Group: Base |
c3037397 | 294 | Requires(post): coreutils |
a8d86f01 | 295 | Requires(post): /bin/awk |
c3037397 ER |
296 | |
297 | %description units | |
298 | Basic configuration files, directories and installation tool for the | |
299 | systemd system and service manager. | |
300 | ||
f341cd9b | 301 | This is common config, use %{_sysconfdir}/systemd/system to override. |
10ffdcd2 | 302 | |
5b9bde26 JB |
303 | %description units -l pl.UTF-8 |
304 | Podstawowe pliki konfiguracyjne, katalogi i narzędzie instalacyjne dla | |
305 | zarządcy systemu i usług systemd. | |
306 | ||
307 | Ten pakiet zawiera ogólną konfigurację, ustawienia można nadpisać | |
308 | poprzez katalog %{_sysconfdir}/systemd/system. | |
309 | ||
e4c66821 JB |
310 | %package plymouth |
311 | Summary: Plymouth support units for systemd | |
312 | Summary(pl.UTF-8): Jednostki wspierające Plymouth dla systemd | |
313 | Group: Base | |
7e0e6b4e | 314 | Requires: %{name}-units = %{epoch}:%{version}-%{release} |
216f25d7 | 315 | Requires: plymouth |
e4c66821 JB |
316 | |
317 | %description plymouth | |
318 | Plymouth (graphical boot) support units for systemd. | |
319 | ||
320 | %description plymouth -l pl.UTF-8 | |
321 | Jednostki wspierające Plymouth (graficzny start systemu) dla systemd. | |
322 | ||
4e5e9c32 ER |
323 | %package analyze |
324 | Summary: Tool for processing systemd profiling information | |
325 | Group: Base | |
7e0e6b4e | 326 | Requires: %{name} = %{epoch}:%{version}-%{release} |
4e5e9c32 ER |
327 | Requires: python-dbus |
328 | Requires: python-modules | |
329 | Requires: python-pycairo | |
330 | Conflicts: %{name} < 44-3 | |
331 | ||
332 | %description analyze | |
333 | 'systemd-analyze blame' lists which systemd unit needed how much time | |
334 | to finish initialization at boot. 'systemd-analyze plot' renders an | |
335 | SVG visualizing the parallel start of units at boot. | |
336 | ||
011bccb6 | 337 | %package libs |
5b9bde26 JB |
338 | Summary: Shared systemd libraries |
339 | Summary(pl.UTF-8): Biblioteki współdzielone systemd | |
011bccb6 BZ |
340 | Group: Libraries |
341 | ||
342 | %description libs | |
5b9bde26 JB |
343 | Shared systemd libraries. |
344 | ||
345 | %description libs -l pl.UTF-8 | |
346 | Biblioteki współdzielone systemd. | |
011bccb6 | 347 | |
961baf80 AF |
348 | %package devel |
349 | Summary: Header files for systemd libraries | |
350 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek systemd | |
351 | Group: Development/Libraries | |
7e0e6b4e | 352 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
961baf80 AF |
353 | |
354 | %description devel | |
355 | Header files for systemd libraries. | |
356 | ||
357 | %description devel -l pl.UTF-8 | |
358 | Pliki nagłówkowe bibliotek systemd. | |
359 | ||
5b9bde26 JB |
360 | %package -n bash-completion-systemd |
361 | Summary: bash-completion for systemd | |
362 | Summary(pl.UTF-8): Bashowe dopełnianie składni dla systemd | |
363 | Group: Applications/Shells | |
7e0e6b4e | 364 | Requires: %{name} = %{epoch}:%{version} |
5b9bde26 JB |
365 | Requires: bash-completion |
366 | ||
367 | %description -n bash-completion-systemd | |
368 | bash-completion for systemd. | |
369 | ||
370 | %description -n bash-completion-systemd -l pl.UTF-8 | |
371 | Bashowe dopełnianie składni dla systemd | |
372 | ||
30121190 JR |
373 | %package -n udev |
374 | Summary: Device manager for the Linux 2.6 kernel series | |
375 | Summary(pl.UTF-8): Zarządca urządzeń dla Linuksa 2.6 | |
376 | Group: Base | |
377 | Requires: udev-core = %{epoch}:%{version}-%{release} | |
378 | Provides: dev = 3.5.0 | |
379 | Obsoletes: dev | |
380 | Obsoletes: hotplug | |
381 | Obsoletes: hotplug-input | |
382 | Obsoletes: hotplug-net | |
383 | Obsoletes: hotplug-pci | |
384 | Obsoletes: udev-compat | |
385 | Obsoletes: udev-dev | |
386 | Obsoletes: udev-extras < 20090628 | |
387 | Obsoletes: udev-tools | |
388 | ||
389 | %description -n udev | |
390 | udev is the device manager for the Linux 2.6 kernel series. Its | |
391 | primary function is managing device nodes in /dev. It is the successor | |
392 | of devfs and hotplug. | |
393 | ||
394 | %description -n udev -l pl.UTF-8 | |
395 | udev jest zarządcą urządzeń dla Linuksa 2.6. Jego główną funkcją jest | |
396 | zarządzanie węzłami urządzeń w katalogu /dev. Jest następcą devfs i | |
397 | hotpluga. | |
398 | ||
399 | %package -n udev-core | |
400 | Summary: A userspace implementation of devfs - core part of udev | |
401 | Summary(pl.UTF-8): Implementacja devfs w przestrzeni użytkownika - główna część udev | |
402 | Group: Base | |
403 | Requires(post,preun,postun): systemd-units >= 38 | |
404 | Requires: udev-libs = %{epoch}:%{version}-%{release} | |
405 | Requires: coreutils | |
406 | Requires: filesystem >= 3.0-45 | |
407 | Requires: setup >= 2.6.1-1 | |
408 | Requires: systemd-units >= 0.38 | |
409 | Requires: uname(release) >= 2.6.32 | |
410 | Obsoletes: udev-systemd | |
411 | Conflicts: rc-scripts < 0.4.5.3-1 | |
412 | Conflicts: udev < 1:118-1 | |
413 | ||
414 | %description -n udev-core | |
415 | A userspace implementation of devfs - core part of udev. | |
416 | ||
417 | %description -n udev-core -l pl.UTF-8 | |
418 | Implementacja devfs w przestrzeni użytkownika - główna część udev. | |
419 | ||
420 | %package -n udev-libs | |
421 | Summary: Shared library to access udev device information | |
422 | Summary(pl.UTF-8): Biblioteka współdzielona do dostępu do informacji o urządzeniach udev | |
423 | Group: Libraries | |
424 | ||
425 | %description -n udev-libs | |
426 | Shared libudev library to access udev device information. | |
427 | ||
428 | %description -n udev-libs -l pl.UTF-8 | |
429 | Biblioteka współdzielona libudev służąca do dostępu do informacji o | |
430 | urządzeniach udev. | |
431 | ||
432 | %package -n udev-devel | |
433 | Summary: Header file for libudev library | |
434 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki libudev | |
435 | Group: Development/Libraries | |
436 | Requires: udev-libs = %{epoch}:%{version}-%{release} | |
437 | ||
438 | %description -n udev-devel | |
439 | Header file for libudev library. | |
440 | ||
441 | %description -n udev-devel -l pl.UTF-8 | |
442 | Plik nagłówkowy biblioteki libudev. | |
443 | ||
444 | %package -n udev-static | |
445 | Summary: Static libudev library | |
446 | Summary(pl.UTF-8): Biblioteka statyczna libudev | |
447 | Group: Development/Libraries | |
448 | Requires: udev-devel = %{epoch}:%{version}-%{release} | |
449 | ||
450 | %description -n udev-static | |
451 | Static libudev library. | |
452 | ||
453 | %description -n udev-static -l pl.UTF-8 | |
454 | Biblioteka statyczna libudev. | |
455 | ||
456 | %package -n udev-apidocs | |
457 | Summary: libudev API documentation | |
458 | Summary(pl.UTF-8): Dokumentacja API libudev | |
459 | Group: Documentation | |
460 | Requires: gtk-doc-common | |
461 | ||
462 | %description -n udev-apidocs | |
463 | libudev API documentation. | |
464 | ||
465 | %description -n udev-apidocs -l pl.UTF-8 | |
466 | Dokumentacja API libudev. | |
467 | ||
468 | %package -n udev-glib | |
469 | Summary: Shared libgudev library - GObject bindings for libudev | |
470 | Summary(pl.UTF-8): Biblioteka współdzielona libgudev - wiązania GObject do libudev | |
471 | Group: Libraries | |
472 | Requires: udev-libs = %{epoch}:%{version}-%{release} | |
473 | Requires: glib2 >= 1:2.22.0 | |
474 | ||
475 | %description -n udev-glib | |
476 | Shared libgudev library - GObject bindings for libudev. | |
477 | ||
478 | %description -n udev-glib -l pl.UTF-8 | |
479 | Biblioteka współdzielona libgudev - wiązania GObject do libudev. | |
480 | ||
481 | %package -n udev-glib-devel | |
482 | Summary: Header file for libgudev library | |
483 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki libgudev | |
484 | Group: Development/Libraries | |
485 | Requires: udev-devel = %{epoch}:%{version}-%{release} | |
486 | Requires: udev-glib = %{epoch}:%{version}-%{release} | |
487 | Requires: glib2-devel >= 1:2.22.0 | |
488 | ||
489 | %description -n udev-glib-devel | |
490 | Header file for libgudev library. | |
491 | ||
492 | %description -n udev-glib-devel -l pl.UTF-8 | |
493 | Plik nagłówkowy biblioteki libgudev. | |
494 | ||
495 | %package -n udev-glib-static | |
496 | Summary: Static libgudev library | |
497 | Summary(pl.UTF-8): Biblioteka statyczna libgudev | |
498 | Group: Development/Libraries | |
499 | Requires: udev-glib-devel = %{epoch}:%{version}-%{release} | |
500 | ||
501 | %description -n udev-glib-static | |
502 | Static libgudev library. | |
503 | ||
504 | %description -n udev-glib-static -l pl.UTF-8 | |
505 | Biblioteka statyczna libgudev. | |
506 | ||
507 | %package -n udev-glib-apidocs | |
508 | Summary: libgudev API documentation | |
509 | Summary(pl.UTF-8): Dokumentacja API libgudev | |
510 | Group: Documentation | |
511 | Requires: gtk-doc-common | |
512 | ||
513 | %description -n udev-glib-apidocs | |
514 | libgudev API documentation. | |
515 | ||
516 | %description -n udev-glib-apidocs -l pl.UTF-8 | |
517 | Dokumentacja API libgudev. | |
518 | ||
519 | %package -n udev-initrd | |
520 | Summary: A userspace implementation of devfs - static binary for initrd | |
521 | Summary(pl.UTF-8): Implementacja devfs w przestrzeni użytkownika - statyczna binarka dla initrd | |
522 | Group: Base | |
523 | Requires: udev-core = %{epoch}:%{version}-%{release} | |
524 | Conflicts: geninitrd < 10000.10 | |
525 | ||
526 | %description -n udev-initrd | |
527 | A userspace implementation of devfs - static binary for initrd. | |
528 | ||
529 | %description -n udev-initrd -l pl.UTF-8 | |
530 | Implementacja devfs w przestrzeni użytkownika - statyczna binarka dla | |
531 | initrd. | |
532 | ||
ede8d3e5 | 533 | %prep |
534 | %setup -q | |
4c5b5ab6 | 535 | %patch0 -p1 |
252e1bad | 536 | %patch1 -p1 |
082609ad | 537 | #patch2 -p1 |
942c9075 | 538 | %patch3 -p1 |
d374e721 | 539 | %patch4 -p1 |
c75fd19d JR |
540 | %patch5 -p1 |
541 | %patch6 -p1 | |
542 | %if %{with uClibc} | |
543 | %patch7 -p1 | |
544 | %endif | |
3be4738a | 545 | %patch8 -p1 |
c75fd19d | 546 | %patch9 -p1 |
b77423ae | 547 | cp -p %{SOURCE2} src/systemd_booted.c |
ede8d3e5 | 548 | |
183de3c2 JR |
549 | %{__mv} src/udev/keymap/keyboard-force-release.sh{,.in} |
550 | ||
ede8d3e5 | 551 | %build |
c75fd19d JR |
552 | %{__gtkdocize} |
553 | %{__libtoolize} | |
4c5b5ab6 | 554 | %{__aclocal} -I m4 |
ede8d3e5 | 555 | %{__autoconf} |
6e34428f | 556 | %{__autoheader} |
ede8d3e5 | 557 | %{__automake} |
183de3c2 JR |
558 | %if %{with initrd} |
559 | patch -p1 <%{PATCH10} | |
560 | %configure \ | |
561 | %if "%{?configure_cache}" == "1" | |
562 | --cache-file=%{?configure_cache_file}%{!?configure_cache_file:configure}-initrd.cache \ | |
563 | %endif | |
564 | %{?with_uClibc:CC="%{_target_cpu}-uclibc-gcc"} \ | |
565 | %{?with_dietlibc:CC="diet %{__cc} %{rpmcflags} %{rpmldflags} -Os -D_BSD_SOURCE"} \ | |
566 | %{?with_klibc:CC="%{_bindir}/klcc"} \ | |
567 | %{?debug:--enable-debug} \ | |
568 | --disable-silent-rules \ | |
569 | --disable-shared \ | |
570 | --enable-static \ | |
571 | --with-distro=pld \ | |
572 | --with-rootprefix="" \ | |
573 | --with-rootlibdir=/%{_lib} \ | |
574 | --disable-rule_generator \ | |
575 | --disable-gudev \ | |
576 | --disable-keymap \ | |
577 | --disable-gtk-doc \ | |
578 | --disable-introspection \ | |
579 | --disable-logging \ | |
580 | --with-pci-ids-path=%{_sysconfdir}/pci.ids \ | |
581 | --disable-audit \ | |
582 | --disable-cryptsetup \ | |
583 | --disable-pam \ | |
584 | --disable-plymouth \ | |
585 | --disable-selinux \ | |
586 | --disable-tcpd \ | |
587 | --enable-split-usr | |
588 | ||
589 | %{__make} \ | |
590 | libudev-core.la \ | |
591 | systemd-udevd \ | |
592 | udevadm \ | |
593 | ata_id \ | |
594 | cdrom_id \ | |
595 | collect \ | |
596 | scsi_id \ | |
597 | v4l_id \ | |
598 | accelerometer \ | |
599 | mtd_probe \ | |
600 | LDFLAGS="-all-static" \ | |
601 | KMOD_LIBS="-lkmod -lz -llzma" | |
602 | ||
603 | mkdir udev-initrd | |
604 | cp -a systemd-udevd \ | |
605 | udevadm \ | |
606 | ata_id \ | |
607 | cdrom_id \ | |
608 | collect \ | |
609 | scsi_id \ | |
610 | v4l_id \ | |
611 | accelerometer \ | |
612 | mtd_probe \ | |
613 | udev-initrd/ | |
614 | ||
615 | %{__make} clean | |
616 | patch -p1 -R <%{PATCH10} | |
617 | %endif | |
618 | ||
9c0b975d | 619 | %configure \ |
c75fd19d | 620 | %{?debug:--enable-debug} \ |
6c89bbd4 ER |
621 | %{__enable_disable audit} \ |
622 | %{__enable_disable cryptsetup libcryptsetup} \ | |
6c89bbd4 | 623 | %{__enable_disable pam} \ |
4389e6f9 | 624 | %{__enable_disable plymouth} \ |
6c89bbd4 ER |
625 | %{__enable_disable selinux} \ |
626 | %{__enable_disable tcpd tcpwrap} \ | |
627 | --disable-silent-rules \ | |
183de3c2 JR |
628 | --enable-shared \ |
629 | --enable-static \ | |
5b9bde26 | 630 | --with-distro=pld \ |
c75fd19d | 631 | --with-rootprefix="" \ |
4389e6f9 | 632 | --with-rootlibdir=/%{_lib} \ |
c75fd19d JR |
633 | --with-html-dir=%{_gtkdocdir} \ |
634 | --with-pci-ids-path=%{_sysconfdir}/pci.ids \ | |
c75fd19d JR |
635 | --enable-gtk-doc \ |
636 | --enable-introspection \ | |
4389e6f9 | 637 | --enable-split-usr |
e1d9cc15 | 638 | |
ede8d3e5 | 639 | %{__make} |
b77423ae | 640 | ./libtool --mode=link --tag=CC %{__cc} %{rpmcppflags} %{rpmcflags} -o systemd_booted %{rpmldflags} src/systemd_booted.c -L. -lsystemd-daemon |
ede8d3e5 | 641 | |
642 | %install | |
643 | rm -rf $RPM_BUILD_ROOT | |
c75fd19d JR |
644 | install -d $RPM_BUILD_ROOT/var/lib/%{name}/coredump \ |
645 | $RPM_BUILD_ROOT{%{_sysconfdir}/modprobe.d,%{_sbindir}} | |
23107006 | 646 | |
ede8d3e5 | 647 | %{__make} install \ |
648 | DESTDIR=$RPM_BUILD_ROOT | |
649 | ||
216f25d7 | 650 | ./libtool --mode=install install -p -m755 systemd_booted $RPM_BUILD_ROOT/bin/systemd_booted |
b77423ae | 651 | |
c75fd19d JR |
652 | # compatibility symlinks to udevd binary |
653 | ln -s /lib/systemd/systemd-udevd $RPM_BUILD_ROOT/lib/udev/udevd | |
654 | ln -s /lib/systemd/systemd-udevd $RPM_BUILD_ROOT%{_sbindir}/udevd | |
655 | ||
656 | # compat symlinks for "/ merged into /usr" programs | |
657 | mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/udevadm | |
658 | ln -s %{_sbindir}/udevadm $RPM_BUILD_ROOT%{_bindir} | |
183de3c2 | 659 | ln -s /lib/udev $RPM_BUILD_ROOT/usr/lib/ |
c75fd19d JR |
660 | |
661 | # install custom udev rules from pld package | |
662 | cp -a %{SOURCE101} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d/40-alsa-restore.rules | |
663 | cp -a %{SOURCE102} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d/70-udev-pld.rules | |
664 | ||
665 | # install udev configs | |
666 | cp -a %{SOURCE103} $RPM_BUILD_ROOT%{_sysconfdir}/udev/links.conf | |
667 | ||
668 | # install udev executables (scripts, helpers, etc.) | |
669 | install -p %{SOURCE110} $RPM_BUILD_ROOT/lib/udev/net_helper | |
670 | install -p %{SOURCE111} $RPM_BUILD_ROOT%{_sbindir}/start_udev | |
671 | ||
672 | # install misc udev stuff | |
673 | cp -a %{SOURCE120} $RPM_BUILD_ROOT%{_sysconfdir}/modprobe.d/udev_blacklist.conf | |
674 | cp -a %{SOURCE121} $RPM_BUILD_ROOT%{_sysconfdir}/modprobe.d/fbdev-blacklist.conf | |
675 | ||
676 | echo ".so man8/systemd-udevd.8" >$RPM_BUILD_ROOT%{_mandir}/man8/udevd.8 | |
677 | ||
678 | %if %{with initrd} | |
679 | install -d $RPM_BUILD_ROOT%{_libdir}/initrd/udev | |
183de3c2 JR |
680 | install -p udev-initrd/udevadm $RPM_BUILD_ROOT%{_libdir}/initrd |
681 | install -p udev-initrd/systemd-udevd $RPM_BUILD_ROOT%{_libdir}/initrd | |
682 | # hardlink udevd -> systemd-udevd | |
683 | ln $RPM_BUILD_ROOT%{_libdir}/initrd/{systemd-,}udevd | |
c75fd19d | 684 | ln -s udevd $RPM_BUILD_ROOT%{_libdir}/initrd/udevstart |
183de3c2 JR |
685 | install -p udev-initrd/*_id $RPM_BUILD_ROOT%{_libdir}/initrd/udev |
686 | install -p udev-initrd/collect $RPM_BUILD_ROOT%{_libdir}/initrd/udev | |
687 | install -p udev-initrd/mtd_probe $RPM_BUILD_ROOT%{_libdir}/initrd/udev | |
c75fd19d JR |
688 | %endif |
689 | ||
4389e6f9 JR |
690 | # Main binary has been moved, but we don't want to break existing installs |
691 | ln -s ../lib/systemd/systemd $RPM_BUILD_ROOT/bin/systemd | |
692 | ||
1dcb74bb | 693 | # Create SysV compatibility symlinks. systemctl/systemd are smart |
2a61be78 | 694 | # enough to detect the way they were called |
c28b0c1c | 695 | install -d $RPM_BUILD_ROOT/sbin |
4389e6f9 | 696 | ln -s ../lib/systemd/systemd $RPM_BUILD_ROOT/sbin/init |
1dcb74bb | 697 | ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/halt |
698 | ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/poweroff | |
23107006 TP |
699 | ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/reboot |
700 | ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/runlevel | |
1dcb74bb | 701 | ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/shutdown |
702 | ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/telinit | |
1dcb74bb | 703 | |
5d32f234 | 704 | ln -s ../modules $RPM_BUILD_ROOT%{_sysconfdir}/modules-load.d/modules.conf |
44410185 JR |
705 | |
706 | # disable redundant SYSV services | |
707 | ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/allowlogin.service | |
4cc1cb1d | 708 | ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/console.service |
44410185 JR |
709 | ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/cpusets.service |
710 | ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/killall.service | |
711 | ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/netfs.service | |
712 | ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/random.service | |
5d32f234 | 713 | |
f1586299 | 714 | # add static (non-NetworkManager) networking |
216f25d7 | 715 | cp -p %{SOURCE3} $RPM_BUILD_ROOT%{systemdunitdir}/network.service |
f1586299 | 716 | |
d833377f JR |
717 | # restore bind-mounts /var/run -> run and /var/lock -> /run/lock |
718 | # we don't have those directories symlinked | |
870fdd3d JR |
719 | cp -p %{SOURCE4} $RPM_BUILD_ROOT%{systemdunitdir}/var-lock.mount |
720 | cp -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}/var-run.mount | |
d833377f JR |
721 | |
722 | # and remove tmp on tmpfs mount | |
723 | %{__rm} $RPM_BUILD_ROOT%{systemdunitdir}/tmp.mount | |
183de3c2 | 724 | %{__rm} $RPM_BUILD_ROOT%{systemdunitdir}/local-fs.target.wants/tmp.mount |
d833377f | 725 | |
44410185 | 726 | # Install and enable storage subsystems support services (RAID, LVM, etc.) |
216f25d7 ER |
727 | cp -p %{SOURCE10} $RPM_BUILD_ROOT%{systemdunitdir}/pld-storage-init-late.service |
728 | cp -p %{SOURCE11} $RPM_BUILD_ROOT%{systemdunitdir}/pld-storage-init.service | |
729 | cp -p %{SOURCE12} $RPM_BUILD_ROOT%{systemdunitdir}/pld-wait-storage.service | |
50b8f452 | 730 | cp -p %{SOURCE14} $RPM_BUILD_ROOT%{systemdunitdir}/pld-clean-tmp.service |
216f25d7 | 731 | install -p %{SOURCE13} $RPM_BUILD_ROOT/lib/systemd/pld-storage-init |
50b8f452 | 732 | install -p %{SOURCE15} $RPM_BUILD_ROOT/lib/systemd/pld-clean-tmp |
44410185 | 733 | |
50b8f452 ER |
734 | ln -s ../pld-storage-init-late.service $RPM_BUILD_ROOT%{systemdunitdir}/local-fs.target.wants |
735 | ln -s ../pld-storage-init.service $RPM_BUILD_ROOT%{systemdunitdir}/local-fs.target.wants | |
736 | ln -s ../pld-clean-tmp.service $RPM_BUILD_ROOT%{systemdunitdir}/local-fs.target.wants | |
c3037397 | 737 | |
216f25d7 ER |
738 | # handled by rc-local sysv service, no need for generator |
739 | %{__rm} $RPM_BUILD_ROOT/lib/systemd/system-generators/systemd-rc-local-generator | |
216f25d7 | 740 | |
2a61be78 TP |
741 | # Make sure these directories are properly owned: |
742 | # - halt,kexec,poweroff,reboot: generic ones used by ConsoleKit-systemd, | |
743 | # - syslog _might_ be used by some syslog implementation (none for now), | |
744 | # - isn't dbus populated by dbus-systemd only (so to be moved there)? | |
4cc1cb1d | 745 | install -d $RPM_BUILD_ROOT%{systemdunitdir}/{dbus,halt,kexec,poweroff,reboot,syslog}.target.wants |
961baf80 AF |
746 | |
747 | # Create new-style configuration files so that we can ghost-own them | |
70047b34 | 748 | touch $RPM_BUILD_ROOT%{_sysconfdir}/{hostname,locale.conf,machine-id,machine-info,timezone,vconsole.conf} |
4bbef33c | 749 | |
9d8b5dfe | 750 | # Install SysV conversion tool for systemd |
4f25b6ac | 751 | install -p %{SOURCE1} $RPM_BUILD_ROOT%{_bindir} |
9d8b5dfe BZ |
752 | |
753 | install -d $RPM_BUILD_ROOT/var/log | |
5a65c84e TP |
754 | :> $RPM_BUILD_ROOT/var/log/btmp |
755 | :> $RPM_BUILD_ROOT/var/log/wtmp | |
a761f93e | 756 | |
5d32f234 | 757 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} |
a86320a6 | 758 | %{__rm} $RPM_BUILD_ROOT/%{_lib}/security/pam_systemd.la |
5d32f234 TP |
759 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
760 | ||
ede8d3e5 | 761 | %clean |
762 | rm -rf $RPM_BUILD_ROOT | |
763 | ||
9638c72f | 764 | %post |
4bbef33c | 765 | /bin/systemd-machine-id-setup > /dev/null 2>&1 || : |
9638c72f | 766 | /bin/systemctl daemon-reexec > /dev/null 2>&1 || : |
c3037397 | 767 | |
961baf80 | 768 | %postun |
85879912 | 769 | if [ $1 -ge 1 ]; then |
961baf80 | 770 | /bin/systemctl try-restart systemd-logind.service >/dev/null 2>&1 || : |
9638c72f | 771 | fi |
772 | ||
3edd52a6 TP |
773 | %post libs -p /sbin/ldconfig |
774 | %postun libs -p /sbin/ldconfig | |
011bccb6 | 775 | |
961baf80 | 776 | %post units |
85879912 | 777 | if [ $1 -eq 1 ]; then |
961baf80 AF |
778 | # Try to read default runlevel from the old inittab if it exists |
779 | runlevel=$(/bin/awk -F ':' '$3 == "initdefault" && $1 !~ "^#" { print $2 }' /etc/inittab 2> /dev/null) | |
780 | if [ -z "$runlevel" ] ; then | |
4cc1cb1d | 781 | target="%{systemdunitdir}/graphical.target" |
961baf80 | 782 | else |
4cc1cb1d | 783 | target="%{systemdunitdir}/runlevel$runlevel.target" |
961baf80 AF |
784 | fi |
785 | ||
786 | # And symlink what we found to the new-style default.target | |
f341cd9b | 787 | ln -s "$target" %{_sysconfdir}/systemd/system/default.target >/dev/null 2>&1 || : |
cf819365 JR |
788 | |
789 | # Setup hostname | |
790 | [ -f /etc/sysconfig/network ] && . /etc/sysconfig/network | |
791 | if [ -n "$HOSTNAME" -a "$HOSTNAME" != "pldmachine" ]; then | |
792 | [ -f /etc/hostname ] && mv -f /etc/hostname /etc/hostname.rpmsave | |
793 | echo $HOSTNAME > /etc/hostname | |
794 | chmod 644 /etc/hostname | |
795 | fi | |
44410185 JR |
796 | |
797 | # Enable the services we install by default. | |
798 | /bin/systemctl enable \ | |
799 | getty@.service \ | |
800 | network.service \ | |
801 | remote-fs.target \ | |
802 | systemd-readahead-replay.service \ | |
803 | systemd-readahead-collect.service >/dev/null 2>&1 || : | |
9638c72f | 804 | fi |
c3037397 ER |
805 | |
806 | %preun units | |
961baf80 AF |
807 | if [ $1 -eq 0 ] ; then |
808 | /bin/systemctl disable \ | |
809 | getty@.service \ | |
f1586299 | 810 | network.service \ |
961baf80 AF |
811 | remote-fs.target \ |
812 | systemd-readahead-replay.service \ | |
813 | systemd-readahead-collect.service >/dev/null 2>&1 || : | |
814 | ||
f341cd9b | 815 | %{__rm} -f %{_sysconfdir}/systemd/system/default.target >/dev/null 2>&1 || : |
c3037397 | 816 | fi |
9638c72f | 817 | |
961baf80 | 818 | %postun units |
85879912 | 819 | if [ $1 -ge 1 ]; then |
9638c72f | 820 | /bin/systemctl daemon-reload > /dev/null 2>&1 || : |
821 | fi | |
822 | ||
f2a385f3 | 823 | %triggerpostun units -- %{name}-units < 43-7 |
44410185 | 824 | # Remove design fialures |
44410185 JR |
825 | rm -f %{_sysconfdir}/systemd/system/network.target.wants/ifcfg@*.service >/dev/null 2>&1 || : |
826 | rm -f %{_sysconfdir}/systemd/system/network.target.wants/network-post.service >/dev/null 2>&1 || : | |
f3877668 JR |
827 | rm -f %{_sysconfdir}/systemd/system/multi-user.target.wants/network-post.service >/dev/null 2>&1 || : |
828 | /bin/systemctl reenable network.service >/dev/null 2>&1 || : | |
44410185 | 829 | |
619d874f ER |
830 | %post plymouth |
831 | %systemd_reload | |
832 | ||
833 | %postun plymouth | |
834 | %systemd_reload | |
835 | ||
30121190 JR |
836 | %triggerpostun -n udev-core -- dev |
837 | if [ "$2" = 0 ]; then | |
838 | # need to kill and restart udevd as after obsoleting dev package the | |
839 | # /dev tree will remain empty. umask is needed as otherwise udev will | |
840 | # create devices with strange permissions (udev bug probably) | |
841 | umask 000 | |
842 | /sbin/start_udev || exit 0 | |
843 | fi | |
844 | ||
845 | %triggerpostun -n udev-core -- udev < 108 | |
846 | %{__sed} -i -e 's#IMPORT{program}="/sbin/#IMPORT{program}="#g' /etc/udev/rules.d/*.rules | |
847 | %if "%{_lib}" != "lib" | |
848 | %{__sed} -i -e 's#/%{_lib}/udev/#/lib/udev/#g' /etc/udev/rules.d/*.rules | |
849 | %endif | |
850 | ||
851 | %triggerpostun -n udev-core -- udev < 165 | |
852 | /sbin/udevadm info --convert-db | |
853 | ||
854 | %triggerpostun -n udev-core -- %{name}-core < 1:175-4 | |
855 | %systemd_trigger udev-settle.service | |
856 | ||
857 | %post -n udev-core | |
858 | if [ $1 -gt 1 ]; then | |
859 | if [ ! -x /bin/systemd_booted ] || ! /bin/systemd_booted; then | |
860 | if grep -qs devtmpfs /proc/mounts && [ -n "$(pidof udevd)" ]; then | |
861 | /sbin/udevadm control --exit | |
862 | /lib/udev/udevd --daemon | |
863 | fi | |
864 | else | |
865 | SYSTEMD_LOG_LEVEL=warning SYSTEMD_LOG_TARGET=syslog \ | |
866 | /bin/systemctl --quiet try-restart udev.service || : | |
867 | fi | |
868 | fi | |
869 | %systemd_post udev-settle.service | |
870 | ||
871 | %preun -n udev-core | |
872 | %systemd_preun udev-settle.service | |
873 | ||
874 | %postun -n udev-core | |
875 | %systemd_reload | |
876 | ||
877 | %post -n udev-libs -p /sbin/ldconfig | |
878 | %postun -n udev-libs -p /sbin/ldconfig | |
879 | ||
880 | %post -n udev-glib -p /sbin/ldconfig | |
881 | %postun -n udev-glib -p /sbin/ldconfig | |
882 | ||
ede8d3e5 | 883 | %files |
884 | %defattr(644,root,root,755) | |
1c239f8b | 885 | %doc DISTRO_PORTING README TODO |
6e34428f | 886 | /etc/dbus-1/system.d/org.freedesktop.hostname1.conf |
961baf80 AF |
887 | /etc/dbus-1/system.d/org.freedesktop.locale1.conf |
888 | /etc/dbus-1/system.d/org.freedesktop.login1.conf | |
c3037397 | 889 | /etc/dbus-1/system.d/org.freedesktop.systemd1.conf |
961baf80 | 890 | /etc/dbus-1/system.d/org.freedesktop.timedate1.conf |
3edd52a6 | 891 | %ghost %config(noreplace) %{_sysconfdir}/machine-id |
b77423ae AF |
892 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/hostname |
893 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/locale.conf | |
894 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/machine-info | |
b77423ae AF |
895 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/timezone |
896 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vconsole.conf | |
c75fd19d JR |
897 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/systemd/journald.conf |
898 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/systemd/logind.conf | |
899 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/systemd/system.conf | |
900 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/systemd/user.conf | |
2a61be78 | 901 | %dir %{_sysconfdir}/systemd/user |
44410185 JR |
902 | %dir %{_sysconfdir}/systemd/system/*.target.wants |
903 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/systemd/system/*.target.wants/*.service | |
904 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/systemd/system/*.target.wants/*.target | |
abd479ee | 905 | /etc/xdg/systemd |
c75fd19d JR |
906 | %attr(755,root,root) /bin/journalctl |
907 | %attr(755,root,root) /bin/loginctl | |
1dcb74bb | 908 | %attr(755,root,root) /bin/systemd |
909 | %attr(755,root,root) /bin/systemd-ask-password | |
c75fd19d | 910 | %attr(755,root,root) /bin/systemd-inhibit |
7a76bc86 | 911 | %attr(755,root,root) /bin/systemd-machine-id-setup |
1dcb74bb | 912 | %attr(755,root,root) /bin/systemd-notify |
913 | %attr(755,root,root) /bin/systemd-tty-ask-password-agent | |
d374e721 JR |
914 | %attr(755,root,root) %{_bindir}/systemd-cat |
915 | %attr(755,root,root) %{_bindir}/systemd-cgtop | |
23107006 | 916 | %attr(755,root,root) %{_bindir}/systemd-cgls |
c75fd19d JR |
917 | %attr(755,root,root) %{_bindir}/systemd-delta |
918 | %attr(755,root,root) %{_bindir}/systemd-detect-virt | |
57cd0d13 ZU |
919 | %attr(755,root,root) %{_bindir}/systemd-nspawn |
920 | %attr(755,root,root) %{_bindir}/systemd-stdio-bridge | |
2a61be78 | 921 | %attr(755,root,root) %{_bindir}/systemd-sysv-convert |
8a78a3e8 | 922 | %attr(755,root,root) /lib/systemd/pld-clean-tmp |
44410185 | 923 | %attr(755,root,root) /lib/systemd/pld-storage-init |
c75fd19d JR |
924 | %attr(755,root,root) /lib/systemd/systemd-ac-power |
925 | %attr(755,root,root) /lib/systemd/systemd-binfmt | |
926 | %attr(755,root,root) /lib/systemd/systemd-cgroups-agent | |
927 | %attr(755,root,root) /lib/systemd/systemd-coredump | |
928 | %attr(755,root,root) /lib/systemd/systemd-cryptsetup | |
929 | %attr(755,root,root) /lib/systemd/systemd-fsck | |
930 | %attr(755,root,root) /lib/systemd/systemd-hostnamed | |
931 | %attr(755,root,root) /lib/systemd/systemd-initctl | |
932 | %attr(755,root,root) /lib/systemd/systemd-journald | |
933 | %attr(755,root,root) /lib/systemd/systemd-localed | |
934 | %attr(755,root,root) /lib/systemd/systemd-logind | |
935 | %attr(755,root,root) /lib/systemd/systemd-modules-load | |
936 | %attr(755,root,root) /lib/systemd/systemd-multi-seat-x | |
937 | %attr(755,root,root) /lib/systemd/systemd-quotacheck | |
938 | %attr(755,root,root) /lib/systemd/systemd-random-seed | |
939 | %attr(755,root,root) /lib/systemd/systemd-readahead-collect | |
940 | %attr(755,root,root) /lib/systemd/systemd-readahead-replay | |
941 | %attr(755,root,root) /lib/systemd/systemd-remount-fs | |
942 | %attr(755,root,root) /lib/systemd/systemd-reply-password | |
943 | %attr(755,root,root) /lib/systemd/systemd-shutdown | |
944 | %attr(755,root,root) /lib/systemd/systemd-shutdownd | |
945 | %attr(755,root,root) /lib/systemd/systemd-sleep | |
946 | %attr(755,root,root) /lib/systemd/systemd-sysctl | |
947 | %attr(755,root,root) /lib/systemd/systemd-timedated | |
948 | %attr(755,root,root) /lib/systemd/systemd-timestamp | |
949 | %attr(755,root,root) /lib/systemd/systemd-update-utmp | |
950 | %attr(755,root,root) /lib/systemd/systemd-user-sessions | |
951 | %attr(755,root,root) /lib/systemd/systemd-vconsole-setup | |
c3037397 | 952 | %dir /lib/systemd/system-generators |
4389e6f9 | 953 | %attr(755,root,root) /lib/systemd/systemd |
5d32f234 | 954 | %attr(755,root,root) /lib/systemd/system-generators/systemd-*-generator |
abd479ee | 955 | %dir /lib/systemd/system-shutdown |
1c239f8b | 956 | /lib/udev/rules.d/99-systemd.rules |
961baf80 AF |
957 | /lib/udev/rules.d/70-uaccess.rules |
958 | /lib/udev/rules.d/71-seat.rules | |
959 | /lib/udev/rules.d/73-seat-late.rules | |
3edd52a6 TP |
960 | %dir %{_libexecdir}/systemd |
961 | %{_libexecdir}/systemd/user | |
2a61be78 | 962 | %dir %{_libexecdir}/systemd/user-generators |
c75fd19d JR |
963 | %config(noreplace,missingok) %{_libexecdir}/tmpfiles.d/legacy.conf |
964 | %config(noreplace,missingok) %{_libexecdir}/tmpfiles.d/systemd.conf | |
965 | %config(noreplace,missingok) %{_libexecdir}/tmpfiles.d/tmp.conf | |
966 | %config(noreplace,missingok) %{_libexecdir}/tmpfiles.d/x11.conf | |
961baf80 AF |
967 | %{_datadir}/dbus-1/interfaces/org.freedesktop.hostname1.xml |
968 | %{_datadir}/dbus-1/interfaces/org.freedesktop.locale1.xml | |
c3037397 | 969 | %{_datadir}/dbus-1/interfaces/org.freedesktop.systemd1.*.xml |
961baf80 | 970 | %{_datadir}/dbus-1/interfaces/org.freedesktop.timedate1.xml |
1c239f8b | 971 | %{_datadir}/dbus-1/services/org.freedesktop.systemd1.service |
6e34428f | 972 | %{_datadir}/dbus-1/system-services/org.freedesktop.hostname1.service |
961baf80 AF |
973 | %{_datadir}/dbus-1/system-services/org.freedesktop.locale1.service |
974 | %{_datadir}/dbus-1/system-services/org.freedesktop.login1.service | |
1c239f8b | 975 | %{_datadir}/dbus-1/system-services/org.freedesktop.systemd1.service |
961baf80 | 976 | %{_datadir}/dbus-1/system-services/org.freedesktop.timedate1.service |
6e34428f | 977 | %{_datadir}/polkit-1/actions/org.freedesktop.hostname1.policy |
961baf80 AF |
978 | %{_datadir}/polkit-1/actions/org.freedesktop.locale1.policy |
979 | %{_datadir}/polkit-1/actions/org.freedesktop.login1.policy | |
980 | %{_datadir}/polkit-1/actions/org.freedesktop.systemd1.policy | |
981 | %{_datadir}/polkit-1/actions/org.freedesktop.timedate1.policy | |
982 | %dir %{_datadir}/systemd | |
983 | %{_datadir}/systemd/kbd-model-map | |
c75fd19d JR |
984 | %{_mandir}/man1/journalctl.1* |
985 | %{_mandir}/man1/loginctl.1* | |
7a76bc86 | 986 | %{_mandir}/man1/systemd.1* |
c75fd19d JR |
987 | %{_mandir}/man1/systemd-ask-password.1* |
988 | %{_mandir}/man1/systemd-cat.1* | |
989 | %{_mandir}/man1/systemd-cgls.1* | |
990 | %{_mandir}/man1/systemd-cgtop.1* | |
991 | %{_mandir}/man1/systemd-delta.1* | |
992 | %{_mandir}/man1/systemd-detect-virt.1* | |
993 | %{_mandir}/man1/systemd-inhibit.1* | |
994 | %{_mandir}/man1/systemd-machine-id-setup.1* | |
995 | %{_mandir}/man1/systemd-notify.1* | |
996 | %{_mandir}/man1/systemd-nspawn.1* | |
6e34428f | 997 | %{_mandir}/man5/binfmt.d.5* |
1c239f8b | 998 | %{_mandir}/man5/hostname.5* |
c75fd19d | 999 | %{_mandir}/man5/journald.conf.5* |
1c239f8b | 1000 | %{_mandir}/man5/locale.conf.5* |
c75fd19d | 1001 | %{_mandir}/man5/logind.conf.5* |
7a76bc86 | 1002 | %{_mandir}/man5/machine-id.5* |
6e34428f | 1003 | %{_mandir}/man5/machine-info.5* |
1c239f8b | 1004 | %{_mandir}/man5/modules-load.d.5* |
1005 | %{_mandir}/man5/os-release.5* | |
6e34428f | 1006 | %{_mandir}/man5/sysctl.d.5* |
89d58574 | 1007 | %{_mandir}/man5/systemd.*.5* |
961baf80 | 1008 | %{_mandir}/man5/timezone.5* |
23107006 | 1009 | %{_mandir}/man5/vconsole.conf.5* |
1c239f8b | 1010 | %{_mandir}/man7/daemon.7* |
1011 | %{_mandir}/man7/sd-daemon.7* | |
c76a8951 | 1012 | %{_mandir}/man7/sd-login.7* |
1c239f8b | 1013 | %{_mandir}/man7/sd-readahead.7* |
1014 | %{_mandir}/man7/systemd.special.7* | |
c75fd19d | 1015 | %{_mandir}/man7/systemd.journal-fields.7* |
24f95219 ER |
1016 | %dir /var/lib/%{name} |
1017 | %dir /var/lib/%{name}/coredump | |
a761f93e TP |
1018 | %attr(640,root,root) %ghost /var/log/btmp |
1019 | %attr(664,root,utmp) %ghost /var/log/wtmp | |
c3037397 | 1020 | |
6c89bbd4 | 1021 | %if %{with pam} |
a86320a6 | 1022 | %attr(755,root,root) /%{_lib}/security/pam_systemd.so |
6c89bbd4 ER |
1023 | %{_mandir}/man8/pam_systemd.8* |
1024 | %endif | |
1025 | ||
c97dacdd | 1026 | %files init |
5b9bde26 | 1027 | %defattr(644,root,root,755) |
c97dacdd TP |
1028 | %attr(755,root,root) /sbin/halt |
1029 | %attr(755,root,root) /sbin/init | |
1030 | %attr(755,root,root) /sbin/poweroff | |
1031 | %attr(755,root,root) /sbin/reboot | |
1032 | %attr(755,root,root) /sbin/runlevel | |
1033 | %attr(755,root,root) /sbin/shutdown | |
1034 | %attr(755,root,root) /sbin/telinit | |
1035 | %{_mandir}/man1/init.1 | |
1036 | %{_mandir}/man8/halt.8* | |
1037 | %{_mandir}/man8/poweroff.8 | |
1038 | %{_mandir}/man8/reboot.8 | |
1039 | %{_mandir}/man8/runlevel.8* | |
1040 | %{_mandir}/man8/shutdown.8* | |
1041 | %{_mandir}/man8/telinit.8* | |
1042 | ||
c3037397 ER |
1043 | %files units |
1044 | %defattr(644,root,root,755) | |
abd479ee MB |
1045 | %dir %{_sysconfdir}/binfmt.d |
1046 | %dir %{_sysconfdir}/modules-load.d | |
5d32f234 | 1047 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/modules-load.d/modules.conf |
abd479ee | 1048 | %dir %{_sysconfdir}/sysctl.d |
c3037397 ER |
1049 | %dir %{_sysconfdir}/systemd |
1050 | %dir %{_sysconfdir}/systemd/system | |
1051 | %dir %{_sysconfdir}/tmpfiles.d | |
85879912 ER |
1052 | %dir %{_libexecdir}/binfmt.d |
1053 | %dir %{_libexecdir}/modules-load.d | |
1054 | %dir %{_libexecdir}/sysctl.d | |
3be4738a JR |
1055 | # Don't package the kernel.core_pattern setting until systemd-coredump |
1056 | # is a part of an actual systemd release and it's made clear how to | |
1057 | # get the core dumps out of the journal. | |
1058 | #%{_libexecdir}/sysctl.d/coredump.conf | |
c3037397 ER |
1059 | %attr(755,root,root) /bin/systemctl |
1060 | %attr(755,root,root) /bin/systemd-tmpfiles | |
b77423ae | 1061 | %attr(755,root,root) /bin/systemd_booted |
c3037397 | 1062 | %{_mandir}/man1/systemctl.1* |
89d58574 | 1063 | %{_mandir}/man5/tmpfiles.d.5* |
c3037397 | 1064 | %{_mandir}/man8/systemd-tmpfiles.8* |
961baf80 | 1065 | %{_npkgconfigdir}/systemd.pc |
c3037397 | 1066 | |
4cc1cb1d ER |
1067 | %{systemdunitdir}/*.automount |
1068 | %{systemdunitdir}/*.mount | |
1069 | %{systemdunitdir}/*.path | |
1070 | %{systemdunitdir}/*.service | |
1071 | %{systemdunitdir}/*.socket | |
1072 | %{systemdunitdir}/*.target | |
1073 | %{systemdunitdir}/*.timer | |
e4c66821 JB |
1074 | %if %{with plymouth} |
1075 | %exclude %{systemdunitdir}/plymouth*.service | |
1076 | %exclude %{systemdunitdir}/systemd-ask-password-plymouth.* | |
1077 | %endif | |
1078 | %dir %{systemdunitdir}/basic.target.wants | |
1079 | %dir %{systemdunitdir}/dbus.target.wants | |
1080 | %dir %{systemdunitdir}/final.target.wants | |
1081 | %dir %{systemdunitdir}/graphical.target.wants | |
1082 | %dir %{systemdunitdir}/halt.target.wants | |
1083 | %dir %{systemdunitdir}/kexec.target.wants | |
1084 | %dir %{systemdunitdir}/local-fs.target.wants | |
1085 | %dir %{systemdunitdir}/multi-user.target.wants | |
1086 | %dir %{systemdunitdir}/poweroff.target.wants | |
1087 | %dir %{systemdunitdir}/reboot.target.wants | |
1088 | %dir %{systemdunitdir}/runlevel[12345].target.wants | |
1089 | %dir %{systemdunitdir}/shutdown.target.wants | |
1090 | %dir %{systemdunitdir}/sockets.target.wants | |
1091 | %dir %{systemdunitdir}/sysinit.target.wants | |
1092 | %dir %{systemdunitdir}/syslog.target.wants | |
1093 | %config(noreplace,missingok) %{systemdunitdir}/basic.target.wants/* | |
1094 | %config(noreplace,missingok) %{systemdunitdir}/final.target.wants/* | |
1095 | %config(noreplace,missingok) %{systemdunitdir}/graphical.target.wants/* | |
1096 | %config(noreplace,missingok) %{systemdunitdir}/local-fs.target.wants/* | |
1097 | %config(noreplace,missingok) %{systemdunitdir}/multi-user.target.wants/getty.target | |
a2018b66 | 1098 | %config(noreplace,missingok) %{systemdunitdir}/multi-user.target.wants/rc-local.service |
e4c66821 JB |
1099 | %config(noreplace,missingok) %{systemdunitdir}/multi-user.target.wants/systemd-ask-password-wall.path |
1100 | %config(noreplace,missingok) %{systemdunitdir}/multi-user.target.wants/systemd-logind.service | |
1101 | %config(noreplace,missingok) %{systemdunitdir}/multi-user.target.wants/systemd-user-sessions.service | |
1102 | %config(noreplace,missingok) %{systemdunitdir}/runlevel[12345].target.wants/* | |
1103 | %config(noreplace,missingok) %{systemdunitdir}/shutdown.target.wants/* | |
1104 | %config(noreplace,missingok) %{systemdunitdir}/sockets.target.wants/* | |
8450fd95 | 1105 | %{?with_cryptsetup:%config(noreplace,missingok) %{systemdunitdir}/sysinit.target.wants/cryptsetup.target} |
e4c66821 JB |
1106 | %config(noreplace,missingok) %{systemdunitdir}/sysinit.target.wants/dev-hugepages.mount |
1107 | %config(noreplace,missingok) %{systemdunitdir}/sysinit.target.wants/dev-mqueue.mount | |
1108 | %config(noreplace,missingok) %{systemdunitdir}/sysinit.target.wants/proc-sys-fs-binfmt_misc.automount | |
1109 | %config(noreplace,missingok) %{systemdunitdir}/sysinit.target.wants/sys-*.mount | |
1110 | %config(noreplace,missingok) %{systemdunitdir}/sysinit.target.wants/systemd-* | |
1111 | ||
1112 | %if %{with plymouth} | |
1113 | %files plymouth | |
1114 | %defattr(644,root,root,755) | |
1115 | %{systemdunitdir}/plymouth-halt.service | |
1116 | %{systemdunitdir}/plymouth-kexec.service | |
1117 | %{systemdunitdir}/plymouth-poweroff.service | |
1118 | %{systemdunitdir}/plymouth-quit-wait.service | |
1119 | %{systemdunitdir}/plymouth-quit.service | |
1120 | %{systemdunitdir}/plymouth-read-write.service | |
1121 | %{systemdunitdir}/plymouth-reboot.service | |
1122 | %{systemdunitdir}/plymouth-start.service | |
1123 | %{systemdunitdir}/systemd-ask-password-plymouth.path | |
1124 | %{systemdunitdir}/systemd-ask-password-plymouth.service | |
1125 | %config(noreplace,missingok) %{systemdunitdir}/halt.target.wants/plymouth-halt.service | |
1126 | %config(noreplace,missingok) %{systemdunitdir}/kexec.target.wants/plymouth-kexec.service | |
1127 | %config(noreplace,missingok) %{systemdunitdir}/multi-user.target.wants/plymouth-quit.service | |
1128 | %config(noreplace,missingok) %{systemdunitdir}/multi-user.target.wants/plymouth-quit-wait.service | |
1129 | %config(noreplace,missingok) %{systemdunitdir}/poweroff.target.wants/plymouth-poweroff.service | |
1130 | %config(noreplace,missingok) %{systemdunitdir}/reboot.target.wants/plymouth-reboot.service | |
1131 | %config(noreplace,missingok) %{systemdunitdir}/sysinit.target.wants/plymouth-read-write.service | |
1132 | %config(noreplace,missingok) %{systemdunitdir}/sysinit.target.wants/plymouth-start.service | |
1133 | %endif | |
10ffdcd2 | 1134 | |
4e5e9c32 ER |
1135 | %files analyze |
1136 | %defattr(644,root,root,755) | |
1137 | %attr(755,root,root) %{_bindir}/systemd-analyze | |
1138 | ||
5b9bde26 | 1139 | %files libs |
6c89bbd4 | 1140 | %defattr(644,root,root,755) |
6ba1f779 MB |
1141 | %attr(755,root,root) /%{_lib}/libsystemd-daemon.so.*.*.* |
1142 | %attr(755,root,root) %ghost /%{_lib}/libsystemd-daemon.so.0 | |
1143 | %attr(755,root,root) /%{_lib}/libsystemd-id128.so.*.*.* | |
1144 | %attr(755,root,root) %ghost /%{_lib}/libsystemd-id128.so.0 | |
1145 | %attr(755,root,root) /%{_lib}/libsystemd-journal.so.*.*.* | |
1146 | %attr(755,root,root) %ghost /%{_lib}/libsystemd-journal.so.0 | |
1147 | %attr(755,root,root) /%{_lib}/libsystemd-login.so.*.*.* | |
1148 | %attr(755,root,root) %ghost /%{_lib}/libsystemd-login.so.0 | |
961baf80 AF |
1149 | |
1150 | %files devel | |
1151 | %defattr(644,root,root,755) | |
89d58574 | 1152 | %attr(755,root,root) %{_libdir}/libsystemd-daemon.so |
c76a8951 BZ |
1153 | %attr(755,root,root) %{_libdir}/libsystemd-id128.so |
1154 | %attr(755,root,root) %{_libdir}/libsystemd-journal.so | |
89d58574 | 1155 | %attr(755,root,root) %{_libdir}/libsystemd-login.so |
5b9bde26 | 1156 | %{_includedir}/%{name} |
961baf80 | 1157 | %{_pkgconfigdir}/libsystemd-daemon.pc |
c76a8951 BZ |
1158 | %{_pkgconfigdir}/libsystemd-id128.pc |
1159 | %{_pkgconfigdir}/libsystemd-journal.pc | |
961baf80 | 1160 | %{_pkgconfigdir}/libsystemd-login.pc |
2be4e142 | 1161 | %{_mandir}/man3/sd_booted.3* |
c76a8951 BZ |
1162 | %{_mandir}/man3/sd_get_seats.3* |
1163 | %{_mandir}/man3/sd_get_sessions.3* | |
1164 | %{_mandir}/man3/sd_get_uids.3* | |
2be4e142 | 1165 | %{_mandir}/man3/sd_is_fifo.3* |
c76a8951 | 1166 | %{_mandir}/man3/sd_is_mq.3* |
2be4e142 JR |
1167 | %{_mandir}/man3/sd_is_socket.3 |
1168 | %{_mandir}/man3/sd_is_socket_inet.3 | |
1169 | %{_mandir}/man3/sd_is_socket_unix.3 | |
1170 | %{_mandir}/man3/sd_listen_fds.3* | |
c76a8951 BZ |
1171 | %{_mandir}/man3/sd_login_monitor_flush.3* |
1172 | %{_mandir}/man3/sd_login_monitor_get_fd.3* | |
1173 | %{_mandir}/man3/sd_login_monitor_new.3* | |
1174 | %{_mandir}/man3/sd_login_monitor_unref.3* | |
2be4e142 JR |
1175 | %{_mandir}/man3/sd_notify.3* |
1176 | %{_mandir}/man3/sd_notifyf.3 | |
c76a8951 BZ |
1177 | %{_mandir}/man3/sd_pid_get_owner_uid.3* |
1178 | %{_mandir}/man3/sd_pid_get_session.3* | |
1179 | %{_mandir}/man3/sd_pid_get_unit.3* | |
2be4e142 | 1180 | %{_mandir}/man3/sd_readahead.3* |
c76a8951 BZ |
1181 | %{_mandir}/man3/sd_seat_can_multi_session.3* |
1182 | %{_mandir}/man3/sd_seat_get_active.3* | |
1183 | %{_mandir}/man3/sd_seat_get_sessions.3* | |
2be4e142 JR |
1184 | %{_mandir}/man3/sd_session_get_class.3* |
1185 | %{_mandir}/man3/sd_session_get_display.3* | |
c76a8951 | 1186 | %{_mandir}/man3/sd_session_get_seat.3* |
2be4e142 JR |
1187 | %{_mandir}/man3/sd_session_get_service.3* |
1188 | %{_mandir}/man3/sd_session_get_type.3* | |
c76a8951 BZ |
1189 | %{_mandir}/man3/sd_session_get_uid.3* |
1190 | %{_mandir}/man3/sd_session_is_active.3* | |
1191 | %{_mandir}/man3/sd_uid_get_seats.3* | |
1192 | %{_mandir}/man3/sd_uid_get_sessions.3* | |
1193 | %{_mandir}/man3/sd_uid_get_state.3* | |
1194 | %{_mandir}/man3/sd_uid_is_on_seat.3* | |
5b9bde26 JB |
1195 | |
1196 | %files -n bash-completion-systemd | |
1197 | %defattr(644,root,root,755) | |
391eea76 | 1198 | /etc/bash_completion.d/systemd-bash-completion.sh |
ae4d0acb | 1199 | |
30121190 JR |
1200 | %files -n udev |
1201 | %defattr(644,root,root,755) | |
1202 | %dev(c,1,3) %attr(666,root,root) /dev/null | |
1203 | %dev(c,5,1) %attr(660,root,console) /dev/console | |
1204 | %dev(c,1,5) %attr(666,root,root) /dev/zero | |
1205 | ||
1206 | %files -n udev-core | |
1207 | %defattr(644,root,root,755) | |
30121190 JR |
1208 | |
1209 | %dir /lib/udev | |
183de3c2 | 1210 | /usr/lib/udev |
30121190 | 1211 | |
183de3c2 JR |
1212 | # /lib/udev/devices/ are not read anymore; systemd-tmpfiles |
1213 | # should be used to create dead device nodes as workarounds for broken | |
1214 | # subsystems. | |
30121190 JR |
1215 | %dir /lib/udev/devices |
1216 | ||
30121190 JR |
1217 | %attr(755,root,root) /lib/udev/collect |
1218 | ||
1219 | %attr(755,root,root) /lib/udev/keyboard-force-release.sh | |
1220 | ||
1221 | %attr(755,root,root) /lib/udev/net_helper | |
1222 | ||
1223 | %attr(755,root,root) /lib/udev/ata_id | |
1224 | %attr(755,root,root) /lib/udev/cdrom_id | |
1225 | %attr(755,root,root) /lib/udev/mtd_probe | |
1226 | %attr(755,root,root) /lib/udev/scsi_id | |
1227 | %attr(755,root,root) /lib/udev/v4l_id | |
1228 | ||
c75fd19d | 1229 | %attr(755,root,root) /lib/systemd/systemd-udevd |
30121190 JR |
1230 | %attr(755,root,root) /lib/udev/udevd |
1231 | ||
1232 | %attr(755,root,root) /lib/udev/keymap | |
1233 | %dir /lib/udev/keymaps | |
1234 | /lib/udev/keymaps/* | |
1235 | ||
1236 | %attr(755,root,root) /lib/udev/accelerometer | |
1237 | %attr(755,root,root) /lib/udev/findkeyboards | |
1238 | ||
1239 | %attr(755,root,root) %{_sbindir}/start_udev | |
1240 | %attr(755,root,root) %{_sbindir}/udevd | |
1241 | %attr(755,root,root) %{_sbindir}/udevadm | |
1242 | %attr(755,root,root) %{_bindir}/udevadm | |
1243 | ||
1244 | %dir %{_sysconfdir}/udev | |
1245 | %dir %{_sysconfdir}/udev/rules.d | |
1246 | ||
1247 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/modprobe.d/fbdev-blacklist.conf | |
1248 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/modprobe.d/udev_blacklist.conf | |
1249 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/udev/links.conf | |
1250 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/udev/rules.d/40-alsa-restore.rules | |
1251 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/udev/rules.d/70-udev-pld.rules | |
1252 | ||
1253 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/udev/udev.conf | |
1254 | ||
1255 | # rules below are NOT supposed to be changed by users | |
1256 | /lib/udev/rules.d/42-usb-hid-pm.rules | |
1257 | /lib/udev/rules.d/50-udev-default.rules | |
1258 | /lib/udev/rules.d/60-cdrom_id.rules | |
30121190 JR |
1259 | /lib/udev/rules.d/60-persistent-alsa.rules |
1260 | /lib/udev/rules.d/60-persistent-input.rules | |
1261 | /lib/udev/rules.d/60-persistent-serial.rules | |
1262 | /lib/udev/rules.d/60-persistent-storage-tape.rules | |
1263 | /lib/udev/rules.d/60-persistent-storage.rules | |
1264 | /lib/udev/rules.d/60-persistent-v4l.rules | |
1265 | /lib/udev/rules.d/61-accelerometer.rules | |
1266 | /lib/udev/rules.d/75-net-description.rules | |
1267 | /lib/udev/rules.d/75-probe_mtd.rules | |
1268 | /lib/udev/rules.d/75-tty-description.rules | |
1269 | /lib/udev/rules.d/78-sound-card.rules | |
1270 | /lib/udev/rules.d/80-drivers.rules | |
1271 | /lib/udev/rules.d/95-keyboard-force-release.rules | |
1272 | /lib/udev/rules.d/95-keymap.rules | |
1273 | /lib/udev/rules.d/95-udev-late.rules | |
1274 | ||
1275 | %{_mandir}/man7/udev.7* | |
c75fd19d JR |
1276 | %{_mandir}/man8/systemd-udevd.8* |
1277 | %{_mandir}/man8/udevadm.8* | |
1278 | %{_mandir}/man8/udevd.8* | |
1279 | ||
1280 | #{systemdunitdir}/basic.target.wants/udev-trigger.service | |
1281 | #{systemdunitdir}/basic.target.wants/udev.service | |
1282 | %{systemdunitdir}/sockets.target.wants/systemd-udev-control.socket | |
1283 | %{systemdunitdir}/sockets.target.wants/systemd-udev-kernel.socket | |
1284 | %{systemdunitdir}/systemd-udev-control.socket | |
1285 | %{systemdunitdir}/systemd-udev-kernel.socket | |
1286 | %{systemdunitdir}/systemd-udev-settle.service | |
1287 | %{systemdunitdir}/systemd-udev-trigger.service | |
1288 | %{systemdunitdir}/systemd-udev.service | |
30121190 JR |
1289 | |
1290 | %files -n udev-libs | |
1291 | %defattr(644,root,root,755) | |
1292 | %attr(755,root,root) /%{_lib}/libudev.so.*.*.* | |
c75fd19d | 1293 | %attr(755,root,root) %ghost /%{_lib}/libudev.so.1 |
30121190 JR |
1294 | |
1295 | %files -n udev-devel | |
1296 | %defattr(644,root,root,755) | |
1297 | %attr(755,root,root) %{_libdir}/libudev.so | |
30121190 JR |
1298 | %{_includedir}/libudev.h |
1299 | %{_pkgconfigdir}/libudev.pc | |
1300 | %{_npkgconfigdir}/udev.pc | |
1301 | ||
1302 | %files -n udev-static | |
1303 | %defattr(644,root,root,755) | |
1304 | %attr(755,root,root) %{_libdir}/libudev.a | |
1305 | ||
1306 | %files -n udev-apidocs | |
1307 | %defattr(644,root,root,755) | |
1308 | %{_gtkdocdir}/libudev | |
1309 | ||
1310 | %files -n udev-glib | |
1311 | %defattr(644,root,root,755) | |
1312 | %attr(755,root,root) /%{_lib}/libgudev-1.0.so.*.*.* | |
1313 | %attr(755,root,root) %ghost /%{_lib}/libgudev-1.0.so.0 | |
1314 | %{_libdir}/girepository-1.0/GUdev-1.0.typelib | |
1315 | ||
1316 | %files -n udev-glib-devel | |
1317 | %defattr(644,root,root,755) | |
1318 | %attr(755,root,root) %{_libdir}/libgudev-1.0.so | |
30121190 JR |
1319 | %{_includedir}/gudev-1.0 |
1320 | %{_pkgconfigdir}/gudev-1.0.pc | |
1321 | %{_datadir}/gir-1.0/GUdev-1.0.gir | |
1322 | ||
1323 | %files -n udev-glib-static | |
1324 | %defattr(644,root,root,755) | |
1325 | %attr(755,root,root) %{_libdir}/libgudev-1.0.a | |
1326 | ||
1327 | %files -n udev-glib-apidocs | |
1328 | %defattr(644,root,root,755) | |
1329 | %{_gtkdocdir}/gudev | |
1330 | ||
1331 | %if %{with initrd} | |
1332 | %files -n udev-initrd | |
1333 | %defattr(644,root,root,755) | |
1334 | %dir %{_libdir}/initrd/udev | |
183de3c2 | 1335 | %attr(755,root,root) %{_libdir}/initrd/systemd-udevd |
30121190 JR |
1336 | %attr(755,root,root) %{_libdir}/initrd/udevd |
1337 | %attr(755,root,root) %{_libdir}/initrd/udevadm | |
1338 | %attr(755,root,root) %{_libdir}/initrd/udevstart | |
1339 | %attr(755,root,root) %{_libdir}/initrd/udev/*_id | |
1340 | %attr(755,root,root) %{_libdir}/initrd/udev/collect | |
183de3c2 | 1341 | %attr(755,root,root) %{_libdir}/initrd/udev/mtd_probe |
30121190 | 1342 | %endif |