2 # - initrd needs love (does not build and is probably completly unusable in current form)
3 # - merge rpm macros provided by systemd with ours
6 %bcond_without audit # without audit support
7 %bcond_without cryptsetup # without cryptsetup support
8 %bcond_without microhttpd # microhttpd support
9 %bcond_without pam # PAM authentication support
10 %bcond_without qrencode # QRencode 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: 26a75e2a310f8c1c1ea9ec26ddb171c5
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
62 Source19: prefdm.service
64 Source101: udev-alsa.rules
66 Source103: udev-links.conf
68 Source110: udev-net.helper
71 Source120: udev.blacklist
72 Source121: fbdev.blacklist
73 Patch0: target-pld.patch
74 Patch1: config-pld.patch
75 Patch2: shut-sysv-up.patch
76 Patch3: pld-sysv-network.patch
77 Patch4: tmpfiles-not-fatal.patch
79 Patch7: udev-uClibc.patch
80 Patch8: udev-ploop-rules.patch
81 Patch9: udevadm-in-sbin.patch
82 Patch10: net-rename-revert.patch
83 Patch11: nss-in-rootlib.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: pkgconfig >= 0.9.0
113 BuildRequires: python-devel
114 BuildRequires: python-modules
115 %{?with_qrencode:BuildRequires: qrencode-devel}
116 BuildRequires: rpm-pythonprov
117 BuildRequires: rpmbuild(macros) >= 1.628
118 BuildRequires: sed >= 4.0
119 BuildRequires: usbutils >= 0.82
120 BuildRequires: xz-devel
121 BuildRequires: zlib-devel
123 BuildRequires: acl-static
124 BuildRequires: attr-static
125 %{?with_dietlibc:BuildRequires: dietlibc-static}
126 BuildRequires: glib2-static >= 1:2.22.0
127 %{?with_glibc:BuildRequires: glibc-static}
128 %{?with_klibc:BuildRequires: klibc-static}
129 BuildRequires: kmod-libs-static >= 5
130 BuildRequires: libblkid-static >= 2.20
131 %{?with_glibc:BuildRequires: libselinux-static >= 2.1.9}
132 %{?with_glibc:BuildRequires: libsepol-static}
133 %{?with_klibc:BuildRequires: linux-libc-headers}
134 BuildRequires: pcre-static
135 %{?with_uClibc:BuildRequires: uClibc-static >= 4:0.9.30.3}
136 BuildRequires: xz-static
137 BuildRequires: zlib-static
139 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
140 Requires: %{name}-units = %{epoch}:%{version}-%{release}
141 Requires(postun): /usr/sbin/groupdel
142 Requires(postun): /usr/sbin/userdel
143 Requires(pre): /bin/id
144 Requires(pre): /usr/bin/getgid
145 Requires(pre): /usr/sbin/groupadd
146 Requires(pre): /usr/sbin/useradd
147 Requires: /etc/os-release
148 Requires: SysVinit-tools
150 %{?with_cryptsetup:Requires: cryptsetup >= 1.4.3}
151 Requires: dbus >= 1.4.16-6
152 Requires: filesystem >= 4.0-3
153 Requires: libutempter
154 Requires: rc-scripts >= 0.4.5.3-7
155 Requires: setup >= 2.8.0-2
156 Requires: udev-core = %{epoch}:%{version}-%{release}
157 Requires: udev-libs = %{epoch}:%{version}-%{release}
158 Requires: virtual(module-tools)
160 Suggests: fsck >= 2.20
162 Suggests: service(klogd)
163 Suggests: service(syslog)
164 Provides: user(systemd-journal-gateway)
165 Provides: group(systemd-journal-gateway)
166 Provides: group(systemd-journal)
167 Provides: udev-acl = %{epoch}:%{version}-%{release}
168 Obsoletes: systemd-no-compat-tmpfiles
169 Obsoletes: udev-systemd
170 # systemd takes care of that and causes problems
171 Conflicts: binfmt-detector
172 # sytemd wants pam with pam_systemd.so in system-auth...
173 Conflicts: pam < 1:1.1.5-5
174 # ...and sudo hates it
175 Conflicts: sudo < 1:1.7.8p2-4
177 Conflicts: xinitrc-ng < 1.0
178 # systemd scripts use options not present in older versions
179 Conflicts: kpartx < 0.4.9-7
180 Conflicts: multipath-tools < 0.4.9-7
181 # no tmpfs on /media, use /run/media/$USER for mounting
182 Conflicts: udisks2 < 1.92.0
183 # packages that have dirs under /var/run and/or /var/lock must provide tmpfiles configs
184 Conflicts: ConsoleKit-dirs < 0.4.5-7
185 Conflicts: NetworkManager < 2:0.9.2.0-3
186 Conflicts: Zope < 2.11.8-2
187 Conflicts: amavisd-new < 1:2.7.0-1
188 Conflicts: apache-base < 2.2.21-4
189 Conflicts: apache-mod_bw < 0.92-3
190 Conflicts: apache-mod_fastcgi < 2.4.6-6
191 Conflicts: apache1-base < 1.3.42-5
192 Conflicts: apache1-mod_fastcgi < 2.4.6-2
193 Conflicts: asterisk < 10.0.1-2
194 Conflicts: autossh-init < 1.4b-3
195 Conflicts: balance < 3.54-2
196 Conflicts: bind < 7:9.8.1.P1-4
197 Conflicts: bopm < 3.1.3-4
198 Conflicts: callweaver < 1.2.1-9
199 Conflicts: cassandra-bin < 0.8.9-2
200 Conflicts: clamav < 0.97.3-3
201 Conflicts: cups < 1:1.5.0-10
202 Conflicts: dovecot < 1:2.0.16-3
203 Conflicts: dspam < 3.9.0-6
204 Conflicts: fail2ban < 0.8.4-4
205 Conflicts: gammu-smsd < 1:1.31.0-3
206 # Break gdm2.20 installs
207 #Conflicts: gdm < 2:3.2.1.1-9
208 Conflicts: greylistd < 0.8.8-2
209 Conflicts: inn < 2.4.6-7
210 Conflicts: ipsec-tools < 0.8.0-3
211 Conflicts: jabber-common < 0-9
212 Conflicts: laptop-mode-tools < 1.58-2
213 Conflicts: libgpod < 0.8.0-6
214 Conflicts: libvirt-utils < 0.9.9-4
215 Conflicts: lighttpd < 1.4.30-5
216 Conflicts: lirc < 0.9.0-20
217 Conflicts: mailman < 5:2.1.14-4
218 Conflicts: memcached < 1.4.11-2
219 Conflicts: mpd < 0.16.5-4
220 Conflicts: mrtg < 2.17.0-3
221 Conflicts: munin-common < 1.4.5-5
222 Conflicts: nagios-nrpe < 2.13-2
223 Conflicts: ndisc6-rdnssd < 1.0.1-3
224 Conflicts: nscd < 6:2.14.1-5
225 Conflicts: nss_ldapd-nslcd < 0.8.4-2
226 Conflicts: openct < 0.6.20-3
227 Conflicts: openl2tp < 1.8-3
228 Conflicts: openldap-overlay-nssov < 2.4.28-4
229 Conflicts: openldap-servers < 2.4.28-4
230 Conflicts: openvpn < 2.2.2-2
231 Conflicts: pam-pam_mount < 2.12-3
232 Conflicts: pam-pam_ssh < 1.97-2
233 Conflicts: pcsc-lite < 1.8.1-2
234 Conflicts: php-dirs < 1.2-3
235 Conflicts: policyd < 2.0.10-3
236 Conflicts: pound < 2.6-2
237 Conflicts: pptp < 1.7.2-3
238 Conflicts: proftpd-common < 2:1.3.4a-2
239 Conflicts: pulseaudio-server < 1.1-2
240 Conflicts: quagga < 0.99.20-3
241 Conflicts: radvd < 1.8.5-2
242 Conflicts: red5 < 0.9.0-2
243 Conflicts: redis-server < 2.4.2-4
244 Conflicts: smokeping < 2.4.2-10
245 Conflicts: smtp-gated < 1.4.17-2
246 Conflicts: socat < 1.7.2.0-2
247 Conflicts: speech-dispatcher < 0.7.1-2
248 Conflicts: sphinx < 2.0.3-4
249 Conflicts: splashutils < 1.5.4.3-3
250 Conflicts: stunnel < 4.50-2
251 Conflicts: tenshi < 0.12-2
252 Conflicts: tor < 0.2.2.35-2
253 Conflicts: ucarp < 1.5.2-3
254 Conflicts: udisks < 1.0.4-3
255 Conflicts: util-vserver < 0.30.216-1.pre3002.3
256 Conflicts: vpnc < 0.5.3-2
257 Conflicts: web2ldap < 1.1.0rc1-2
258 Conflicts: wesnoth-server < 1:1.10-2
259 Conflicts: wpa_supplicant < 0.7.3-10
260 Conflicts: xl2tpd < 1.3.0-2
261 # end of tmpfiles conflicts
262 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
264 %define _sbindir /sbin
265 %define _libexecdir %{_prefix}/lib
268 systemd is a system and service manager for Linux, compatible with
269 SysV and LSB init scripts. systemd provides aggressive parallelization
270 capabilities, uses socket and D-Bus activation for starting services,
271 offers on-demand starting of daemons, keeps track of processes using
272 Linux cgroups, supports snapshotting and restoring of the system
273 state, maintains mount and automount points and implements an
274 elaborate transactional dependency-based service control logic. It can
275 work as a drop-in replacement for sysvinit.
277 %description -l pl.UTF-8
278 systemd jest zarządcą systemu i usług dla Linuksa, kompatybilny ze
279 skryptami SysV i LSB. systemd udostępnia rozbudowane zdolności
280 paralelizacji, do uruchamiania usług używa socketów oraz D-Busa,
281 oferuje uruchamianie usług na życzenie, monitoruje procesy używając
282 linuksowych cgroups, wspomaga zapisywanie (snapshot) i odczytywanie
283 (restore) stanu systemu, zarządza (auto)mount pointami oraz
284 implementuje starannie opracowaną transakcjonalną, bazującą na
285 zależnościach logikę kontroli usług. Może pracować jako zastępca dla
289 Summary: systemd /sbin/init and LSB/SysV compatibility symlinks
290 Summary(pl.UTF-8): /sbin/init z systemd i dowiązania dla kompatybilności z LSB/SysV
293 Provides: readahead = 1:1.5.7-3
294 Provides: virtual(init-daemon)
296 Obsoletes: readahead < 1:1.5.7-3
297 Obsoletes: virtual(init-daemon)
301 Install this package when you are ready to final switch to systemd.
303 %description init -l pl.UTF-8
304 Ten pakiet należy zainstalować po przygotowaniu się do ostatecznego
305 przejścia na systemd.
308 Summary: Configuration files, directories and installation tool for systemd
309 Summary(pl.UTF-8): Pliki konfiguracyjne, katalogi i narzędzie instalacyjne dla systemd
311 Requires(post): coreutils
312 Requires(post): /bin/awk
315 Basic configuration files, directories and installation tool for the
316 systemd system and service manager.
318 This is common config, use %{_sysconfdir}/systemd/system to override.
320 %description units -l pl.UTF-8
321 Podstawowe pliki konfiguracyjne, katalogi i narzędzie instalacyjne dla
322 zarządcy systemu i usług systemd.
324 Ten pakiet zawiera ogólną konfigurację, ustawienia można nadpisać
325 poprzez katalog %{_sysconfdir}/systemd/system.
328 Summary: Native inet service support for systemd via socket activation
329 Summary(pl.UTF-8): Natywna obsługa usług inet dla systemd
331 Requires: %{name} = %{epoch}:%{version}-%{release}
335 Obsoletes: inetdaemon
340 Native inet service support for systemd via socket activation.
342 This package contains inet service generator that provides
343 the functionality of rc-inetd service and replaces a separate
344 inet daemon with systemd socket activation feature.
346 %description inetd -l pl.UTF-8
347 Natywna obsługa usług inet dla systemd.
349 Ten pakiet zawiera generator usług inet udostępniający funkcjonalność
350 serwisu rc-inetd i zastępujący osobny demon inet przez systemd i
351 aktywację usług przez gniazda.
354 Summary: Tool for processing systemd profiling information
355 Summary(pl.UTF-8): Narzędzie do przetwarzania informacji profilujących systemd
357 Requires: %{name} = %{epoch}:%{version}-%{release}
358 Requires: python-dbus
359 Requires: python-modules
360 Suggests: python-pycairo
361 Conflicts: systemd < 44-3
364 'systemd-analyze blame' lists which systemd unit needed how much time
365 to finish initialization at boot. 'systemd-analyze plot' renders an
366 SVG visualizing the parallel start of units at boot.
368 %description analyze -l pl.UTF-8
369 'systemd-analyze blame' wypisuje, ile czasu wymagały poszczególne
370 jednostki systemd na zakończenie podczas rozruchu systemu.
371 'systemd-analyze plot' tworzy wykres SVG wizualizujący równoległy
372 start jednostek podczas rozruchu.
375 Summary: Shared systemd libraries
376 Summary(pl.UTF-8): Biblioteki współdzielone systemd
378 Requires: libgcrypt >= 1.4.5
379 %{?with_selinux:Requires: libselinux >= 2.1.9}
380 Obsoletes: nss_myhostname
383 Shared systemd libraries.
385 %description libs -l pl.UTF-8
386 Biblioteki współdzielone systemd.
389 Summary: Header files for systemd libraries
390 Summary(pl.UTF-8): Pliki nagłówkowe bibliotek systemd
391 Group: Development/Libraries
392 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
395 Header files for systemd libraries.
397 %description devel -l pl.UTF-8
398 Pliki nagłówkowe bibliotek systemd.
400 %package -n bash-completion-systemd
401 Summary: bash-completion for systemd
402 Summary(pl.UTF-8): Bashowe dopełnianie składni dla systemd
403 Group: Applications/Shells
404 Requires: %{name} = %{epoch}:%{version}
405 Requires: bash-completion >= 2.0
407 %description -n bash-completion-systemd
408 bash-completion for systemd.
410 %description -n bash-completion-systemd -l pl.UTF-8
411 Bashowe dopełnianie składni dla systemd.
414 Summary: Device manager for the Linux 2.6 kernel series
415 Summary(pl.UTF-8): Zarządca urządzeń dla Linuksa 2.6
417 Requires: udev-core = %{epoch}:%{version}-%{release}
418 Provides: dev = 3.5.0
421 Obsoletes: hotplug-input
422 Obsoletes: hotplug-net
423 Obsoletes: hotplug-pci
425 Obsoletes: udev-extras < 20090628
426 Obsoletes: udev-tools
429 udev is the device manager for the Linux 2.6 kernel series. Its
430 primary function is managing device nodes in /dev. It is the successor
431 of devfs and hotplug.
433 %description -n udev -l pl.UTF-8
434 udev jest zarządcą urządzeń dla Linuksa 2.6. Jego główną funkcją jest
435 zarządzanie węzłami urządzeń w katalogu /dev. Jest następcą devfs i
438 %package -n udev-core
439 Summary: A userspace implementation of devfs - core part of udev
440 Summary(pl.UTF-8): Implementacja devfs w przestrzeni użytkownika - główna część udev
442 Requires: udev-libs = %{epoch}:%{version}-%{release}
444 Requires: filesystem >= 3.0-45
445 Requires: kmod-libs >= 5
446 Requires: libblkid >= 2.20
447 %{?with_selinux:Requires: libselinux >= 2.1.9}
448 Requires: setup >= 2.6.1-1
449 Requires: uname(release) >= 2.6.32
450 Conflicts: rc-scripts < 0.4.5.3-1
451 Conflicts: systemd-units < 1:183
452 Conflicts: udev < 1:118-1
453 Obsoletes: udev-compat
454 %{!?with_initrd:Obsoletes: udev-initrd < %{epoch}:%{version}-%{release}}
456 %description -n udev-core
457 A userspace implementation of devfs - core part of udev.
459 %description -n udev-core -l pl.UTF-8
460 Implementacja devfs w przestrzeni użytkownika - główna część udev.
462 %package -n udev-libs
463 Summary: Shared library to access udev device information
464 Summary(pl.UTF-8): Biblioteka współdzielona do dostępu do informacji o urządzeniach udev
467 %description -n udev-libs
468 Shared libudev library to access udev device information.
470 %description -n udev-libs -l pl.UTF-8
471 Biblioteka współdzielona libudev służąca do dostępu do informacji o
474 %package -n udev-devel
475 Summary: Header file for libudev library
476 Summary(pl.UTF-8): Plik nagłówkowy biblioteki libudev
477 Group: Development/Libraries
478 Requires: udev-libs = %{epoch}:%{version}-%{release}
480 %description -n udev-devel
481 Header file for libudev library.
483 %description -n udev-devel -l pl.UTF-8
484 Plik nagłówkowy biblioteki libudev.
486 %package -n udev-static
487 Summary: Static libudev library
488 Summary(pl.UTF-8): Biblioteka statyczna libudev
489 Group: Development/Libraries
490 Requires: udev-devel = %{epoch}:%{version}-%{release}
492 %description -n udev-static
493 Static libudev library.
495 %description -n udev-static -l pl.UTF-8
496 Biblioteka statyczna libudev.
498 %package -n udev-apidocs
499 Summary: libudev API documentation
500 Summary(pl.UTF-8): Dokumentacja API libudev
502 Requires: gtk-doc-common
504 %description -n udev-apidocs
505 libudev API documentation.
507 %description -n udev-apidocs -l pl.UTF-8
508 Dokumentacja API libudev.
510 %package -n udev-glib
511 Summary: Shared libgudev library - GObject bindings for libudev
512 Summary(pl.UTF-8): Biblioteka współdzielona libgudev - wiązania GObject do libudev
514 Requires: udev-libs = %{epoch}:%{version}-%{release}
515 Requires: glib2 >= 1:2.22.0
517 %description -n udev-glib
518 Shared libgudev library - GObject bindings for libudev.
520 %description -n udev-glib -l pl.UTF-8
521 Biblioteka współdzielona libgudev - wiązania GObject do libudev.
523 %package -n udev-glib-devel
524 Summary: Header file for libgudev library
525 Summary(pl.UTF-8): Plik nagłówkowy biblioteki libgudev
526 Group: Development/Libraries
527 Requires: udev-devel = %{epoch}:%{version}-%{release}
528 Requires: udev-glib = %{epoch}:%{version}-%{release}
529 Requires: glib2-devel >= 1:2.22.0
531 %description -n udev-glib-devel
532 Header file for libgudev library.
534 %description -n udev-glib-devel -l pl.UTF-8
535 Plik nagłówkowy biblioteki libgudev.
537 %package -n udev-glib-static
538 Summary: Static libgudev library
539 Summary(pl.UTF-8): Biblioteka statyczna libgudev
540 Group: Development/Libraries
541 Requires: udev-glib-devel = %{epoch}:%{version}-%{release}
543 %description -n udev-glib-static
544 Static libgudev library.
546 %description -n udev-glib-static -l pl.UTF-8
547 Biblioteka statyczna libgudev.
549 %package -n udev-glib-apidocs
550 Summary: libgudev API documentation
551 Summary(pl.UTF-8): Dokumentacja API libgudev
553 Requires: gtk-doc-common
555 %description -n udev-glib-apidocs
556 libgudev API documentation.
558 %description -n udev-glib-apidocs -l pl.UTF-8
559 Dokumentacja API libgudev.
561 %package -n udev-initrd
562 Summary: A userspace implementation of devfs - static binary for initrd
563 Summary(pl.UTF-8): Implementacja devfs w przestrzeni użytkownika - statyczna binarka dla initrd
565 Requires: udev-core = %{epoch}:%{version}-%{release}
566 Conflicts: geninitrd < 10000.10
568 %description -n udev-initrd
569 A userspace implementation of devfs - static binary for initrd.
571 %description -n udev-initrd -l pl.UTF-8
572 Implementacja devfs w przestrzeni użytkownika - statyczna binarka dla
575 %package -n bash-completion-udev
576 Summary: bash-completion for udev
577 Summary(pl.UTF-8): Bashowe dopełnianie składni dla udev
578 Group: Applications/Shells
579 Requires: udev = %{epoch}:%{version}
580 Requires: bash-completion >= 2.0
582 %description -n bash-completion-udev
583 bash-completion for udev.
585 %description -n bash-completion-udev -l pl.UTF-8
586 Bashowe dopełnianie składni dla udev.
589 %package -n python-systemd
590 Summary: Systemd Python bindings
591 Summary(pl.UTF-8): Wiązania do Systemd dla Pythona
592 Group: Development/Languages/Python
593 %pyrequires_eq python
594 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
596 %description -n python-systemd
597 Systemd Python bindings.
599 %description -n python-systemd -l pl.UTF-8
600 Wiązania do Systemd dla Pythona.
617 cp -p %{SOURCE2} src/systemd_booted.c
627 patch -p1 <%{PATCH100}
629 %if "%{?configure_cache}" == "1"
630 --cache-file=%{?configure_cache_file}%{!?configure_cache_file:configure}-initrd.cache \
632 %{?with_uClibc:CC="%{_target_cpu}-uclibc-gcc"} \
633 %{?with_dietlibc:CC="diet %{__cc} %{rpmcflags} %{rpmldflags} -Os -D_BSD_SOURCE"} \
634 %{?with_klibc:CC="%{_bindir}/klcc"} \
635 %{?debug:--enable-debug} \
636 --disable-silent-rules \
642 --disable-introspection \
644 --disable-microhttpd \
650 --with-kbd-loadkeys=/usr/bin/loadkeys \
651 --with-kbd-setfont=/bin/setfont \
652 --with-sysvinit-path=/etc/rc.d/init.d \
653 --with-sysvrcnd-path=/etc/rc.d \
654 --with-rc-local-script-path-start=/etc/rc.d/rc.local \
655 --with-rc-local-script-path-stop=/sbin/halt.local \
656 --with-rootprefix="" \
657 --with-rootlibdir=/%{_lib}
670 LDFLAGS="-all-static" \
671 KMOD_LIBS="-lkmod -lz -llzma"
674 cp -a systemd-udevd \
686 patch -p1 -R <%{PATCH100}
690 QUOTAON=/sbin/quotaon \
691 QUOTACHECK=/sbin/quotacheck \
692 SETCAP=/sbin/setcap \
694 %{?debug:--enable-debug} \
695 %{__enable_disable audit} \
696 %{__enable_disable cryptsetup libcryptsetup} \
697 %{__enable_disable pam} \
698 %{__enable_disable selinux} \
699 %{__enable_disable tcpd tcpwrap} \
700 %{__enable_disable microhttpd} \
701 %{__enable_disable qrencode} \
702 --disable-silent-rules \
705 --enable-introspection \
708 --with-html-dir=%{_gtkdocdir} \
709 --with-kbd-loadkeys=/usr/bin/loadkeys \
710 --with-kbd-setfont=/bin/setfont \
711 --with-sysvinit-path=/etc/rc.d/init.d \
712 --with-sysvrcnd-path=/etc/rc.d \
713 --with-rc-local-script-path-start=/etc/rc.d/rc.local \
714 --with-rc-local-script-path-stop=/sbin/halt.local \
715 --with-rootprefix="" \
716 --with-rootlibdir=/%{_lib}
719 ./libtool --mode=link --tag=CC %{__cc} %{rpmcppflags} %{rpmcflags} -o systemd_booted %{rpmldflags} src/systemd_booted.c -L. -lsystemd-daemon
722 rm -rf $RPM_BUILD_ROOT
723 install -d $RPM_BUILD_ROOT/var/lib/%{name}/coredump \
724 $RPM_BUILD_ROOT{%{_sysconfdir}/{modprobe.d,systemd/system-preset},%{_sbindir}}
727 DESTDIR=$RPM_BUILD_ROOT
729 ./libtool --mode=install install -p -m755 systemd_booted $RPM_BUILD_ROOT/bin/systemd_booted
731 # compatibility symlinks to udevd binary
732 mv $RPM_BUILD_ROOT/lib/{systemd/systemd-,udev/}udevd
733 ln -s /lib/udev/udevd $RPM_BUILD_ROOT/lib/systemd/systemd-udevd
734 ln -s /lib/udev/udevd $RPM_BUILD_ROOT%{_sbindir}/udevd
736 # compat symlinks for "/ merged into /usr" programs
737 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/udevadm
738 ln -s %{_sbindir}/udevadm $RPM_BUILD_ROOT%{_bindir}
739 ln -s /lib/udev $RPM_BUILD_ROOT/usr/lib/
741 # install custom udev rules from pld package
742 cp -a %{SOURCE101} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d/40-alsa-restore.rules
743 cp -a %{SOURCE102} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d/70-udev-pld.rules
745 # disable this abomination
746 # http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames
747 ln -s /dev/null $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d/80-net-name-slot.rules
749 # install udev configs
750 cp -a %{SOURCE103} $RPM_BUILD_ROOT%{_sysconfdir}/udev/links.conf
752 # install udev executables (scripts, helpers, etc.)
753 install -p %{SOURCE110} $RPM_BUILD_ROOT/lib/udev/net_helper
754 install -p %{SOURCE111} $RPM_BUILD_ROOT%{_sbindir}/start_udev
756 # install misc udev stuff
757 cp -a %{SOURCE120} $RPM_BUILD_ROOT%{_sysconfdir}/modprobe.d/udev_blacklist.conf
758 cp -a %{SOURCE121} $RPM_BUILD_ROOT%{_sysconfdir}/modprobe.d/fbdev-blacklist.conf
760 mv $RPM_BUILD_ROOT%{_mandir}/man8/{systemd-,}udevd.8
761 echo ".so man8/udevd.8" >$RPM_BUILD_ROOT%{_mandir}/man8/systemd-udevd.8
764 install -d $RPM_BUILD_ROOT%{_libdir}/initrd/udev
765 install -p udev-initrd/udevadm $RPM_BUILD_ROOT%{_libdir}/initrd
766 install -p udev-initrd/systemd-udevd $RPM_BUILD_ROOT%{_libdir}/initrd
767 # hardlink udevd -> systemd-udevd
768 ln $RPM_BUILD_ROOT%{_libdir}/initrd/{systemd-,}udevd
769 ln -s udevd $RPM_BUILD_ROOT%{_libdir}/initrd/udevstart
770 install -p udev-initrd/*_id $RPM_BUILD_ROOT%{_libdir}/initrd/udev
771 install -p udev-initrd/collect $RPM_BUILD_ROOT%{_libdir}/initrd/udev
772 install -p udev-initrd/mtd_probe $RPM_BUILD_ROOT%{_libdir}/initrd/udev
775 # Main binary has been moved, but we don't want to break existing installs
776 ln -s ../lib/systemd/systemd $RPM_BUILD_ROOT/bin/systemd
778 # Create SysV compatibility symlinks. systemctl/systemd are smart
779 # enough to detect the way they were called
780 install -d $RPM_BUILD_ROOT/sbin
781 ln -s ../lib/systemd/systemd $RPM_BUILD_ROOT/sbin/init
782 ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/halt
783 ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/poweroff
784 ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/reboot
785 ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/runlevel
786 ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/shutdown
787 ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/telinit
789 ln -s ../modules $RPM_BUILD_ROOT%{_sysconfdir}/modules-load.d/modules.conf
791 # disable redundant SYSV services
792 ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/allowlogin.service
793 ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/console.service
794 ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/cpusets.service
795 ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/killall.service
796 ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/netfs.service
797 ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/random.service
799 # add static (non-NetworkManager) networking
800 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{systemdunitdir}/network.service
802 # restore bind-mounts /var/run -> run and /var/lock -> /run/lock
803 # we don't have those directories symlinked
804 cp -p %{SOURCE4} $RPM_BUILD_ROOT%{systemdunitdir}/var-lock.mount
805 cp -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}/var-run.mount
806 ln -s ../var-lock.mount $RPM_BUILD_ROOT%{systemdunitdir}/local-fs.target.wants
807 ln -s ../var-run.mount $RPM_BUILD_ROOT%{systemdunitdir}/local-fs.target.wants
809 # and remove tmp on tmpfs mount
810 %{__rm} $RPM_BUILD_ROOT%{systemdunitdir}/tmp.mount
811 %{__rm} $RPM_BUILD_ROOT%{systemdunitdir}/local-fs.target.wants/tmp.mount
813 # Install and enable storage subsystems support services (RAID, LVM, etc.)
814 cp -p %{SOURCE10} $RPM_BUILD_ROOT%{systemdunitdir}/pld-storage-init-late.service
815 cp -p %{SOURCE11} $RPM_BUILD_ROOT%{systemdunitdir}/pld-storage-init.service
816 cp -p %{SOURCE12} $RPM_BUILD_ROOT%{systemdunitdir}/pld-wait-storage.service
817 cp -p %{SOURCE14} $RPM_BUILD_ROOT%{systemdunitdir}/pld-clean-tmp.service
818 install -p %{SOURCE13} $RPM_BUILD_ROOT/lib/systemd/pld-storage-init
819 install -p %{SOURCE15} $RPM_BUILD_ROOT/lib/systemd/pld-clean-tmp
821 ln -s ../pld-storage-init-late.service $RPM_BUILD_ROOT%{systemdunitdir}/local-fs.target.wants
822 ln -s ../pld-storage-init.service $RPM_BUILD_ROOT%{systemdunitdir}/local-fs.target.wants
823 ln -s ../pld-clean-tmp.service $RPM_BUILD_ROOT%{systemdunitdir}/local-fs.target.wants
825 # Install rc-inetd replacement
826 cp -p %{SOURCE16} $RPM_BUILD_ROOT/lib/systemd/system-generators/pld-rc-inetd-generator
827 cp -p %{SOURCE17} $RPM_BUILD_ROOT%{systemdunitdir}/rc-inetd.service
829 cp -p %{SOURCE18} $RPM_BUILD_ROOT%{_sysconfdir}/systemd/system-preset/default.preset
831 cp -p %{SOURCE19} $RPM_BUILD_ROOT%{systemdunitdir}/prefdm.service
833 # handled by rc-local sysv service, no need for generator
834 %{__rm} $RPM_BUILD_ROOT/lib/systemd/system-generators/systemd-rc-local-generator
836 # provided by rc-scripts
837 %{__rm} $RPM_BUILD_ROOT/lib/systemd/system/rc-local.service
839 # Make sure these directories are properly owned:
840 # - halt,kexec,poweroff,reboot: generic ones used by ConsoleKit-systemd,
841 # - syslog _might_ be used by some syslog implementation (none for now),
842 # - isn't dbus populated by dbus-systemd only (so to be moved there)?
843 install -d $RPM_BUILD_ROOT%{systemdunitdir}/{dbus,halt,kexec,poweroff,reboot,syslog}.target.wants
845 # Create new-style configuration files so that we can ghost-own them
846 touch $RPM_BUILD_ROOT%{_sysconfdir}/{hostname,locale.conf,machine-id,machine-info,timezone,vconsole.conf}
848 # Install SysV conversion tool for systemd
849 install -p %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}
851 install -d $RPM_BUILD_ROOT/var/log
852 :> $RPM_BUILD_ROOT/var/log/btmp
853 :> $RPM_BUILD_ROOT/var/log/wtmp
855 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
856 %{__rm} $RPM_BUILD_ROOT/%{_lib}/security/pam_systemd.la
857 %{__rm} $RPM_BUILD_ROOT/%{_lib}/libnss_myhostname.la
858 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
859 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/systemd/*.la
863 rm -rf $RPM_BUILD_ROOT
866 %groupadd -g 288 systemd-journal
867 %groupadd -g 287 systemd-journal-gateway
868 %useradd -u 287 -g 287 -d /var/log/journal -s /bin/false -c "Systemd Journal Gateway" systemd-journal-gateway
872 #setfacl -nm g:logs:rx,d:g:logs:rx /var/log/journal
873 /bin/systemd-machine-id-setup > /dev/null 2>&1 || :
874 /bin/systemctl daemon-reexec > /dev/null 2>&1 || :
877 if [ $1 -ge 1 ]; then
878 /bin/systemctl try-restart systemd-logind.service >/dev/null 2>&1 || :
880 if [ "$1" = "0" ]; then
881 %userremove systemd-journal-gateway
882 %groupremove systemd-journal-gateway
883 %groupremove systemd-journal
886 %post libs -p /sbin/ldconfig
887 %postun libs -p /sbin/ldconfig
890 if [ $1 -eq 1 ]; then
891 # Try to read default runlevel from the old inittab if it exists
892 runlevel=$(/bin/awk -F ':' '$3 == "initdefault" && $1 !~ "^#" { print $2 }' /etc/inittab 2> /dev/null)
893 if [ -z "$runlevel" ] ; then
894 target="%{systemdunitdir}/graphical.target"
896 target="%{systemdunitdir}/runlevel$runlevel.target"
899 # And symlink what we found to the new-style default.target
900 ln -s "$target" %{_sysconfdir}/systemd/system/default.target >/dev/null 2>&1 || :
903 [ -f /etc/sysconfig/network ] && . /etc/sysconfig/network
904 if [ -n "$HOSTNAME" -a "$HOSTNAME" != "pldmachine" ]; then
905 [ -f /etc/hostname ] && mv -f /etc/hostname /etc/hostname.rpmsave
906 echo $HOSTNAME > /etc/hostname
907 chmod 644 /etc/hostname
910 # Enable the services we install by default.
911 /bin/systemctl enable \
915 systemd-readahead-replay.service \
916 systemd-readahead-collect.service \
917 systemd-udev-settle.service >/dev/null 2>&1 || :
921 if [ $1 -eq 0 ] ; then
922 /bin/systemctl disable \
926 systemd-readahead-replay.service \
927 systemd-readahead-collect.service \
928 systemd-udev-settle.service >/dev/null 2>&1 || :
930 %{__rm} -f %{_sysconfdir}/systemd/system/default.target >/dev/null 2>&1 || :
934 if [ $1 -ge 1 ]; then
935 /bin/systemctl daemon-reload > /dev/null 2>&1 || :
938 %triggerpostun units -- systemd-units < 43-7
939 # Remove design fialures
940 %{__rm} -f %{_sysconfdir}/systemd/system/network.target.wants/ifcfg@*.service >/dev/null 2>&1 || :
941 %{__rm} -f %{_sysconfdir}/systemd/system/network.target.wants/network-post.service >/dev/null 2>&1 || :
942 %{__rm} -f %{_sysconfdir}/systemd/system/multi-user.target.wants/network-post.service >/dev/null 2>&1 || :
943 /bin/systemctl reenable network.service >/dev/null 2>&1 || :
945 %triggerpostun units -- systemd-units < 1:183
946 /bin/systemctl --quiet enable systemd-udev-settle.service >/dev/null 2>&1 || :
947 %{__rm} -f /etc/systemd/system/basic.target.wants/udev-settle.service >/dev/null 2>&1 || :
948 # preserve renamed configs
949 if [ -f /etc/systemd/systemd-journald.conf.rpmsave ]; then
950 %{__mv} /etc/systemd/journald.conf{,.rpmnew}
951 %{__mv} -f /etc/systemd/systemd-journald.conf.rpmsave /etc/systemd/journald.conf
953 if [ -f /etc/systemd/systemd-logind.conf.rpmsave ]; then
954 %{__mv} /etc/systemd/logind.conf{,.rpmnew}
955 %{__mv} -f /etc/systemd/systemd-logind.conf.rpmsave /etc/systemd/logind.conf
958 %triggerpostun units -- systemd-units < 1:187-3
959 if [ -f /etc/sysconfig/rpm ]; then
961 if [ ${RPM_ENABLE_SYSTEMD_SERVICE:-yes} = no ]; then
962 echo "disable *" >>%{_sysconfdir}/systemd/system-preset/default.preset
968 # Do not change it to restart, we only want to start new services here
969 %systemd_service_start sockets.target
974 %triggerpostun -n udev-core -- dev
975 if [ "$2" = 0 ]; then
976 # need to kill and restart udevd as after obsoleting dev package the
977 # /dev tree will remain empty. umask is needed as otherwise udev will
978 # create devices with strange permissions (udev bug probably)
980 /sbin/start_udev || exit 0
983 %triggerpostun -n udev-core -- udev < 108
984 %{__sed} -i -e 's#IMPORT{program}="/sbin/#IMPORT{program}="#g' /etc/udev/rules.d/*.rules
985 %if "%{_lib}" != "lib"
986 %{__sed} -i -e 's#/%{_lib}/udev/#/lib/udev/#g' /etc/udev/rules.d/*.rules
989 %triggerpostun -n udev-core -- udev < 165
990 /sbin/udevadm info --convert-db
993 if [ $1 -gt 1 ]; then
994 if [ ! -x /bin/systemd_booted ] || ! /bin/systemd_booted; then
995 if grep -qs devtmpfs /proc/mounts && [ -n "$(pidof udevd)" ]; then
996 /sbin/udevadm control --exit
997 /lib/udev/udevd --daemon
1000 SYSTEMD_LOG_LEVEL=warning SYSTEMD_LOG_TARGET=syslog \
1001 /bin/systemctl --quiet try-restart systemd-udevd.service || :
1005 %postun -n udev-core
1006 if [ -x /bin/systemd_booted ] && /bin/systemd_booted; then
1007 SYSTEMD_LOG_LEVEL=warning SYSTEMD_LOG_TARGET=syslog \
1008 /bin/systemctl --quiet daemon-reload || :
1011 %post -n udev-libs -p /sbin/ldconfig
1012 %postun -n udev-libs -p /sbin/ldconfig
1014 %post -n udev-glib -p /sbin/ldconfig
1015 %postun -n udev-glib -p /sbin/ldconfig
1018 %defattr(644,root,root,755)
1019 %doc DISTRO_PORTING README TODO
1020 /etc/dbus-1/system.d/org.freedesktop.hostname1.conf
1021 /etc/dbus-1/system.d/org.freedesktop.locale1.conf
1022 /etc/dbus-1/system.d/org.freedesktop.login1.conf
1023 /etc/dbus-1/system.d/org.freedesktop.systemd1.conf
1024 /etc/dbus-1/system.d/org.freedesktop.timedate1.conf
1025 %ghost %config(noreplace) %{_sysconfdir}/machine-id
1026 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/hostname
1027 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/locale.conf
1028 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/machine-info
1029 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/timezone
1030 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vconsole.conf
1031 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/systemd/bootchart.conf
1032 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/systemd/journald.conf
1033 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/systemd/logind.conf
1034 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/systemd/system.conf
1035 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/systemd/user.conf
1036 %dir %{_sysconfdir}/systemd/user
1037 %dir %{_sysconfdir}/systemd/system/*.target.wants
1038 %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/systemd/system/*.target.wants/*.service
1039 %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/systemd/system/*.target.wants/*.target
1041 %attr(755,root,root) /bin/journalctl
1042 %attr(755,root,root) /bin/loginctl
1043 %attr(755,root,root) /bin/systemd
1044 %attr(755,root,root) /bin/systemd-ask-password
1045 %attr(755,root,root) /bin/systemd-inhibit
1046 %attr(755,root,root) /bin/systemd-machine-id-setup
1047 %attr(755,root,root) /bin/systemd-notify
1048 %attr(755,root,root) /bin/systemd-tty-ask-password-agent
1049 %attr(755,root,root) %{_bindir}/bootctl
1050 %attr(755,root,root) %{_bindir}/hostnamectl
1051 %attr(755,root,root) %{_bindir}/kernel-install
1052 %attr(755,root,root) %{_bindir}/localectl
1053 %attr(755,root,root) %{_bindir}/systemd-cat
1054 %attr(755,root,root) %{_bindir}/systemd-cgls
1055 %attr(755,root,root) %{_bindir}/systemd-cgtop
1056 %attr(755,root,root) %{_bindir}/systemd-coredumpctl
1057 %attr(755,root,root) %{_bindir}/systemd-delta
1058 %attr(755,root,root) %{_bindir}/systemd-detect-virt
1059 %attr(755,root,root) %{_bindir}/systemd-nspawn
1060 %attr(755,root,root) %{_bindir}/systemd-stdio-bridge
1061 %attr(755,root,root) %{_bindir}/systemd-sysv-convert
1062 %attr(755,root,root) %{_bindir}/timedatectl
1063 %attr(755,root,root) /lib/systemd/pld-clean-tmp
1064 %attr(755,root,root) /lib/systemd/pld-storage-init
1065 %attr(755,root,root) /lib/systemd/systemd-ac-power
1066 %attr(755,root,root) /lib/systemd/systemd-activate
1067 %attr(755,root,root) /lib/systemd/systemd-binfmt
1068 %attr(755,root,root) /lib/systemd/systemd-bootchart
1069 %attr(755,root,root) /lib/systemd/systemd-cgroups-agent
1070 %attr(755,root,root) /lib/systemd/systemd-coredump
1071 %{?with_cryptsetup:%attr(755,root,root) /lib/systemd/systemd-cryptsetup}
1072 %attr(755,root,root) /lib/systemd/systemd-fsck
1073 %attr(755,root,root) /lib/systemd/systemd-hostnamed
1074 %attr(755,root,root) /lib/systemd/systemd-initctl
1075 %{?with_microhttpd:%attr(755,root,root) /lib/systemd/systemd-journal-gatewayd}
1076 %attr(755,root,root) /lib/systemd/systemd-journald
1077 %attr(755,root,root) /lib/systemd/systemd-localed
1078 %attr(755,root,root) /lib/systemd/systemd-logind
1079 %attr(755,root,root) /lib/systemd/systemd-modules-load
1080 %attr(755,root,root) /lib/systemd/systemd-multi-seat-x
1081 %attr(755,root,root) /lib/systemd/systemd-quotacheck
1082 %attr(755,root,root) /lib/systemd/systemd-random-seed
1083 %attr(755,root,root) /lib/systemd/systemd-readahead
1084 %attr(755,root,root) /lib/systemd/systemd-remount-fs
1085 %attr(755,root,root) /lib/systemd/systemd-reply-password
1086 %attr(755,root,root) /lib/systemd/systemd-shutdown
1087 %attr(755,root,root) /lib/systemd/systemd-shutdownd
1088 %attr(755,root,root) /lib/systemd/systemd-sleep
1089 %attr(755,root,root) /lib/systemd/systemd-sysctl
1090 %attr(755,root,root) /lib/systemd/systemd-timedated
1091 %attr(755,root,root) /lib/systemd/systemd-timestamp
1092 %attr(755,root,root) /lib/systemd/systemd-udevd
1093 %attr(755,root,root) /lib/systemd/systemd-update-utmp
1094 %attr(755,root,root) /lib/systemd/systemd-user-sessions
1095 %attr(755,root,root) /lib/systemd/systemd-vconsole-setup
1096 %dir /lib/systemd/system-generators
1097 %attr(755,root,root) /lib/systemd/systemd
1098 %attr(755,root,root) /lib/systemd/system-generators/systemd-*-generator
1099 /lib/udev/rules.d/70-uaccess.rules
1100 /lib/udev/rules.d/71-seat.rules
1101 /lib/udev/rules.d/73-seat-late.rules
1102 /lib/udev/rules.d/99-systemd.rules
1103 %dir %{_libexecdir}/systemd
1104 %dir %{_libexecdir}/systemd/catalog
1105 %{_libexecdir}/systemd/catalog/systemd.catalog
1106 %{_libexecdir}/systemd/user
1107 %dir %{_libexecdir}/systemd/user-generators
1108 %{_libexecdir}/tmpfiles.d/legacy.conf
1109 %{_libexecdir}/tmpfiles.d/systemd.conf
1110 %{_libexecdir}/tmpfiles.d/tmp.conf
1111 %{_libexecdir}/tmpfiles.d/x11.conf
1112 %{_datadir}/dbus-1/interfaces/org.freedesktop.hostname1.xml
1113 %{_datadir}/dbus-1/interfaces/org.freedesktop.locale1.xml
1114 %{_datadir}/dbus-1/interfaces/org.freedesktop.systemd1.*.xml
1115 %{_datadir}/dbus-1/interfaces/org.freedesktop.timedate1.xml
1116 %{_datadir}/dbus-1/services/org.freedesktop.systemd1.service
1117 %{_datadir}/dbus-1/system-services/org.freedesktop.hostname1.service
1118 %{_datadir}/dbus-1/system-services/org.freedesktop.locale1.service
1119 %{_datadir}/dbus-1/system-services/org.freedesktop.login1.service
1120 %{_datadir}/dbus-1/system-services/org.freedesktop.systemd1.service
1121 %{_datadir}/dbus-1/system-services/org.freedesktop.timedate1.service
1122 %{_datadir}/polkit-1/actions/org.freedesktop.hostname1.policy
1123 %{_datadir}/polkit-1/actions/org.freedesktop.locale1.policy
1124 %{_datadir}/polkit-1/actions/org.freedesktop.login1.policy
1125 %{_datadir}/polkit-1/actions/org.freedesktop.systemd1.policy
1126 %{_datadir}/polkit-1/actions/org.freedesktop.timedate1.policy
1127 %dir %{_datadir}/systemd
1128 %{?with_microhttpd:%{_datadir}/systemd/gatewayd}
1129 %{_datadir}/systemd/kbd-model-map
1130 %{_mandir}/man1/hostnamectl.1*
1131 %{_mandir}/man1/journalctl.1*
1132 %{_mandir}/man1/localectl.1*
1133 %{_mandir}/man1/loginctl.1*
1134 %{_mandir}/man1/systemd.1*
1135 %{_mandir}/man1/systemd-ask-password.1*
1136 %{_mandir}/man1/systemd-bootchart.1*
1137 %{_mandir}/man1/systemd-cat.1*
1138 %{_mandir}/man1/systemd-cgls.1*
1139 %{_mandir}/man1/systemd-cgtop.1*
1140 %{_mandir}/man1/systemd-coredumpctl.1*
1141 %{_mandir}/man1/systemd-delta.1*
1142 %{_mandir}/man1/systemd-detect-virt.1*
1143 %{_mandir}/man1/systemd-inhibit.1*
1144 %{_mandir}/man1/systemd-machine-id-setup.1*
1145 %{_mandir}/man1/systemd-notify.1*
1146 %{_mandir}/man1/systemd-nspawn.1*
1147 %{_mandir}/man1/systemd-tty-ask-password-agent.1*
1148 %{_mandir}/man1/timedatectl.1*
1149 %{_mandir}/man5/binfmt.d.5*
1150 %{_mandir}/man5/bootchart.conf.5*
1151 # cfl with rc-scripts
1152 #%{_mandir}/man5/crypttab.5*
1153 %{_mandir}/man5/hostname.5*
1154 %{_mandir}/man5/journald.conf.5*
1155 %{_mandir}/man5/locale.conf.5*
1156 %{_mandir}/man5/localtime.5*
1157 %{_mandir}/man5/logind.conf.5*
1158 %{_mandir}/man5/machine-id.5*
1159 %{_mandir}/man5/machine-info.5*
1160 %{_mandir}/man5/modules-load.d.5*
1161 %{_mandir}/man5/os-release.5*
1162 %{_mandir}/man5/sysctl.d.5*
1163 %{_mandir}/man5/systemd.*.5*
1164 %{_mandir}/man5/systemd-system.conf.5*
1165 %{_mandir}/man5/systemd-user.conf.5*
1166 %{_mandir}/man5/vconsole.conf.5*
1167 %{_mandir}/man7/bootup.7*
1168 %{_mandir}/man7/daemon.7*
1169 %{_mandir}/man7/kernel-command-line.7*
1170 %{_mandir}/man7/systemd.directives.7*
1171 %{_mandir}/man7/systemd.index.7*
1172 %{_mandir}/man7/systemd.journal-fields.7*
1173 %{_mandir}/man7/systemd.special.7*
1174 %{_mandir}/man7/systemd.time.7*
1175 %{_mandir}/man8/kernel-install.8*
1176 %{_mandir}/man8/nss-myhostname.8*
1177 %{_mandir}/man8/systemd-activate.8*
1178 %{_mandir}/man8/systemd-binfmt.8*
1179 %{?with_cryptsetup:%{_mandir}/man8/systemd-cryptsetup-generator.8*}
1180 %{_mandir}/man8/systemd-fsck.8*
1181 %{_mandir}/man8/systemd-fstab-generator.8*
1182 %{_mandir}/man8/systemd-getty-generator.8*
1183 %{_mandir}/man8/systemd-hostnamed.8*
1184 %{_mandir}/man8/systemd-initctl.8*
1185 %{?with_microhttpd:%{_mandir}/man8/systemd-journal-gatewayd.8*}
1186 %{_mandir}/man8/systemd-journald.8*
1187 %{_mandir}/man8/systemd-localed.8*
1188 %{_mandir}/man8/systemd-logind.8*
1189 %{_mandir}/man8/systemd-modules-load.8*
1190 %{_mandir}/man8/systemd-quotacheck.8*
1191 %{_mandir}/man8/systemd-random-seed.8*
1192 %{_mandir}/man8/systemd-readahead.8*
1193 %{_mandir}/man8/systemd-remount-fs.8*
1194 %{_mandir}/man8/systemd-shutdown.8*
1195 %{_mandir}/man8/systemd-shutdownd.8*
1196 %{_mandir}/man8/systemd-sleep.8*
1197 %{_mandir}/man8/systemd-sysctl.8*
1198 %{_mandir}/man8/systemd-system-update-generator.8*
1199 %{_mandir}/man8/systemd-timedated.8*
1200 %{_mandir}/man8/systemd-udevd.8*
1201 %{_mandir}/man8/systemd-update-utmp.8*
1202 %{_mandir}/man8/systemd-user-sessions.8*
1203 %{_mandir}/man8/systemd-vconsole-setup.8*
1204 %dir /var/lib/%{name}
1205 %dir /var/lib/%{name}/coredump
1206 %attr(640,root,root) %ghost /var/log/btmp
1207 %attr(664,root,utmp) %ghost /var/log/wtmp
1208 %dir /var/log/journal
1211 %attr(755,root,root) /%{_lib}/security/pam_systemd.so
1212 %{_mandir}/man8/pam_systemd.8*
1216 %defattr(644,root,root,755)
1217 %attr(755,root,root) /sbin/halt
1218 %attr(755,root,root) /sbin/init
1219 %attr(755,root,root) /sbin/poweroff
1220 %attr(755,root,root) /sbin/reboot
1221 %attr(755,root,root) /sbin/runlevel
1222 %attr(755,root,root) /sbin/shutdown
1223 %attr(755,root,root) /sbin/telinit
1224 %{_mandir}/man1/init.1
1225 %{_mandir}/man8/halt.8*
1226 %{_mandir}/man8/poweroff.8
1227 %{_mandir}/man8/reboot.8
1228 %{_mandir}/man8/runlevel.8*
1229 %{_mandir}/man8/shutdown.8*
1230 %{_mandir}/man8/telinit.8*
1233 %defattr(644,root,root,755)
1234 %dir %{_sysconfdir}/binfmt.d
1235 %dir %{_sysconfdir}/modules-load.d
1236 %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/modules-load.d/modules.conf
1237 %dir %{_sysconfdir}/sysctl.d
1238 %dir %{_sysconfdir}/systemd
1239 %dir %{_sysconfdir}/systemd/system
1240 %dir %{_sysconfdir}/systemd/system-preset
1241 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/systemd/system-preset/default.preset
1242 %dir %{_sysconfdir}/tmpfiles.d
1243 %dir %{_libexecdir}/binfmt.d
1244 %dir %{_libexecdir}/modules-load.d
1245 %dir %{_libexecdir}/sysctl.d
1246 %dir /lib/systemd/system-sleep
1247 %dir /lib/systemd/system-shutdown
1248 %{_libexecdir}/sysctl.d/coredump.conf
1249 %attr(755,root,root) /bin/systemctl
1250 %attr(755,root,root) /bin/systemd-tmpfiles
1251 %attr(755,root,root) /bin/systemd_booted
1252 %{_mandir}/man1/systemctl.1*
1253 %{_mandir}/man5/tmpfiles.d.5*
1254 %{_mandir}/man8/systemd-tmpfiles.8*
1255 %{_npkgconfigdir}/systemd.pc
1257 %{systemdunitdir}/*.automount
1258 %{systemdunitdir}/*.mount
1259 %{systemdunitdir}/*.path
1260 %{systemdunitdir}/*.service
1261 %exclude %{systemdunitdir}/rc-inetd.service
1262 %{systemdunitdir}/*.socket
1263 %{systemdunitdir}/*.target
1264 %{systemdunitdir}/*.timer
1265 %dir %{systemdunitdir}/basic.target.wants
1266 %dir %{systemdunitdir}/dbus.target.wants
1267 %dir %{systemdunitdir}/final.target.wants
1268 %dir %{systemdunitdir}/graphical.target.wants
1269 %dir %{systemdunitdir}/halt.target.wants
1270 %dir %{systemdunitdir}/kexec.target.wants
1271 %dir %{systemdunitdir}/local-fs.target.wants
1272 %dir %{systemdunitdir}/multi-user.target.wants
1273 %dir %{systemdunitdir}/poweroff.target.wants
1274 %dir %{systemdunitdir}/reboot.target.wants
1275 %dir %{systemdunitdir}/runlevel[12345].target.wants
1276 %dir %{systemdunitdir}/shutdown.target.wants
1277 %dir %{systemdunitdir}/sockets.target.wants
1278 %dir %{systemdunitdir}/sysinit.target.wants
1279 %dir %{systemdunitdir}/syslog.target.wants
1280 %{systemdunitdir}/basic.target.wants/*
1281 %{systemdunitdir}/final.target.wants/*
1282 %{systemdunitdir}/graphical.target.wants/*
1283 %{systemdunitdir}/local-fs.target.wants/*
1284 %{systemdunitdir}/multi-user.target.wants/getty.target
1285 %{systemdunitdir}/multi-user.target.wants/rc-local.service
1286 %{systemdunitdir}/multi-user.target.wants/systemd-ask-password-wall.path
1287 %{systemdunitdir}/multi-user.target.wants/systemd-logind.service
1288 %{systemdunitdir}/multi-user.target.wants/systemd-user-sessions.service
1289 %{systemdunitdir}/runlevel[12345].target.wants/*
1290 %{systemdunitdir}/shutdown.target.wants/*
1291 %{systemdunitdir}/sockets.target.wants/*
1292 %{?with_cryptsetup:%{systemdunitdir}/sysinit.target.wants/cryptsetup.target}
1293 %{systemdunitdir}/sysinit.target.wants/dev-hugepages.mount
1294 %{systemdunitdir}/sysinit.target.wants/dev-mqueue.mount
1295 %{systemdunitdir}/sysinit.target.wants/proc-sys-fs-binfmt_misc.automount
1296 %{systemdunitdir}/sysinit.target.wants/sys-*.mount
1297 %{systemdunitdir}/sysinit.target.wants/systemd-*
1298 %{_mandir}/man8/systemd-ask-password-console.path.8*
1299 %{_mandir}/man8/systemd-ask-password-console.service.8*
1300 %{_mandir}/man8/systemd-ask-password-wall.path.8*
1301 %{_mandir}/man8/systemd-ask-password-wall.service.8*
1302 %{_mandir}/man8/systemd-binfmt.service.8*
1303 %{?with_cryptsetup:%{_mandir}/man8/systemd-cryptsetup.8*}
1304 %{?with_cryptsetup:%{_mandir}/man8/systemd-cryptsetup@.service.8*}
1305 %{_mandir}/man8/systemd-fsck-root.service.8*
1306 %{_mandir}/man8/systemd-fsck@.service.8*
1307 %{_mandir}/man8/systemd-halt.service.8*
1308 %{_mandir}/man8/systemd-hibernate.service.8*
1309 %{_mandir}/man8/systemd-hostnamed.service.8*
1310 %{_mandir}/man8/systemd-hybrid-sleep.service.8*
1311 %{_mandir}/man8/systemd-initctl.service.8*
1312 %{_mandir}/man8/systemd-initctl.socket.8*
1313 %{?with_microhttpd:%{_mandir}/man8/systemd-journal-gatewayd.service.8*}
1314 %{?with_microhttpd:%{_mandir}/man8/systemd-journal-gatewayd.socket.8*}
1315 %{_mandir}/man8/systemd-journald.service.8*
1316 %{_mandir}/man8/systemd-journald.socket.8*
1317 %{_mandir}/man8/systemd-kexec.service.8*
1318 %{_mandir}/man8/systemd-localed.service.8*
1319 %{_mandir}/man8/systemd-logind.service.8*
1320 %{_mandir}/man8/systemd-modules-load.service.8*
1321 %{_mandir}/man8/systemd-poweroff.service.8*
1322 %{_mandir}/man8/systemd-quotacheck.service.8*
1323 %{_mandir}/man8/systemd-random-seed-load.service.8*
1324 %{_mandir}/man8/systemd-random-seed-save.service.8*
1325 %{_mandir}/man8/systemd-readahead-collect.service.8*
1326 %{_mandir}/man8/systemd-readahead-done.service.8*
1327 %{_mandir}/man8/systemd-readahead-done.timer.8*
1328 %{_mandir}/man8/systemd-readahead-replay.service.8*
1329 %{_mandir}/man8/systemd-reboot.service.8*
1330 %{_mandir}/man8/systemd-remount-fs.service.8*
1331 %{_mandir}/man8/systemd-shutdownd.service.8*
1332 %{_mandir}/man8/systemd-shutdownd.socket.8*
1333 %{_mandir}/man8/systemd-suspend.service.8*
1334 %{_mandir}/man8/systemd-sysctl.service.8*
1335 %{_mandir}/man8/systemd-timedated.service.8*
1336 %{_mandir}/man8/systemd-tmpfiles-clean.service.8*
1337 %{_mandir}/man8/systemd-tmpfiles-clean.timer.8*
1338 %{_mandir}/man8/systemd-tmpfiles-setup.service.8*
1339 %{_mandir}/man8/systemd-udevd.service.8*
1340 %{_mandir}/man8/systemd-udevd-control.socket.8*
1341 %{_mandir}/man8/systemd-udevd-kernel.socket.8*
1342 %{_mandir}/man8/systemd-update-utmp-runlevel.service.8*
1343 %{_mandir}/man8/systemd-update-utmp-shutdown.service.8*
1344 %{_mandir}/man8/systemd-user-sessions.service.8*
1345 %{_mandir}/man8/systemd-vconsole-setup.service.8*
1348 %defattr(644,root,root,755)
1349 %attr(755,root,root) /lib/systemd/system-generators/pld-rc-inetd-generator
1350 %{systemdunitdir}/rc-inetd.service
1353 %defattr(644,root,root,755)
1354 %attr(755,root,root) %{_bindir}/systemd-analyze
1355 %{_mandir}/man1/systemd-analyze.1*
1358 %defattr(644,root,root,755)
1359 %attr(755,root,root) /%{_lib}/libnss_myhostname.so.2
1360 %attr(755,root,root) /%{_lib}/libsystemd-daemon.so.*.*.*
1361 %attr(755,root,root) %ghost /%{_lib}/libsystemd-daemon.so.0
1362 %attr(755,root,root) /%{_lib}/libsystemd-id128.so.*.*.*
1363 %attr(755,root,root) %ghost /%{_lib}/libsystemd-id128.so.0
1364 %attr(755,root,root) /%{_lib}/libsystemd-journal.so.*.*.*
1365 %attr(755,root,root) %ghost /%{_lib}/libsystemd-journal.so.0
1366 %attr(755,root,root) /%{_lib}/libsystemd-login.so.*.*.*
1367 %attr(755,root,root) %ghost /%{_lib}/libsystemd-login.so.0
1370 %defattr(644,root,root,755)
1371 %attr(755,root,root) %{_libdir}/libsystemd-daemon.so
1372 %attr(755,root,root) %{_libdir}/libsystemd-id128.so
1373 %attr(755,root,root) %{_libdir}/libsystemd-journal.so
1374 %attr(755,root,root) %{_libdir}/libsystemd-login.so
1375 %{_includedir}/%{name}
1376 %{_pkgconfigdir}/libsystemd-daemon.pc
1377 %{_pkgconfigdir}/libsystemd-id128.pc
1378 %{_pkgconfigdir}/libsystemd-journal.pc
1379 %{_pkgconfigdir}/libsystemd-login.pc
1380 %{_mandir}/man3/SD_*.3*
1381 %{_mandir}/man3/sd*.3*
1383 %files -n bash-completion-systemd
1384 %defattr(644,root,root,755)
1385 %{_datadir}/bash-completion/completions/hostnamectl
1386 %{_datadir}/bash-completion/completions/journalctl
1387 %{_datadir}/bash-completion/completions/localectl
1388 %{_datadir}/bash-completion/completions/loginctl
1389 %{_datadir}/bash-completion/completions/systemctl
1390 %{_datadir}/bash-completion/completions/systemd-coredumpctl
1391 %{_datadir}/bash-completion/completions/timedatectl
1394 %defattr(644,root,root,755)
1395 %dev(c,1,3) %attr(666,root,root) /dev/null
1396 %dev(c,5,1) %attr(660,root,console) /dev/console
1397 %dev(c,1,5) %attr(666,root,root) /dev/zero
1400 %defattr(644,root,root,755)
1404 %attr(755,root,root) /lib/udev/collect
1406 %attr(755,root,root) /lib/udev/keyboard-force-release.sh
1408 %attr(755,root,root) /lib/udev/net_helper
1410 %attr(755,root,root) /lib/udev/ata_id
1411 %attr(755,root,root) /lib/udev/cdrom_id
1412 %attr(755,root,root) /lib/udev/mtd_probe
1413 %attr(755,root,root) /lib/udev/scsi_id
1414 %attr(755,root,root) /lib/udev/v4l_id
1416 %attr(755,root,root) /lib/udev/udevd
1418 %attr(755,root,root) /lib/udev/keymap
1419 %dir /lib/udev/keymaps
1422 %attr(755,root,root) /lib/udev/accelerometer
1423 %attr(755,root,root) /lib/udev/findkeyboards
1425 %dir /lib/udev/hwdb.d
1426 /lib/udev/hwdb.d/20-OUI.hwdb
1427 /lib/udev/hwdb.d/20-acpi-vendor.hwdb
1428 /lib/udev/hwdb.d/20-bluetooth-vendor-product.hwdb
1429 /lib/udev/hwdb.d/20-pci-classes.hwdb
1430 /lib/udev/hwdb.d/20-pci-vendor-product.hwdb
1431 /lib/udev/hwdb.d/20-usb-classes.hwdb
1432 /lib/udev/hwdb.d/20-usb-vendor-product.hwdb
1434 %attr(755,root,root) %{_sbindir}/start_udev
1435 %attr(755,root,root) %{_sbindir}/udevd
1436 %attr(755,root,root) %{_sbindir}/udevadm
1437 %attr(755,root,root) %{_bindir}/udevadm
1439 %dir %{_sysconfdir}/udev
1440 %dir %{_sysconfdir}/udev/rules.d
1441 %dir %{_sysconfdir}/udev/hwdb.d
1443 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/modprobe.d/fbdev-blacklist.conf
1444 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/modprobe.d/udev_blacklist.conf
1445 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/udev/links.conf
1446 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/udev/rules.d/40-alsa-restore.rules
1447 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/udev/rules.d/70-udev-pld.rules
1448 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/udev/rules.d/80-net-name-slot.rules
1450 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/udev/udev.conf
1452 # rules below are NOT supposed to be changed by users
1453 /lib/udev/rules.d/42-usb-hid-pm.rules
1454 /lib/udev/rules.d/50-udev-default.rules
1455 /lib/udev/rules.d/60-cdrom_id.rules
1456 /lib/udev/rules.d/60-persistent-alsa.rules
1457 /lib/udev/rules.d/60-persistent-input.rules
1458 /lib/udev/rules.d/60-persistent-serial.rules
1459 /lib/udev/rules.d/60-persistent-storage-tape.rules
1460 /lib/udev/rules.d/60-persistent-storage.rules
1461 /lib/udev/rules.d/60-persistent-v4l.rules
1462 /lib/udev/rules.d/61-accelerometer.rules
1463 /lib/udev/rules.d/64-btrfs.rules
1464 /lib/udev/rules.d/70-power-switch.rules
1465 /lib/udev/rules.d/75-net-description.rules
1466 /lib/udev/rules.d/75-probe_mtd.rules
1467 /lib/udev/rules.d/75-tty-description.rules
1468 /lib/udev/rules.d/78-sound-card.rules
1469 /lib/udev/rules.d/80-drivers.rules
1470 /lib/udev/rules.d/80-net-name-slot.rules
1471 /lib/udev/rules.d/95-keyboard-force-release.rules
1472 /lib/udev/rules.d/95-keymap.rules
1473 /lib/udev/rules.d/95-udev-late.rules
1475 %{_mandir}/man7/udev.7*
1476 %{_mandir}/man8/udevadm.8*
1477 %{_mandir}/man8/udevd.8*
1480 %defattr(644,root,root,755)
1481 %attr(755,root,root) /%{_lib}/libudev.so.*.*.*
1482 %attr(755,root,root) %ghost /%{_lib}/libudev.so.1
1484 %files -n udev-devel
1485 %defattr(644,root,root,755)
1486 %attr(755,root,root) %{_libdir}/libudev.so
1487 %{_includedir}/libudev.h
1488 %{_pkgconfigdir}/libudev.pc
1489 %{_npkgconfigdir}/udev.pc
1491 %files -n udev-static
1492 %defattr(644,root,root,755)
1493 %attr(755,root,root) %{_libdir}/libudev.a
1495 %files -n udev-apidocs
1496 %defattr(644,root,root,755)
1497 %{_gtkdocdir}/libudev
1500 %defattr(644,root,root,755)
1501 %attr(755,root,root) /%{_lib}/libgudev-1.0.so.*.*.*
1502 %attr(755,root,root) %ghost /%{_lib}/libgudev-1.0.so.0
1503 %{_libdir}/girepository-1.0/GUdev-1.0.typelib
1505 %files -n udev-glib-devel
1506 %defattr(644,root,root,755)
1507 %attr(755,root,root) %{_libdir}/libgudev-1.0.so
1508 %{_includedir}/gudev-1.0
1509 %{_pkgconfigdir}/gudev-1.0.pc
1510 %{_datadir}/gir-1.0/GUdev-1.0.gir
1512 %files -n udev-glib-static
1513 %defattr(644,root,root,755)
1514 %attr(755,root,root) %{_libdir}/libgudev-1.0.a
1516 %files -n udev-glib-apidocs
1517 %defattr(644,root,root,755)
1521 %files -n udev-initrd
1522 %defattr(644,root,root,755)
1523 %dir %{_libdir}/initrd/udev
1524 %attr(755,root,root) %{_libdir}/initrd/systemd-udevd
1525 %attr(755,root,root) %{_libdir}/initrd/udevd
1526 %attr(755,root,root) %{_libdir}/initrd/udevadm
1527 %attr(755,root,root) %{_libdir}/initrd/udevstart
1528 %attr(755,root,root) %{_libdir}/initrd/udev/*_id
1529 %attr(755,root,root) %{_libdir}/initrd/udev/collect
1530 %attr(755,root,root) %{_libdir}/initrd/udev/mtd_probe
1533 %files -n bash-completion-udev
1534 %defattr(644,root,root,755)
1535 %{_datadir}/bash-completion/completions/udevadm
1537 %files -n python-systemd
1538 %defattr(644,root,root,755)
1539 %dir %{py_sitedir}/systemd
1540 %{py_sitedir}/systemd/*.py*
1541 %attr(755,root,root) %{py_sitedir}/systemd/*.so