2 # - pldize vconsole setup:
3 # http://cgit.freedesktop.org/systemd/systemd/tree/src/vconsole/vconsole-setup.c
4 # - initrd needs love (does not build and is probably completly unusable in current form)
5 # - merge rpm macros provided by systemd with ours
8 %bcond_without audit # without audit support
9 %bcond_without cryptsetup # without cryptsetup support
10 %bcond_without microhttpd # microhttpd support
11 %bcond_without pam # PAM authentication support
12 %bcond_without qrencode # QRencode support
13 %bcond_without selinux # without SELinux support
14 %bcond_without tcpd # libwrap (tcp_wrappers) support
16 %bcond_with initrd # build without udev-initrd
17 %bcond_with uClibc # link initrd version with static uClibc
18 %bcond_with klibc # link initrd version with static klibc
19 %bcond_with dietlibc # link initrd version with static dietlibc (currently broken and unsupported)
20 %bcond_without glibc # link initrd version with static glibc
26 # if one of the *libc is enabled disable default uClibc
27 %if %{with dietlibc} && %{with uClibc}
31 %if %{with glibc} && %{with uClibc}
35 %if %{with klibc} && %{with uClibc}
39 Summary: A System and Service Manager
40 Summary(pl.UTF-8): systemd - zarządca systemu i usług dla Linuksa
42 # Verify ChangeLog and NEWS when updating (since there are incompatible/breaking changes very often)
48 Source0: http://www.freedesktop.org/software/systemd/%{name}-%{version}.tar.xz
49 # Source0-md5: 05ebd7f108e420e2b4e4810ea4b3c810
50 Source1: %{name}-sysv-convert
51 Source2: %{name}_booted.c
52 Source3: network.service
53 Source4: var-lock.mount
54 Source5: var-run.mount
55 Source10: pld-storage-init-late.service
56 Source11: pld-storage-init.service
57 Source12: pld-wait-storage.service
58 Source13: pld-storage-init.sh
59 Source14: pld-clean-tmp.service
60 Source15: pld-clean-tmp.sh
61 Source16: pld-rc-inetd-generator.sh
62 Source17: rc-inetd.service
63 Source18: default.preset
65 Source101: udev-alsa.rules
67 Source103: udev-links.conf
69 Source110: udev-net.helper
72 Source120: udev.blacklist
73 Source121: fbdev.blacklist
74 Patch0: target-pld.patch
75 Patch1: config-pld.patch
76 Patch2: shut-sysv-up.patch
77 Patch3: pld-sysv-network.patch
78 Patch4: tmpfiles-not-fatal.patch
80 Patch7: udev-uClibc.patch
81 Patch8: udev-ploop-rules.patch
82 Patch9: udevadm-in-sbin.patch
83 Patch10: net-rename-revert.patch
84 # hack set to allow static udev build
85 Patch100: static-udev.patch
86 URL: http://www.freedesktop.org/wiki/Software/systemd
87 BuildRequires: acl-devel
88 %{?with_audit:BuildRequires: audit-libs-devel}
89 BuildRequires: autoconf >= 2.64
90 BuildRequires: automake >= 1:1.11
91 BuildRequires: binutils >= 3:2.22.52.0.1-2
92 %{?with_cryptsetup:BuildRequires: cryptsetup-devel >= 1.4.3}
93 BuildRequires: dbus-devel >= 1.3.2
94 BuildRequires: docbook-style-xsl
95 BuildRequires: glib2-devel >= 1:2.22.0
96 BuildRequires: glibc-misc
97 BuildRequires: gobject-introspection-devel >= 1.31.1
99 BuildRequires: gtk-doc >= 1.18
100 BuildRequires: intltool >= 0.40.0
101 BuildRequires: kmod-devel >= 5
102 BuildRequires: libblkid-devel >= 2.20
103 BuildRequires: libcap-devel
104 BuildRequires: libgcrypt-devel >= 1.4.5
105 %{?with_microhttpd:BuildRequires: libmicrohttpd-devel >= 0.9.5}
106 %{?with_selinux:BuildRequires: libselinux-devel >= 2.1.9}
107 BuildRequires: libtool >= 2:2.2
108 %{?with_tcpd:BuildRequires: libwrap-devel}
109 BuildRequires: libxslt-progs
111 %{?with_pam:BuildRequires: pam-devel}
112 BuildRequires: pciutils
113 BuildRequires: pkgconfig >= 0.9.0
114 BuildRequires: python-devel
115 BuildRequires: python-modules
116 %{?with_qrencode:BuildRequires: qrencode-devel}
117 BuildRequires: rpm-pythonprov
118 BuildRequires: rpmbuild(macros) >= 1.628
119 BuildRequires: sed >= 4.0
120 BuildRequires: usbutils >= 0.82
121 BuildRequires: xz-devel
122 BuildRequires: zlib-devel
124 BuildRequires: acl-static
125 BuildRequires: attr-static
126 %{?with_dietlibc:BuildRequires: dietlibc-static}
127 BuildRequires: glib2-static >= 1:2.22.0
128 %{?with_glibc:BuildRequires: glibc-static}
129 %{?with_klibc:BuildRequires: klibc-static}
130 BuildRequires: kmod-libs-static >= 5
131 BuildRequires: libblkid-static >= 2.20
132 %{?with_glibc:BuildRequires: libselinux-static >= 2.1.9}
133 %{?with_glibc:BuildRequires: libsepol-static}
134 %{?with_klibc:BuildRequires: linux-libc-headers}
135 BuildRequires: pcre-static
136 %{?with_uClibc:BuildRequires: uClibc-static >= 4:0.9.30.3}
137 BuildRequires: xz-static
138 BuildRequires: zlib-static
140 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
141 Requires: %{name}-units = %{epoch}:%{version}-%{release}
142 Requires: /etc/os-release
143 Requires: SysVinit-tools
145 %{?with_cryptsetup:Requires: cryptsetup >= 1.4.3}
146 Requires: dbus >= 1.4.16-6
147 Requires: filesystem >= 4.0-3
148 Requires: libutempter
149 Requires: rc-scripts >= 0.4.5.3-7
150 Requires: setup >= 2.8.0-2
151 Requires: udev-core = %{epoch}:%{version}-%{release}
152 Requires: udev-libs = %{epoch}:%{version}-%{release}
153 Requires: virtual(module-tools)
155 Suggests: fsck >= 2.20
157 Suggests: nss_myhostname
158 Suggests: service(klogd)
159 Suggests: service(syslog)
160 Provides: udev-acl = %{epoch}:%{version}-%{release}
161 Obsoletes: systemd-no-compat-tmpfiles
162 Obsoletes: udev-systemd
163 # systemd takes care of that and causes problems
164 Conflicts: binfmt-detector
165 # sytemd wants pam with pam_systemd.so in system-auth...
166 Conflicts: pam < 1:1.1.5-5
167 # ...and sudo hates it
168 Conflicts: sudo < 1:1.7.8p2-4
170 Conflicts: xinitrc-ng < 1.0
171 # systemd scripts use options not present in older versions
172 Conflicts: kpartx < 0.4.9-7
173 Conflicts: multipath-tools < 0.4.9-7
174 # no tmpfs on /media, use /run/media/$USER for mounting
175 Conflicts: udisks2 < 1.92.0
176 # packages that have dirs under /var/run and/or /var/lock must provide tmpfiles configs
177 Conflicts: ConsoleKit-dirs < 0.4.5-7
178 Conflicts: NetworkManager < 2:0.9.2.0-3
179 Conflicts: Zope < 2.11.8-2
180 Conflicts: amavisd-new < 1:2.7.0-1
181 Conflicts: apache-base < 2.2.21-4
182 Conflicts: apache-mod_bw < 0.92-3
183 Conflicts: apache-mod_fastcgi < 2.4.6-6
184 Conflicts: apache1-base < 1.3.42-5
185 Conflicts: apache1-mod_fastcgi < 2.4.6-2
186 Conflicts: asterisk < 10.0.1-2
187 Conflicts: autossh-init < 1.4b-3
188 Conflicts: balance < 3.54-2
189 Conflicts: bind < 7:9.8.1.P1-4
190 Conflicts: bopm < 3.1.3-4
191 Conflicts: callweaver < 1.2.1-9
192 Conflicts: cassandra-bin < 0.8.9-2
193 Conflicts: clamav < 0.97.3-3
194 Conflicts: cups < 1:1.5.0-10
195 Conflicts: dovecot < 1:2.0.16-3
196 Conflicts: dspam < 3.9.0-6
197 Conflicts: fail2ban < 0.8.4-4
198 Conflicts: gammu-smsd < 1:1.31.0-3
199 # Break gdm2.20 installs
200 #Conflicts: gdm < 2:3.2.1.1-9
201 Conflicts: greylistd < 0.8.8-2
202 Conflicts: inn < 2.4.6-7
203 Conflicts: ipsec-tools < 0.8.0-3
204 Conflicts: jabber-common < 0-9
205 Conflicts: laptop-mode-tools < 1.58-2
206 Conflicts: libgpod < 0.8.0-6
207 Conflicts: libvirt-utils < 0.9.9-4
208 Conflicts: lighttpd < 1.4.30-5
209 Conflicts: lirc < 0.9.0-20
210 Conflicts: mailman < 5:2.1.14-4
211 Conflicts: memcached < 1.4.11-2
212 Conflicts: mpd < 0.16.5-4
213 Conflicts: mrtg < 2.17.0-3
214 Conflicts: munin-common < 1.4.5-5
215 Conflicts: nagios-nrpe < 2.13-2
216 Conflicts: ndisc6-rdnssd < 1.0.1-3
217 Conflicts: nscd < 6:2.14.1-5
218 Conflicts: nss_ldapd-nslcd < 0.8.4-2
219 Conflicts: openct < 0.6.20-3
220 Conflicts: openl2tp < 1.8-3
221 Conflicts: openldap-overlay-nssov < 2.4.28-4
222 Conflicts: openldap-servers < 2.4.28-4
223 Conflicts: openvpn < 2.2.2-2
224 Conflicts: pam-pam_mount < 2.12-3
225 Conflicts: pam-pam_ssh < 1.97-2
226 Conflicts: pcsc-lite < 1.8.1-2
227 Conflicts: php-dirs < 1.2-3
228 Conflicts: policyd < 2.0.10-3
229 Conflicts: pound < 2.6-2
230 Conflicts: pptp < 1.7.2-3
231 Conflicts: proftpd-common < 2:1.3.4a-2
232 Conflicts: pulseaudio-server < 1.1-2
233 Conflicts: quagga < 0.99.20-3
234 Conflicts: radvd < 1.8.5-2
235 Conflicts: red5 < 0.9.0-2
236 Conflicts: redis-server < 2.4.2-4
237 Conflicts: smokeping < 2.4.2-10
238 Conflicts: smtp-gated < 1.4.17-2
239 Conflicts: socat < 1.7.2.0-2
240 Conflicts: speech-dispatcher < 0.7.1-2
241 Conflicts: sphinx < 2.0.3-4
242 Conflicts: splashutils < 1.5.4.3-3
243 Conflicts: stunnel < 4.50-2
244 Conflicts: tenshi < 0.12-2
245 Conflicts: tor < 0.2.2.35-2
246 Conflicts: ucarp < 1.5.2-3
247 Conflicts: udisks < 1.0.4-3
248 Conflicts: util-vserver < 0.30.216-1.pre3002.3
249 Conflicts: vpnc < 0.5.3-2
250 Conflicts: web2ldap < 1.1.0rc1-2
251 Conflicts: wesnoth-server < 1:1.10-2
252 Conflicts: wpa_supplicant < 0.7.3-10
253 Conflicts: xl2tpd < 1.3.0-2
254 # end of tmpfiles conflicts
255 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
257 %define _sbindir /sbin
258 %define _libexecdir %{_prefix}/lib
261 systemd is a system and service manager for Linux, compatible with
262 SysV and LSB init scripts. systemd provides aggressive parallelization
263 capabilities, uses socket and D-Bus activation for starting services,
264 offers on-demand starting of daemons, keeps track of processes using
265 Linux cgroups, supports snapshotting and restoring of the system
266 state, maintains mount and automount points and implements an
267 elaborate transactional dependency-based service control logic. It can
268 work as a drop-in replacement for sysvinit.
270 %description -l pl.UTF-8
271 systemd jest zarządcą systemu i usług dla Linuksa, kompatybilny ze
272 skryptami SysV i LSB. systemd udostępnia rozbudowane zdolności
273 paralelizacji, do uruchamiania usług używa socketów oraz D-Busa,
274 oferuje uruchamianie usług na życzenie, monitoruje procesy używając
275 linuksowych cgroups, wspomaga zapisywanie (snapshot) i odczytywanie
276 (restore) stanu systemu, zarządza (auto)mount pointami oraz
277 implementuje starannie opracowaną transakcjonalną, bazującą na
278 zależnościach logikę kontroli usług. Może pracować jako zastępca dla
282 Summary: systemd /sbin/init and LSB/SysV compatibility symlinks
283 Summary(pl.UTF-8): /sbin/init z systemd i dowiązania dla kompatybilności z LSB/SysV
286 Provides: readahead = 1:1.5.7-3
287 Provides: virtual(init-daemon)
289 Obsoletes: readahead < 1:1.5.7-3
290 Obsoletes: virtual(init-daemon)
294 Install this package when you are ready to final switch to systemd.
296 %description init -l pl.UTF-8
297 Ten pakiet należy zainstalować po przygotowaniu się do ostatecznego
298 przejścia na systemd.
301 Summary: Configuration files, directories and installation tool for systemd
302 Summary(pl.UTF-8): Pliki konfiguracyjne, katalogi i narzędzie instalacyjne dla systemd
304 Requires(post): coreutils
305 Requires(post): /bin/awk
308 Basic configuration files, directories and installation tool for the
309 systemd system and service manager.
311 This is common config, use %{_sysconfdir}/systemd/system to override.
313 %description units -l pl.UTF-8
314 Podstawowe pliki konfiguracyjne, katalogi i narzędzie instalacyjne dla
315 zarządcy systemu i usług systemd.
317 Ten pakiet zawiera ogólną konfigurację, ustawienia można nadpisać
318 poprzez katalog %{_sysconfdir}/systemd/system.
321 Summary: Native inet service support for systemd via socket activation
322 Summary(pl.UTF-8): Natywna obsługa usług inet dla systemd
324 Requires: %{name} = %{epoch}:%{version}-%{release}
328 Obsoletes: inetdaemon
333 Native inet service support for systemd via socket activation.
335 This package contains inet service generator that provides
336 the functionality of rc-inetd service and replaces a separate
337 inet daemon with systemd socket activation feature.
339 %description inetd -l pl.UTF-8
340 Natywna obsługa usług inet dla systemd.
342 Ten pakiet zawiera generator usług inet udostępniający funkcjonalność
343 serwisu rc-inetd i zastępujący osobny demon inet przez systemd i
344 aktywację usług przez gniazda.
347 Summary: Tool for processing systemd profiling information
348 Summary(pl.UTF-8): Narzędzie do przetwarzania informacji profilujących systemd
350 Requires: %{name} = %{epoch}:%{version}-%{release}
351 Requires: python-dbus
352 Requires: python-modules
353 Suggests: python-pycairo
354 Conflicts: systemd < 44-3
357 'systemd-analyze blame' lists which systemd unit needed how much time
358 to finish initialization at boot. 'systemd-analyze plot' renders an
359 SVG visualizing the parallel start of units at boot.
361 %description analyze -l pl.UTF-8
362 'systemd-analyze blame' wypisuje, ile czasu wymagały poszczególne
363 jednostki systemd na zakończenie podczas rozruchu systemu.
364 'systemd-analyze plot' tworzy wykres SVG wizualizujący równoległy
365 start jednostek podczas rozruchu.
368 Summary: Shared systemd libraries
369 Summary(pl.UTF-8): Biblioteki współdzielone systemd
371 Requires: libgcrypt >= 1.4.5
372 %{?with_selinux:Requires: libselinux >= 2.1.9}
375 Shared systemd libraries.
377 %description libs -l pl.UTF-8
378 Biblioteki współdzielone systemd.
381 Summary: Header files for systemd libraries
382 Summary(pl.UTF-8): Pliki nagłówkowe bibliotek systemd
383 Group: Development/Libraries
384 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
387 Header files for systemd libraries.
389 %description devel -l pl.UTF-8
390 Pliki nagłówkowe bibliotek systemd.
392 %package -n bash-completion-systemd
393 Summary: bash-completion for systemd
394 Summary(pl.UTF-8): Bashowe dopełnianie składni dla systemd
395 Group: Applications/Shells
396 Requires: %{name} = %{epoch}:%{version}
397 Requires: bash-completion
399 %description -n bash-completion-systemd
400 bash-completion for systemd.
402 %description -n bash-completion-systemd -l pl.UTF-8
403 Bashowe dopełnianie składni dla systemd.
406 Summary: Device manager for the Linux 2.6 kernel series
407 Summary(pl.UTF-8): Zarządca urządzeń dla Linuksa 2.6
409 Requires: udev-core = %{epoch}:%{version}-%{release}
410 Provides: dev = 3.5.0
413 Obsoletes: hotplug-input
414 Obsoletes: hotplug-net
415 Obsoletes: hotplug-pci
417 Obsoletes: udev-extras < 20090628
418 Obsoletes: udev-tools
421 udev is the device manager for the Linux 2.6 kernel series. Its
422 primary function is managing device nodes in /dev. It is the successor
423 of devfs and hotplug.
425 %description -n udev -l pl.UTF-8
426 udev jest zarządcą urządzeń dla Linuksa 2.6. Jego główną funkcją jest
427 zarządzanie węzłami urządzeń w katalogu /dev. Jest następcą devfs i
430 %package -n udev-core
431 Summary: A userspace implementation of devfs - core part of udev
432 Summary(pl.UTF-8): Implementacja devfs w przestrzeni użytkownika - główna część udev
434 Requires: udev-libs = %{epoch}:%{version}-%{release}
436 Requires: filesystem >= 3.0-45
437 Requires: kmod-libs >= 5
438 Requires: libblkid >= 2.20
439 %{?with_selinux:Requires: libselinux >= 2.1.9}
440 Requires: setup >= 2.6.1-1
441 Requires: uname(release) >= 2.6.32
442 Conflicts: rc-scripts < 0.4.5.3-1
443 Conflicts: systemd-units < 1:183
444 Conflicts: udev < 1:118-1
445 Obsoletes: udev-compat
447 %description -n udev-core
448 A userspace implementation of devfs - core part of udev.
450 %description -n udev-core -l pl.UTF-8
451 Implementacja devfs w przestrzeni użytkownika - główna część udev.
453 %package -n udev-libs
454 Summary: Shared library to access udev device information
455 Summary(pl.UTF-8): Biblioteka współdzielona do dostępu do informacji o urządzeniach udev
458 %description -n udev-libs
459 Shared libudev library to access udev device information.
461 %description -n udev-libs -l pl.UTF-8
462 Biblioteka współdzielona libudev służąca do dostępu do informacji o
465 %package -n udev-devel
466 Summary: Header file for libudev library
467 Summary(pl.UTF-8): Plik nagłówkowy biblioteki libudev
468 Group: Development/Libraries
469 Requires: udev-libs = %{epoch}:%{version}-%{release}
471 %description -n udev-devel
472 Header file for libudev library.
474 %description -n udev-devel -l pl.UTF-8
475 Plik nagłówkowy biblioteki libudev.
477 %package -n udev-static
478 Summary: Static libudev library
479 Summary(pl.UTF-8): Biblioteka statyczna libudev
480 Group: Development/Libraries
481 Requires: udev-devel = %{epoch}:%{version}-%{release}
483 %description -n udev-static
484 Static libudev library.
486 %description -n udev-static -l pl.UTF-8
487 Biblioteka statyczna libudev.
489 %package -n udev-apidocs
490 Summary: libudev API documentation
491 Summary(pl.UTF-8): Dokumentacja API libudev
493 Requires: gtk-doc-common
495 %description -n udev-apidocs
496 libudev API documentation.
498 %description -n udev-apidocs -l pl.UTF-8
499 Dokumentacja API libudev.
501 %package -n udev-glib
502 Summary: Shared libgudev library - GObject bindings for libudev
503 Summary(pl.UTF-8): Biblioteka współdzielona libgudev - wiązania GObject do libudev
505 Requires: udev-libs = %{epoch}:%{version}-%{release}
506 Requires: glib2 >= 1:2.22.0
508 %description -n udev-glib
509 Shared libgudev library - GObject bindings for libudev.
511 %description -n udev-glib -l pl.UTF-8
512 Biblioteka współdzielona libgudev - wiązania GObject do libudev.
514 %package -n udev-glib-devel
515 Summary: Header file for libgudev library
516 Summary(pl.UTF-8): Plik nagłówkowy biblioteki libgudev
517 Group: Development/Libraries
518 Requires: udev-devel = %{epoch}:%{version}-%{release}
519 Requires: udev-glib = %{epoch}:%{version}-%{release}
520 Requires: glib2-devel >= 1:2.22.0
522 %description -n udev-glib-devel
523 Header file for libgudev library.
525 %description -n udev-glib-devel -l pl.UTF-8
526 Plik nagłówkowy biblioteki libgudev.
528 %package -n udev-glib-static
529 Summary: Static libgudev library
530 Summary(pl.UTF-8): Biblioteka statyczna libgudev
531 Group: Development/Libraries
532 Requires: udev-glib-devel = %{epoch}:%{version}-%{release}
534 %description -n udev-glib-static
535 Static libgudev library.
537 %description -n udev-glib-static -l pl.UTF-8
538 Biblioteka statyczna libgudev.
540 %package -n udev-glib-apidocs
541 Summary: libgudev API documentation
542 Summary(pl.UTF-8): Dokumentacja API libgudev
544 Requires: gtk-doc-common
546 %description -n udev-glib-apidocs
547 libgudev API documentation.
549 %description -n udev-glib-apidocs -l pl.UTF-8
550 Dokumentacja API libgudev.
552 %package -n udev-initrd
553 Summary: A userspace implementation of devfs - static binary for initrd
554 Summary(pl.UTF-8): Implementacja devfs w przestrzeni użytkownika - statyczna binarka dla initrd
556 Requires: udev-core = %{epoch}:%{version}-%{release}
557 Conflicts: geninitrd < 10000.10
559 %description -n udev-initrd
560 A userspace implementation of devfs - static binary for initrd.
562 %description -n udev-initrd -l pl.UTF-8
563 Implementacja devfs w przestrzeni użytkownika - statyczna binarka dla
566 %package -n python-systemd
567 Summary: Systemd Python bindings
568 Summary(pl.UTF-8): Wiązania do Systemd dla Pythona
569 Group: Development/Languages/Python
570 %pyrequires_eq python
571 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
573 %description -n python-systemd
574 Systemd Python bindings.
576 %description -n python-systemd -l pl.UTF-8
577 Wiązania do Systemd dla Pythona.
593 cp -p %{SOURCE2} src/systemd_booted.c
603 patch -p1 <%{PATCH100}
605 %if "%{?configure_cache}" == "1"
606 --cache-file=%{?configure_cache_file}%{!?configure_cache_file:configure}-initrd.cache \
608 %{?with_uClibc:CC="%{_target_cpu}-uclibc-gcc"} \
609 %{?with_dietlibc:CC="diet %{__cc} %{rpmcflags} %{rpmldflags} -Os -D_BSD_SOURCE"} \
610 %{?with_klibc:CC="%{_bindir}/klcc"} \
611 %{?debug:--enable-debug} \
612 --disable-silent-rules \
616 --with-rootprefix="" \
617 --with-rootlibdir=/%{_lib} \
621 --disable-introspection \
623 --disable-microhttpd \
640 LDFLAGS="-all-static" \
641 KMOD_LIBS="-lkmod -lz -llzma"
644 cp -a systemd-udevd \
656 patch -p1 -R <%{PATCH100}
660 QUOTAON=/sbin/quotaon \
661 QUOTACHECK=/sbin/quotacheck \
662 SETCAP=/sbin/setcap \
664 %{?debug:--enable-debug} \
665 %{__enable_disable audit} \
666 %{__enable_disable cryptsetup libcryptsetup} \
667 %{__enable_disable pam} \
668 %{__enable_disable selinux} \
669 %{__enable_disable tcpd tcpwrap} \
670 %{__enable_disable microhttpd} \
671 %{__enable_disable qrencode} \
672 --disable-silent-rules \
674 --enable-introspection \
679 --with-rootprefix="" \
680 --with-rootlibdir=/%{_lib} \
681 --with-html-dir=%{_gtkdocdir}
684 ./libtool --mode=link --tag=CC %{__cc} %{rpmcppflags} %{rpmcflags} -o systemd_booted %{rpmldflags} src/systemd_booted.c -L. -lsystemd-daemon
687 rm -rf $RPM_BUILD_ROOT
688 install -d $RPM_BUILD_ROOT/var/lib/%{name}/coredump \
689 $RPM_BUILD_ROOT{%{_sysconfdir}/{modprobe.d,systemd/system-preset},%{_sbindir}}
692 DESTDIR=$RPM_BUILD_ROOT
694 ./libtool --mode=install install -p -m755 systemd_booted $RPM_BUILD_ROOT/bin/systemd_booted
696 # compatibility symlinks to udevd binary
697 mv $RPM_BUILD_ROOT/lib/{systemd/systemd-,udev/}udevd
698 ln -s /lib/udev/udevd $RPM_BUILD_ROOT/lib/systemd/systemd-udevd
699 ln -s /lib/udev/udevd $RPM_BUILD_ROOT%{_sbindir}/udevd
701 # compat symlinks for "/ merged into /usr" programs
702 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/udevadm
703 ln -s %{_sbindir}/udevadm $RPM_BUILD_ROOT%{_bindir}
704 ln -s /lib/udev $RPM_BUILD_ROOT/usr/lib/
706 # install custom udev rules from pld package
707 cp -a %{SOURCE101} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d/40-alsa-restore.rules
708 cp -a %{SOURCE102} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d/70-udev-pld.rules
710 # install udev configs
711 cp -a %{SOURCE103} $RPM_BUILD_ROOT%{_sysconfdir}/udev/links.conf
713 # install udev executables (scripts, helpers, etc.)
714 install -p %{SOURCE110} $RPM_BUILD_ROOT/lib/udev/net_helper
715 install -p %{SOURCE111} $RPM_BUILD_ROOT%{_sbindir}/start_udev
717 # install misc udev stuff
718 cp -a %{SOURCE120} $RPM_BUILD_ROOT%{_sysconfdir}/modprobe.d/udev_blacklist.conf
719 cp -a %{SOURCE121} $RPM_BUILD_ROOT%{_sysconfdir}/modprobe.d/fbdev-blacklist.conf
721 mv $RPM_BUILD_ROOT%{_mandir}/man8/{systemd-,}udevd.8
722 echo ".so man8/udevd.8" >$RPM_BUILD_ROOT%{_mandir}/man8/systemd-udevd.8
725 install -d $RPM_BUILD_ROOT%{_libdir}/initrd/udev
726 install -p udev-initrd/udevadm $RPM_BUILD_ROOT%{_libdir}/initrd
727 install -p udev-initrd/systemd-udevd $RPM_BUILD_ROOT%{_libdir}/initrd
728 # hardlink udevd -> systemd-udevd
729 ln $RPM_BUILD_ROOT%{_libdir}/initrd/{systemd-,}udevd
730 ln -s udevd $RPM_BUILD_ROOT%{_libdir}/initrd/udevstart
731 install -p udev-initrd/*_id $RPM_BUILD_ROOT%{_libdir}/initrd/udev
732 install -p udev-initrd/collect $RPM_BUILD_ROOT%{_libdir}/initrd/udev
733 install -p udev-initrd/mtd_probe $RPM_BUILD_ROOT%{_libdir}/initrd/udev
736 # Main binary has been moved, but we don't want to break existing installs
737 ln -s ../lib/systemd/systemd $RPM_BUILD_ROOT/bin/systemd
739 # Create SysV compatibility symlinks. systemctl/systemd are smart
740 # enough to detect the way they were called
741 install -d $RPM_BUILD_ROOT/sbin
742 ln -s ../lib/systemd/systemd $RPM_BUILD_ROOT/sbin/init
743 ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/halt
744 ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/poweroff
745 ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/reboot
746 ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/runlevel
747 ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/shutdown
748 ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/telinit
750 ln -s ../modules $RPM_BUILD_ROOT%{_sysconfdir}/modules-load.d/modules.conf
752 # disable redundant SYSV services
753 ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/allowlogin.service
754 ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/console.service
755 ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/cpusets.service
756 ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/killall.service
757 ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/netfs.service
758 ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/random.service
760 # add static (non-NetworkManager) networking
761 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{systemdunitdir}/network.service
763 # restore bind-mounts /var/run -> run and /var/lock -> /run/lock
764 # we don't have those directories symlinked
765 cp -p %{SOURCE4} $RPM_BUILD_ROOT%{systemdunitdir}/var-lock.mount
766 cp -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}/var-run.mount
767 ln -s ../var-lock.mount $RPM_BUILD_ROOT%{systemdunitdir}/local-fs.target.wants
768 ln -s ../var-run.mount $RPM_BUILD_ROOT%{systemdunitdir}/local-fs.target.wants
770 # and remove tmp on tmpfs mount
771 %{__rm} $RPM_BUILD_ROOT%{systemdunitdir}/tmp.mount
772 %{__rm} $RPM_BUILD_ROOT%{systemdunitdir}/local-fs.target.wants/tmp.mount
774 # Install and enable storage subsystems support services (RAID, LVM, etc.)
775 cp -p %{SOURCE10} $RPM_BUILD_ROOT%{systemdunitdir}/pld-storage-init-late.service
776 cp -p %{SOURCE11} $RPM_BUILD_ROOT%{systemdunitdir}/pld-storage-init.service
777 cp -p %{SOURCE12} $RPM_BUILD_ROOT%{systemdunitdir}/pld-wait-storage.service
778 cp -p %{SOURCE14} $RPM_BUILD_ROOT%{systemdunitdir}/pld-clean-tmp.service
779 install -p %{SOURCE13} $RPM_BUILD_ROOT/lib/systemd/pld-storage-init
780 install -p %{SOURCE15} $RPM_BUILD_ROOT/lib/systemd/pld-clean-tmp
782 ln -s ../pld-storage-init-late.service $RPM_BUILD_ROOT%{systemdunitdir}/local-fs.target.wants
783 ln -s ../pld-storage-init.service $RPM_BUILD_ROOT%{systemdunitdir}/local-fs.target.wants
784 ln -s ../pld-clean-tmp.service $RPM_BUILD_ROOT%{systemdunitdir}/local-fs.target.wants
786 # Install rc-inetd replacement
787 cp -p %{SOURCE16} $RPM_BUILD_ROOT/lib/systemd/system-generators/pld-rc-inetd-generator
788 cp -p %{SOURCE17} $RPM_BUILD_ROOT%{systemdunitdir}/rc-inetd.service
790 cp -p %{SOURCE18} $RPM_BUILD_ROOT%{_sysconfdir}/systemd/system-preset/default.preset
792 # handled by rc-local sysv service, no need for generator
793 %{__rm} $RPM_BUILD_ROOT/lib/systemd/system-generators/systemd-rc-local-generator
795 # Make sure these directories are properly owned:
796 # - halt,kexec,poweroff,reboot: generic ones used by ConsoleKit-systemd,
797 # - syslog _might_ be used by some syslog implementation (none for now),
798 # - isn't dbus populated by dbus-systemd only (so to be moved there)?
799 install -d $RPM_BUILD_ROOT%{systemdunitdir}/{dbus,halt,kexec,poweroff,reboot,syslog}.target.wants
801 # Create new-style configuration files so that we can ghost-own them
802 touch $RPM_BUILD_ROOT%{_sysconfdir}/{hostname,locale.conf,machine-id,machine-info,timezone,vconsole.conf}
804 # Install SysV conversion tool for systemd
805 install -p %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}
807 install -d $RPM_BUILD_ROOT/var/log
808 :> $RPM_BUILD_ROOT/var/log/btmp
809 :> $RPM_BUILD_ROOT/var/log/wtmp
811 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
812 %{__rm} $RPM_BUILD_ROOT/%{_lib}/security/pam_systemd.la
813 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
814 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/systemd/*.la
818 rm -rf $RPM_BUILD_ROOT
821 /bin/systemd-machine-id-setup > /dev/null 2>&1 || :
822 /bin/systemctl daemon-reexec > /dev/null 2>&1 || :
825 if [ $1 -ge 1 ]; then
826 /bin/systemctl try-restart systemd-logind.service >/dev/null 2>&1 || :
829 %post libs -p /sbin/ldconfig
830 %postun libs -p /sbin/ldconfig
833 if [ $1 -eq 1 ]; then
834 # Try to read default runlevel from the old inittab if it exists
835 runlevel=$(/bin/awk -F ':' '$3 == "initdefault" && $1 !~ "^#" { print $2 }' /etc/inittab 2> /dev/null)
836 if [ -z "$runlevel" ] ; then
837 target="%{systemdunitdir}/graphical.target"
839 target="%{systemdunitdir}/runlevel$runlevel.target"
842 # And symlink what we found to the new-style default.target
843 ln -s "$target" %{_sysconfdir}/systemd/system/default.target >/dev/null 2>&1 || :
846 [ -f /etc/sysconfig/network ] && . /etc/sysconfig/network
847 if [ -n "$HOSTNAME" -a "$HOSTNAME" != "pldmachine" ]; then
848 [ -f /etc/hostname ] && mv -f /etc/hostname /etc/hostname.rpmsave
849 echo $HOSTNAME > /etc/hostname
850 chmod 644 /etc/hostname
853 # Enable the services we install by default.
854 /bin/systemctl enable \
858 systemd-readahead-replay.service \
859 systemd-readahead-collect.service \
860 systemd-udev-settle.service >/dev/null 2>&1 || :
864 if [ $1 -eq 0 ] ; then
865 /bin/systemctl disable \
869 systemd-readahead-replay.service \
870 systemd-readahead-collect.service \
871 systemd-udev-settle.service >/dev/null 2>&1 || :
873 %{__rm} -f %{_sysconfdir}/systemd/system/default.target >/dev/null 2>&1 || :
877 if [ $1 -ge 1 ]; then
878 /bin/systemctl daemon-reload > /dev/null 2>&1 || :
881 %triggerpostun units -- systemd-units < 43-7
882 # Remove design fialures
883 %{__rm} -f %{_sysconfdir}/systemd/system/network.target.wants/ifcfg@*.service >/dev/null 2>&1 || :
884 %{__rm} -f %{_sysconfdir}/systemd/system/network.target.wants/network-post.service >/dev/null 2>&1 || :
885 %{__rm} -f %{_sysconfdir}/systemd/system/multi-user.target.wants/network-post.service >/dev/null 2>&1 || :
886 /bin/systemctl reenable network.service >/dev/null 2>&1 || :
888 %triggerpostun units -- systemd-units < 1:183
889 /bin/systemctl --quiet enable systemd-udev-settle.service >/dev/null 2>&1 || :
890 %{__rm} -f /etc/systemd/system/basic.target.wants/udev-settle.service >/dev/null 2>&1 || :
891 # preserve renamed configs
892 if [ -f /etc/systemd/systemd-journald.conf.rpmsave ]; then
893 %{__mv} /etc/systemd/journald.conf{,.rpmnew}
894 %{__mv} -f /etc/systemd/systemd-journald.conf.rpmsave /etc/systemd/journald.conf
896 if [ -f /etc/systemd/systemd-logind.conf.rpmsave ]; then
897 %{__mv} /etc/systemd/logind.conf{,.rpmnew}
898 %{__mv} -f /etc/systemd/systemd-logind.conf.rpmsave /etc/systemd/logind.conf
901 %triggerpostun units -- systemd-units < 1:187-3
902 if [ -f /etc/sysconfig/rpm ]; then
904 if [ ${RPM_ENABLE_SYSTEMD_SERVICE:-yes} = no ]; then
905 echo "disable *" >>%{_sysconfdir}/systemd/system-preset/default.preset
911 # Do not change it to restart, we only want to start new services here
912 %systemd_service_start sockets.target
917 %triggerpostun -n udev-core -- dev
918 if [ "$2" = 0 ]; then
919 # need to kill and restart udevd as after obsoleting dev package the
920 # /dev tree will remain empty. umask is needed as otherwise udev will
921 # create devices with strange permissions (udev bug probably)
923 /sbin/start_udev || exit 0
926 %triggerpostun -n udev-core -- udev < 108
927 %{__sed} -i -e 's#IMPORT{program}="/sbin/#IMPORT{program}="#g' /etc/udev/rules.d/*.rules
928 %if "%{_lib}" != "lib"
929 %{__sed} -i -e 's#/%{_lib}/udev/#/lib/udev/#g' /etc/udev/rules.d/*.rules
932 %triggerpostun -n udev-core -- udev < 165
933 /sbin/udevadm info --convert-db
936 if [ $1 -gt 1 ]; then
937 if [ ! -x /bin/systemd_booted ] || ! /bin/systemd_booted; then
938 if grep -qs devtmpfs /proc/mounts && [ -n "$(pidof udevd)" ]; then
939 /sbin/udevadm control --exit
940 /lib/udev/udevd --daemon
943 SYSTEMD_LOG_LEVEL=warning SYSTEMD_LOG_TARGET=syslog \
944 /bin/systemctl --quiet try-restart systemd-udevd.service || :
949 if [ -x /bin/systemd_booted ] && /bin/systemd_booted; then
950 SYSTEMD_LOG_LEVEL=warning SYSTEMD_LOG_TARGET=syslog \
951 /bin/systemctl --quiet daemon-reload || :
954 %post -n udev-libs -p /sbin/ldconfig
955 %postun -n udev-libs -p /sbin/ldconfig
957 %post -n udev-glib -p /sbin/ldconfig
958 %postun -n udev-glib -p /sbin/ldconfig
961 %defattr(644,root,root,755)
962 %doc DISTRO_PORTING README TODO
963 /etc/dbus-1/system.d/org.freedesktop.hostname1.conf
964 /etc/dbus-1/system.d/org.freedesktop.locale1.conf
965 /etc/dbus-1/system.d/org.freedesktop.login1.conf
966 /etc/dbus-1/system.d/org.freedesktop.systemd1.conf
967 /etc/dbus-1/system.d/org.freedesktop.timedate1.conf
968 %ghost %config(noreplace) %{_sysconfdir}/machine-id
969 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/hostname
970 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/locale.conf
971 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/machine-info
972 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/timezone
973 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vconsole.conf
974 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/systemd/journald.conf
975 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/systemd/logind.conf
976 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/systemd/system.conf
977 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/systemd/user.conf
978 %dir %{_sysconfdir}/systemd/user
979 %dir %{_sysconfdir}/systemd/system/*.target.wants
980 %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/systemd/system/*.target.wants/*.service
981 %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/systemd/system/*.target.wants/*.target
983 %attr(755,root,root) /bin/journalctl
984 %attr(755,root,root) /bin/loginctl
985 %attr(755,root,root) /bin/systemd
986 %attr(755,root,root) /bin/systemd-ask-password
987 %attr(755,root,root) /bin/systemd-inhibit
988 %attr(755,root,root) /bin/systemd-machine-id-setup
989 %attr(755,root,root) /bin/systemd-notify
990 %attr(755,root,root) /bin/systemd-tty-ask-password-agent
991 %attr(755,root,root) %{_bindir}/hostnamectl
992 %attr(755,root,root) %{_bindir}/localectl
993 %attr(755,root,root) %{_bindir}/systemd-cat
994 %attr(755,root,root) %{_bindir}/systemd-cgls
995 %attr(755,root,root) %{_bindir}/systemd-cgtop
996 %attr(755,root,root) %{_bindir}/systemd-coredumpctl
997 %attr(755,root,root) %{_bindir}/systemd-delta
998 %attr(755,root,root) %{_bindir}/systemd-detect-virt
999 %attr(755,root,root) %{_bindir}/systemd-nspawn
1000 %attr(755,root,root) %{_bindir}/systemd-stdio-bridge
1001 %attr(755,root,root) %{_bindir}/systemd-sysv-convert
1002 %attr(755,root,root) %{_bindir}/timedatectl
1003 %attr(755,root,root) /lib/systemd/pld-clean-tmp
1004 %attr(755,root,root) /lib/systemd/pld-storage-init
1005 %attr(755,root,root) /lib/systemd/systemd-ac-power
1006 %attr(755,root,root) /lib/systemd/systemd-binfmt
1007 %attr(755,root,root) /lib/systemd/systemd-cgroups-agent
1008 %attr(755,root,root) /lib/systemd/systemd-coredump
1009 %{?with_cryptsetup:%attr(755,root,root) /lib/systemd/systemd-cryptsetup}
1010 %attr(755,root,root) /lib/systemd/systemd-fsck
1011 %attr(755,root,root) /lib/systemd/systemd-hostnamed
1012 %attr(755,root,root) /lib/systemd/systemd-initctl
1013 %{?with_microhttpd:%attr(755,root,root) /lib/systemd/systemd-journal-gatewayd}
1014 %attr(755,root,root) /lib/systemd/systemd-journald
1015 %attr(755,root,root) /lib/systemd/systemd-localed
1016 %attr(755,root,root) /lib/systemd/systemd-logind
1017 %attr(755,root,root) /lib/systemd/systemd-modules-load
1018 %attr(755,root,root) /lib/systemd/systemd-multi-seat-x
1019 %attr(755,root,root) /lib/systemd/systemd-quotacheck
1020 %attr(755,root,root) /lib/systemd/systemd-random-seed
1021 %attr(755,root,root) /lib/systemd/systemd-readahead
1022 %attr(755,root,root) /lib/systemd/systemd-remount-fs
1023 %attr(755,root,root) /lib/systemd/systemd-reply-password
1024 %attr(755,root,root) /lib/systemd/systemd-shutdown
1025 %attr(755,root,root) /lib/systemd/systemd-shutdownd
1026 %attr(755,root,root) /lib/systemd/systemd-sleep
1027 %attr(755,root,root) /lib/systemd/systemd-sysctl
1028 %attr(755,root,root) /lib/systemd/systemd-timedated
1029 %attr(755,root,root) /lib/systemd/systemd-timestamp
1030 %attr(755,root,root) /lib/systemd/systemd-udevd
1031 %attr(755,root,root) /lib/systemd/systemd-update-utmp
1032 %attr(755,root,root) /lib/systemd/systemd-user-sessions
1033 %attr(755,root,root) /lib/systemd/systemd-vconsole-setup
1034 %dir /lib/systemd/system-generators
1035 %attr(755,root,root) /lib/systemd/systemd
1036 %attr(755,root,root) /lib/systemd/system-generators/systemd-*-generator
1037 /lib/udev/rules.d/70-uaccess.rules
1038 /lib/udev/rules.d/71-seat.rules
1039 /lib/udev/rules.d/73-seat-late.rules
1040 /lib/udev/rules.d/99-systemd.rules
1041 %dir %{_libexecdir}/systemd
1042 %dir %{_libexecdir}/systemd/catalog
1043 %{_libexecdir}/systemd/catalog/systemd.catalog
1044 %{_libexecdir}/systemd/user
1045 %dir %{_libexecdir}/systemd/user-generators
1046 %{_libexecdir}/tmpfiles.d/legacy.conf
1047 %{_libexecdir}/tmpfiles.d/systemd.conf
1048 %{_libexecdir}/tmpfiles.d/tmp.conf
1049 %{_libexecdir}/tmpfiles.d/x11.conf
1050 %{_datadir}/dbus-1/interfaces/org.freedesktop.hostname1.xml
1051 %{_datadir}/dbus-1/interfaces/org.freedesktop.locale1.xml
1052 %{_datadir}/dbus-1/interfaces/org.freedesktop.systemd1.*.xml
1053 %{_datadir}/dbus-1/interfaces/org.freedesktop.timedate1.xml
1054 %{_datadir}/dbus-1/services/org.freedesktop.systemd1.service
1055 %{_datadir}/dbus-1/system-services/org.freedesktop.hostname1.service
1056 %{_datadir}/dbus-1/system-services/org.freedesktop.locale1.service
1057 %{_datadir}/dbus-1/system-services/org.freedesktop.login1.service
1058 %{_datadir}/dbus-1/system-services/org.freedesktop.systemd1.service
1059 %{_datadir}/dbus-1/system-services/org.freedesktop.timedate1.service
1060 %{_datadir}/polkit-1/actions/org.freedesktop.hostname1.policy
1061 %{_datadir}/polkit-1/actions/org.freedesktop.locale1.policy
1062 %{_datadir}/polkit-1/actions/org.freedesktop.login1.policy
1063 %{_datadir}/polkit-1/actions/org.freedesktop.systemd1.policy
1064 %{_datadir}/polkit-1/actions/org.freedesktop.timedate1.policy
1065 %dir %{_datadir}/systemd
1066 %{?with_microhttpd:%{_datadir}/systemd/gatewayd}
1067 %{_datadir}/systemd/kbd-model-map
1068 %{_mandir}/man1/hostnamectl.1*
1069 %{_mandir}/man1/journalctl.1*
1070 %{_mandir}/man1/localectl.1*
1071 %{_mandir}/man1/loginctl.1*
1072 %{_mandir}/man1/systemd.1*
1073 %{_mandir}/man1/systemd-ask-password.1*
1074 %{_mandir}/man1/systemd-cat.1*
1075 %{_mandir}/man1/systemd-cgls.1*
1076 %{_mandir}/man1/systemd-cgtop.1*
1077 %{_mandir}/man1/systemd-coredumpctl.1*
1078 %{_mandir}/man1/systemd-delta.1*
1079 %{_mandir}/man1/systemd-detect-virt.1*
1080 %{_mandir}/man1/systemd-inhibit.1*
1081 %{_mandir}/man1/systemd-machine-id-setup.1*
1082 %{_mandir}/man1/systemd-notify.1*
1083 %{_mandir}/man1/systemd-nspawn.1*
1084 %{_mandir}/man1/systemd-tty-ask-password-agent.1*
1085 %{_mandir}/man1/timedatectl.1*
1086 %{_mandir}/man5/binfmt.d.5*
1087 # cfl with rc-scripts
1088 #%{_mandir}/man5/crypttab.5*
1089 %{_mandir}/man5/hostname.5*
1090 %{_mandir}/man5/journald.conf.5*
1091 %{_mandir}/man5/locale.conf.5*
1092 %{_mandir}/man5/localtime.5*
1093 %{_mandir}/man5/logind.conf.5*
1094 %{_mandir}/man5/machine-id.5*
1095 %{_mandir}/man5/machine-info.5*
1096 %{_mandir}/man5/modules-load.d.5*
1097 %{_mandir}/man5/os-release.5*
1098 %{_mandir}/man5/sysctl.d.5*
1099 %{_mandir}/man5/systemd.*.5*
1100 %{_mandir}/man5/vconsole.conf.5*
1101 %{_mandir}/man7/bootup.7*
1102 %{_mandir}/man7/daemon.7*
1103 %{_mandir}/man7/kernel-command-line.7*
1104 %{_mandir}/man7/systemd.journal-fields.7*
1105 %{_mandir}/man7/systemd.special.7*
1106 %{_mandir}/man8/systemd-binfmt.8*
1107 %{?with_cryptsetup:%{_mandir}/man8/systemd-cryptsetup-generator.8*}
1108 %{_mandir}/man8/systemd-fsck.8*
1109 %{_mandir}/man8/systemd-fstab-generator.8*
1110 %{_mandir}/man8/systemd-getty-generator.8*
1111 %{_mandir}/man8/systemd-hostnamed.8*
1112 %{_mandir}/man8/systemd-initctl.8*
1113 %{_mandir}/man8/systemd-journald.8*
1114 %{_mandir}/man8/systemd-localed.8*
1115 %{_mandir}/man8/systemd-logind.8*
1116 %{_mandir}/man8/systemd-modules-load.8*
1117 %{_mandir}/man8/systemd-quotacheck.8*
1118 %{_mandir}/man8/systemd-random-seed.8*
1119 %{_mandir}/man8/systemd-readahead.8*
1120 %{_mandir}/man8/systemd-remount-fs.8*
1121 %{_mandir}/man8/systemd-shutdown.8*
1122 %{_mandir}/man8/systemd-shutdownd.8*
1123 %{_mandir}/man8/systemd-sleep.8*
1124 %{_mandir}/man8/systemd-sysctl.8*
1125 %{_mandir}/man8/systemd-system-update-generator.8*
1126 %{_mandir}/man8/systemd-timedated.8*
1127 %{_mandir}/man8/systemd-udevd.8*
1128 %{_mandir}/man8/systemd-update-utmp.8*
1129 %{_mandir}/man8/systemd-user-sessions.8*
1130 %{_mandir}/man8/systemd-vconsole-setup.8*
1131 %dir /var/lib/%{name}
1132 %dir /var/lib/%{name}/coredump
1133 %attr(640,root,root) %ghost /var/log/btmp
1134 %attr(664,root,utmp) %ghost /var/log/wtmp
1137 %attr(755,root,root) /%{_lib}/security/pam_systemd.so
1138 %{_mandir}/man8/pam_systemd.8*
1142 %defattr(644,root,root,755)
1143 %attr(755,root,root) /sbin/halt
1144 %attr(755,root,root) /sbin/init
1145 %attr(755,root,root) /sbin/poweroff
1146 %attr(755,root,root) /sbin/reboot
1147 %attr(755,root,root) /sbin/runlevel
1148 %attr(755,root,root) /sbin/shutdown
1149 %attr(755,root,root) /sbin/telinit
1150 %{_mandir}/man1/init.1
1151 %{_mandir}/man8/halt.8*
1152 %{_mandir}/man8/poweroff.8
1153 %{_mandir}/man8/reboot.8
1154 %{_mandir}/man8/runlevel.8*
1155 %{_mandir}/man8/shutdown.8*
1156 %{_mandir}/man8/telinit.8*
1159 %defattr(644,root,root,755)
1160 %dir %{_sysconfdir}/binfmt.d
1161 %dir %{_sysconfdir}/modules-load.d
1162 %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/modules-load.d/modules.conf
1163 %dir %{_sysconfdir}/sysctl.d
1164 %dir %{_sysconfdir}/systemd
1165 %dir %{_sysconfdir}/systemd/system
1166 %dir %{_sysconfdir}/systemd/system-preset
1167 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/systemd/system-preset/default.preset
1168 %dir %{_sysconfdir}/tmpfiles.d
1169 %dir %{_libexecdir}/binfmt.d
1170 %dir %{_libexecdir}/modules-load.d
1171 %dir %{_libexecdir}/sysctl.d
1172 %dir /lib/systemd/system-sleep
1173 %dir /lib/systemd/system-shutdown
1174 %{_libexecdir}/sysctl.d/coredump.conf
1175 %attr(755,root,root) /bin/systemctl
1176 %attr(755,root,root) /bin/systemd-tmpfiles
1177 %attr(755,root,root) /bin/systemd_booted
1178 %{_mandir}/man1/systemctl.1*
1179 %{_mandir}/man5/tmpfiles.d.5*
1180 %{_mandir}/man8/systemd-tmpfiles.8*
1181 %{_npkgconfigdir}/systemd.pc
1183 %{systemdunitdir}/*.automount
1184 %{systemdunitdir}/*.mount
1185 %{systemdunitdir}/*.path
1186 %{systemdunitdir}/*.service
1187 %exclude %{systemdunitdir}/rc-inetd.service
1188 %{systemdunitdir}/*.socket
1189 %{systemdunitdir}/*.target
1190 %{systemdunitdir}/*.timer
1191 %dir %{systemdunitdir}/basic.target.wants
1192 %dir %{systemdunitdir}/dbus.target.wants
1193 %dir %{systemdunitdir}/final.target.wants
1194 %dir %{systemdunitdir}/graphical.target.wants
1195 %dir %{systemdunitdir}/halt.target.wants
1196 %dir %{systemdunitdir}/kexec.target.wants
1197 %dir %{systemdunitdir}/local-fs.target.wants
1198 %dir %{systemdunitdir}/multi-user.target.wants
1199 %dir %{systemdunitdir}/poweroff.target.wants
1200 %dir %{systemdunitdir}/reboot.target.wants
1201 %dir %{systemdunitdir}/runlevel[12345].target.wants
1202 %dir %{systemdunitdir}/shutdown.target.wants
1203 %dir %{systemdunitdir}/sockets.target.wants
1204 %dir %{systemdunitdir}/sysinit.target.wants
1205 %dir %{systemdunitdir}/syslog.target.wants
1206 %{systemdunitdir}/basic.target.wants/*
1207 %{systemdunitdir}/final.target.wants/*
1208 %{systemdunitdir}/graphical.target.wants/*
1209 %{systemdunitdir}/local-fs.target.wants/*
1210 %{systemdunitdir}/multi-user.target.wants/getty.target
1211 %{systemdunitdir}/multi-user.target.wants/rc-local.service
1212 %{systemdunitdir}/multi-user.target.wants/systemd-ask-password-wall.path
1213 %{systemdunitdir}/multi-user.target.wants/systemd-logind.service
1214 %{systemdunitdir}/multi-user.target.wants/systemd-user-sessions.service
1215 %{systemdunitdir}/runlevel[12345].target.wants/*
1216 %{systemdunitdir}/shutdown.target.wants/*
1217 %{systemdunitdir}/sockets.target.wants/*
1218 %{?with_cryptsetup:%{systemdunitdir}/sysinit.target.wants/cryptsetup.target}
1219 %{systemdunitdir}/sysinit.target.wants/dev-hugepages.mount
1220 %{systemdunitdir}/sysinit.target.wants/dev-mqueue.mount
1221 %{systemdunitdir}/sysinit.target.wants/proc-sys-fs-binfmt_misc.automount
1222 %{systemdunitdir}/sysinit.target.wants/sys-*.mount
1223 %{systemdunitdir}/sysinit.target.wants/systemd-*
1224 %{_mandir}/man8/systemd-ask-password-console.path.8*
1225 %{_mandir}/man8/systemd-ask-password-console.service.8*
1226 %{_mandir}/man8/systemd-ask-password-wall.path.8*
1227 %{_mandir}/man8/systemd-ask-password-wall.service.8*
1228 %{_mandir}/man8/systemd-binfmt.service.8*
1229 %{?with_cryptsetup:%{_mandir}/man8/systemd-cryptsetup.8*}
1230 %{?with_cryptsetup:%{_mandir}/man8/systemd-cryptsetup@.service.8*}
1231 %{_mandir}/man8/systemd-fsck-root.service.8*
1232 %{_mandir}/man8/systemd-fsck@.service.8*
1233 %{_mandir}/man8/systemd-halt.service.8*
1234 %{_mandir}/man8/systemd-hibernate.service.8*
1235 %{_mandir}/man8/systemd-hostnamed.service.8*
1236 %{_mandir}/man8/systemd-hybrid-sleep.service.8*
1237 %{_mandir}/man8/systemd-initctl.service.8*
1238 %{_mandir}/man8/systemd-initctl.socket.8*
1239 %{_mandir}/man8/systemd-journald.service.8*
1240 %{_mandir}/man8/systemd-journald.socket.8*
1241 %{_mandir}/man8/systemd-kexec.service.8*
1242 %{_mandir}/man8/systemd-localed.service.8*
1243 %{_mandir}/man8/systemd-logind.service.8*
1244 %{_mandir}/man8/systemd-modules-load.service.8*
1245 %{_mandir}/man8/systemd-poweroff.service.8*
1246 %{_mandir}/man8/systemd-quotacheck.service.8*
1247 %{_mandir}/man8/systemd-random-seed-load.service.8*
1248 %{_mandir}/man8/systemd-random-seed-save.service.8*
1249 %{_mandir}/man8/systemd-readahead-collect.service.8*
1250 %{_mandir}/man8/systemd-readahead-done.service.8*
1251 %{_mandir}/man8/systemd-readahead-done.timer.8*
1252 %{_mandir}/man8/systemd-readahead-replay.service.8*
1253 %{_mandir}/man8/systemd-reboot.service.8*
1254 %{_mandir}/man8/systemd-remount-fs.service.8*
1255 %{_mandir}/man8/systemd-shutdownd.service.8*
1256 %{_mandir}/man8/systemd-shutdownd.socket.8*
1257 %{_mandir}/man8/systemd-suspend.service.8*
1258 %{_mandir}/man8/systemd-sysctl.service.8*
1259 %{_mandir}/man8/systemd-timedated.service.8*
1260 %{_mandir}/man8/systemd-tmpfiles-clean.service.8*
1261 %{_mandir}/man8/systemd-tmpfiles-clean.timer.8*
1262 %{_mandir}/man8/systemd-tmpfiles-setup.service.8*
1263 %{_mandir}/man8/systemd-udevd.service.8*
1264 %{_mandir}/man8/systemd-udevd-control.socket.8*
1265 %{_mandir}/man8/systemd-udevd-kernel.socket.8*
1266 %{_mandir}/man8/systemd-update-utmp-runlevel.service.8*
1267 %{_mandir}/man8/systemd-update-utmp-shutdown.service.8*
1268 %{_mandir}/man8/systemd-user-sessions.service.8*
1269 %{_mandir}/man8/systemd-vconsole-setup.service.8*
1272 %defattr(644,root,root,755)
1273 %attr(755,root,root) /lib/systemd/system-generators/pld-rc-inetd-generator
1274 %{systemdunitdir}/rc-inetd.service
1277 %defattr(644,root,root,755)
1278 %attr(755,root,root) %{_bindir}/systemd-analyze
1279 %{_mandir}/man1/systemd-analyze.1*
1282 %defattr(644,root,root,755)
1283 %attr(755,root,root) /%{_lib}/libsystemd-daemon.so.*.*.*
1284 %attr(755,root,root) %ghost /%{_lib}/libsystemd-daemon.so.0
1285 %attr(755,root,root) /%{_lib}/libsystemd-id128.so.*.*.*
1286 %attr(755,root,root) %ghost /%{_lib}/libsystemd-id128.so.0
1287 %attr(755,root,root) /%{_lib}/libsystemd-journal.so.*.*.*
1288 %attr(755,root,root) %ghost /%{_lib}/libsystemd-journal.so.0
1289 %attr(755,root,root) /%{_lib}/libsystemd-login.so.*.*.*
1290 %attr(755,root,root) %ghost /%{_lib}/libsystemd-login.so.0
1293 %defattr(644,root,root,755)
1294 %attr(755,root,root) %{_libdir}/libsystemd-daemon.so
1295 %attr(755,root,root) %{_libdir}/libsystemd-id128.so
1296 %attr(755,root,root) %{_libdir}/libsystemd-journal.so
1297 %attr(755,root,root) %{_libdir}/libsystemd-login.so
1298 %{_includedir}/%{name}
1299 %{_pkgconfigdir}/libsystemd-daemon.pc
1300 %{_pkgconfigdir}/libsystemd-id128.pc
1301 %{_pkgconfigdir}/libsystemd-journal.pc
1302 %{_pkgconfigdir}/libsystemd-login.pc
1303 %{_mandir}/man3/SD_*.3*
1304 %{_mandir}/man3/sd*.3*
1306 %files -n bash-completion-systemd
1307 %defattr(644,root,root,755)
1308 /etc/bash_completion.d/systemd-bash-completion.sh
1311 %defattr(644,root,root,755)
1312 %dev(c,1,3) %attr(666,root,root) /dev/null
1313 %dev(c,5,1) %attr(660,root,console) /dev/console
1314 %dev(c,1,5) %attr(666,root,root) /dev/zero
1317 %defattr(644,root,root,755)
1321 %attr(755,root,root) /lib/udev/collect
1323 %attr(755,root,root) /lib/udev/keyboard-force-release.sh
1325 %attr(755,root,root) /lib/udev/net_helper
1327 %attr(755,root,root) /lib/udev/ata_id
1328 %attr(755,root,root) /lib/udev/cdrom_id
1329 %attr(755,root,root) /lib/udev/mtd_probe
1330 %attr(755,root,root) /lib/udev/scsi_id
1331 %attr(755,root,root) /lib/udev/v4l_id
1333 %attr(755,root,root) /lib/udev/udevd
1335 %attr(755,root,root) /lib/udev/keymap
1336 %dir /lib/udev/keymaps
1339 %attr(755,root,root) /lib/udev/accelerometer
1340 %attr(755,root,root) /lib/udev/findkeyboards
1342 %dir /lib/udev/hwdb.d
1343 /lib/udev/hwdb.d/20-OUI.hwdb
1344 /lib/udev/hwdb.d/20-acpi-vendor.hwdb
1345 /lib/udev/hwdb.d/20-pci-classes.hwdb
1346 /lib/udev/hwdb.d/20-pci-vendor-product.hwdb
1347 /lib/udev/hwdb.d/20-usb-classes.hwdb
1348 /lib/udev/hwdb.d/20-usb-vendor-product.hwdb
1350 %attr(755,root,root) %{_sbindir}/start_udev
1351 %attr(755,root,root) %{_sbindir}/udevd
1352 %attr(755,root,root) %{_sbindir}/udevadm
1353 %attr(755,root,root) %{_bindir}/udevadm
1355 %dir %{_sysconfdir}/udev
1356 %dir %{_sysconfdir}/udev/rules.d
1357 %dir %{_sysconfdir}/udev/hwdb.d
1359 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/modprobe.d/fbdev-blacklist.conf
1360 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/modprobe.d/udev_blacklist.conf
1361 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/udev/links.conf
1362 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/udev/rules.d/40-alsa-restore.rules
1363 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/udev/rules.d/70-udev-pld.rules
1365 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/udev/udev.conf
1367 # rules below are NOT supposed to be changed by users
1368 /lib/udev/rules.d/42-usb-hid-pm.rules
1369 /lib/udev/rules.d/50-udev-default.rules
1370 /lib/udev/rules.d/60-cdrom_id.rules
1371 /lib/udev/rules.d/60-persistent-alsa.rules
1372 /lib/udev/rules.d/60-persistent-input.rules
1373 /lib/udev/rules.d/60-persistent-serial.rules
1374 /lib/udev/rules.d/60-persistent-storage-tape.rules
1375 /lib/udev/rules.d/60-persistent-storage.rules
1376 /lib/udev/rules.d/60-persistent-v4l.rules
1377 /lib/udev/rules.d/61-accelerometer.rules
1378 /lib/udev/rules.d/64-btrfs.rules
1379 /lib/udev/rules.d/70-power-switch.rules
1380 /lib/udev/rules.d/75-net-description.rules
1381 /lib/udev/rules.d/75-probe_mtd.rules
1382 /lib/udev/rules.d/75-tty-description.rules
1383 /lib/udev/rules.d/78-sound-card.rules
1384 /lib/udev/rules.d/80-drivers.rules
1385 /lib/udev/rules.d/95-keyboard-force-release.rules
1386 /lib/udev/rules.d/95-keymap.rules
1387 /lib/udev/rules.d/95-udev-late.rules
1389 %{_mandir}/man7/udev.7*
1390 %{_mandir}/man8/udevadm.8*
1391 %{_mandir}/man8/udevd.8*
1394 %defattr(644,root,root,755)
1395 %attr(755,root,root) /%{_lib}/libudev.so.*.*.*
1396 %attr(755,root,root) %ghost /%{_lib}/libudev.so.1
1398 %files -n udev-devel
1399 %defattr(644,root,root,755)
1400 %attr(755,root,root) %{_libdir}/libudev.so
1401 %{_includedir}/libudev.h
1402 %{_pkgconfigdir}/libudev.pc
1403 %{_npkgconfigdir}/udev.pc
1405 %files -n udev-static
1406 %defattr(644,root,root,755)
1407 %attr(755,root,root) %{_libdir}/libudev.a
1409 %files -n udev-apidocs
1410 %defattr(644,root,root,755)
1411 %{_gtkdocdir}/libudev
1414 %defattr(644,root,root,755)
1415 %attr(755,root,root) /%{_lib}/libgudev-1.0.so.*.*.*
1416 %attr(755,root,root) %ghost /%{_lib}/libgudev-1.0.so.0
1417 %{_libdir}/girepository-1.0/GUdev-1.0.typelib
1419 %files -n udev-glib-devel
1420 %defattr(644,root,root,755)
1421 %attr(755,root,root) %{_libdir}/libgudev-1.0.so
1422 %{_includedir}/gudev-1.0
1423 %{_pkgconfigdir}/gudev-1.0.pc
1424 %{_datadir}/gir-1.0/GUdev-1.0.gir
1426 %files -n udev-glib-static
1427 %defattr(644,root,root,755)
1428 %attr(755,root,root) %{_libdir}/libgudev-1.0.a
1430 %files -n udev-glib-apidocs
1431 %defattr(644,root,root,755)
1435 %files -n udev-initrd
1436 %defattr(644,root,root,755)
1437 %dir %{_libdir}/initrd/udev
1438 %attr(755,root,root) %{_libdir}/initrd/systemd-udevd
1439 %attr(755,root,root) %{_libdir}/initrd/udevd
1440 %attr(755,root,root) %{_libdir}/initrd/udevadm
1441 %attr(755,root,root) %{_libdir}/initrd/udevstart
1442 %attr(755,root,root) %{_libdir}/initrd/udev/*_id
1443 %attr(755,root,root) %{_libdir}/initrd/udev/collect
1444 %attr(755,root,root) %{_libdir}/initrd/udev/mtd_probe
1447 %files -n python-systemd
1448 %defattr(644,root,root,755)
1449 %dir %{py_sitedir}/systemd
1450 %{py_sitedir}/systemd/*.py*
1451 %attr(755,root,root) %{py_sitedir}/systemd/*.so