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