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