]> git.pld-linux.org Git - packages/systemd.git/blame_incremental - systemd.spec
Merge branch 'master', commit 'refs/notes/commits' of git://git.pld-linux.org/package...
[packages/systemd.git] / systemd.spec
... / ...
CommitLineData
1# TODO:
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
6#
7# Conditional build:
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
13
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
19
20%ifarch sparc sparc64
21%define with_glibc 1
22%endif
23
24# if one of the *libc is enabled disable default uClibc
25%if %{with dietlibc} && %{with uClibc}
26%undefine with_uClibc
27%endif
28
29%if %{with glibc} && %{with uClibc}
30%undefine with_uClibc
31%endif
32
33%if %{with klibc} && %{with uClibc}
34%undefine with_uClibc
35%endif
36
37Summary: A System and Service Manager
38Summary(pl.UTF-8): systemd - zarządca systemu i usług dla Linuksa
39Name: systemd
40# Verify ChangeLog and NEWS when updating (since there are incompatible/breaking changes very often)
41Version: 196
42Release: 1
43Epoch: 1
44License: GPL v2+
45Group: Base
46Source0: http://www.freedesktop.org/software/systemd/%{name}-%{version}.tar.xz
47# Source0-md5: 05ebd7f108e420e2b4e4810ea4b3c810
48Source1: %{name}-sysv-convert
49Source2: %{name}_booted.c
50Source3: network.service
51Source4: var-lock.mount
52Source5: var-run.mount
53Source10: pld-storage-init-late.service
54Source11: pld-storage-init.service
55Source12: pld-wait-storage.service
56Source13: pld-storage-init.sh
57Source14: pld-clean-tmp.service
58Source15: pld-clean-tmp.sh
59Source16: pld-rc-inetd-generator.sh
60Source17: rc-inetd.service
61Source18: default.preset
62# rules
63Source101: udev-alsa.rules
64Source102: udev.rules
65Source103: udev-links.conf
66# scripts / helpers
67Source110: udev-net.helper
68Source111: start_udev
69# misc
70Source120: udev.blacklist
71Source121: fbdev.blacklist
72Patch0: target-pld.patch
73Patch1: config-pld.patch
74Patch2: shut-sysv-up.patch
75Patch3: pld-sysv-network.patch
76Patch4: tmpfiles-not-fatal.patch
77Patch6: udev-so.patch
78Patch7: udev-uClibc.patch
79Patch8: udev-ploop-rules.patch
80Patch9: udevadm-in-sbin.patch
81Patch10: net-rename-revert.patch
82# hack set to allow static udev build
83Patch100: static-udev.patch
84URL: http://www.freedesktop.org/wiki/Software/systemd
85BuildRequires: acl-devel
86%{?with_audit:BuildRequires: audit-libs-devel}
87BuildRequires: autoconf >= 2.64
88BuildRequires: automake >= 1:1.11
89BuildRequires: binutils >= 3:2.22.52.0.1-2
90%{?with_cryptsetup:BuildRequires: cryptsetup-devel >= 1.4.3}
91BuildRequires: dbus-devel >= 1.3.2
92BuildRequires: docbook-style-xsl
93BuildRequires: glib2-devel >= 1:2.22.0
94BuildRequires: glibc-misc
95BuildRequires: gobject-introspection-devel >= 1.31.1
96BuildRequires: gperf
97BuildRequires: gtk-doc >= 1.18
98BuildRequires: intltool >= 0.40.0
99BuildRequires: kmod-devel >= 5
100BuildRequires: libblkid-devel >= 2.20
101BuildRequires: libcap-devel
102%{?with_selinux:BuildRequires: libselinux-devel >= 2.1.0}
103BuildRequires: libtool >= 2:2.2
104%{?with_tcpd:BuildRequires: libwrap-devel}
105BuildRequires: libxslt-progs
106BuildRequires: m4
107%{?with_pam:BuildRequires: pam-devel}
108BuildRequires: pciutils
109BuildRequires: pkgconfig >= 0.9.0
110BuildRequires: python-devel
111BuildRequires: python-modules
112BuildRequires: rpm-pythonprov
113BuildRequires: rpmbuild(macros) >= 1.628
114BuildRequires: sed >= 4.0
115BuildRequires: usbutils >= 0.82
116BuildRequires: xz-devel
117BuildRequires: zlib-devel
118%if %{with initrd}
119BuildRequires: acl-static
120BuildRequires: attr-static
121%{?with_dietlibc:BuildRequires: dietlibc-static}
122BuildRequires: glib2-static >= 1:2.22.0
123%{?with_glibc:BuildRequires: glibc-static}
124%{?with_klibc:BuildRequires: klibc-static}
125BuildRequires: kmod-libs-static >= 5
126BuildRequires: libblkid-static >= 2.20
127%{?with_glibc:BuildRequires: libselinux-static}
128%{?with_glibc:BuildRequires: libsepol-static}
129%{?with_klibc:BuildRequires: linux-libc-headers}
130BuildRequires: pcre-static
131%{?with_uClibc:BuildRequires: uClibc-static >= 4:0.9.30.3}
132BuildRequires: xz-static
133BuildRequires: zlib-static
134%endif
135Requires: %{name}-libs = %{epoch}:%{version}-%{release}
136Requires: %{name}-units = %{epoch}:%{version}-%{release}
137Requires: /etc/os-release
138Requires: SysVinit-tools
139Requires: agetty
140Requires: dbus >= 1.4.16-6
141Requires: filesystem >= 4.0-3
142Requires: libutempter
143Requires: rc-scripts >= 0.4.5.3-7
144Requires: setup >= 2.8.0-2
145Requires: udev-core = %{epoch}:%{version}-%{release}
146Requires: udev-libs = %{epoch}:%{version}-%{release}
147Requires: virtual(module-tools)
148Suggests: ConsoleKit
149Suggests: fsck >= 2.20
150Suggests: kmod >= 5
151Suggests: nss_myhostname
152Suggests: service(klogd)
153Suggests: service(syslog)
154Provides: udev-acl = %{epoch}:%{version}-%{release}
155Obsoletes: systemd-no-compat-tmpfiles
156Obsoletes: udev-systemd
157# systemd takes care of that and causes problems
158Conflicts: binfmt-detector
159# sytemd wants pam with pam_systemd.so in system-auth...
160Conflicts: pam < 1:1.1.5-5
161# ...and sudo hates it
162Conflicts: sudo < 1:1.7.8p2-4
163# for prefdm script
164Conflicts: xinitrc-ng < 1.0
165# systemd scripts use options not present in older versions
166Conflicts: kpartx < 0.4.9-7
167Conflicts: multipath-tools < 0.4.9-7
168# no tmpfs on /media, use /run/media/$USER for mounting
169Conflicts: udisks2 < 1.92.0
170# packages that have dirs under /var/run and/or /var/lock must provide tmpfiles configs
171Conflicts: ConsoleKit-dirs < 0.4.5-7
172Conflicts: NetworkManager < 2:0.9.2.0-3
173Conflicts: Zope < 2.11.8-2
174Conflicts: amavisd-new < 1:2.7.0-1
175Conflicts: apache-base < 2.2.21-4
176Conflicts: apache-mod_bw < 0.92-3
177Conflicts: apache-mod_fastcgi < 2.4.6-6
178Conflicts: apache1-base < 1.3.42-5
179Conflicts: apache1-mod_fastcgi < 2.4.6-2
180Conflicts: asterisk < 10.0.1-2
181Conflicts: autossh-init < 1.4b-3
182Conflicts: balance < 3.54-2
183Conflicts: bind < 7:9.8.1.P1-4
184Conflicts: bopm < 3.1.3-4
185Conflicts: callweaver < 1.2.1-9
186Conflicts: cassandra-bin < 0.8.9-2
187Conflicts: clamav < 0.97.3-3
188Conflicts: cups < 1:1.5.0-10
189Conflicts: dovecot < 1:2.0.16-3
190Conflicts: dspam < 3.9.0-6
191Conflicts: fail2ban < 0.8.4-4
192Conflicts: gammu-smsd < 1:1.31.0-3
193# Break gdm2.20 installs
194#Conflicts: gdm < 2:3.2.1.1-9
195Conflicts: greylistd < 0.8.8-2
196Conflicts: inn < 2.4.6-7
197Conflicts: ipsec-tools < 0.8.0-3
198Conflicts: jabber-common < 0-9
199Conflicts: laptop-mode-tools < 1.58-2
200Conflicts: libgpod < 0.8.0-6
201Conflicts: libvirt-utils < 0.9.9-4
202Conflicts: lighttpd < 1.4.30-5
203Conflicts: lirc < 0.9.0-20
204Conflicts: mailman < 5:2.1.14-4
205Conflicts: memcached < 1.4.11-2
206Conflicts: mpd < 0.16.5-4
207Conflicts: mrtg < 2.17.0-3
208Conflicts: munin-common < 1.4.5-5
209Conflicts: nagios-nrpe < 2.13-2
210Conflicts: ndisc6-rdnssd < 1.0.1-3
211Conflicts: nscd < 6:2.14.1-5
212Conflicts: nss_ldapd-nslcd < 0.8.4-2
213Conflicts: openct < 0.6.20-3
214Conflicts: openl2tp < 1.8-3
215Conflicts: openldap-overlay-nssov < 2.4.28-4
216Conflicts: openldap-servers < 2.4.28-4
217Conflicts: openvpn < 2.2.2-2
218Conflicts: pam-pam_mount < 2.12-3
219Conflicts: pam-pam_ssh < 1.97-2
220Conflicts: pcsc-lite < 1.8.1-2
221Conflicts: php-dirs < 1.2-3
222Conflicts: policyd < 2.0.10-3
223Conflicts: pound < 2.6-2
224Conflicts: pptp < 1.7.2-3
225Conflicts: proftpd-common < 2:1.3.4a-2
226Conflicts: pulseaudio-server < 1.1-2
227Conflicts: quagga < 0.99.20-3
228Conflicts: radvd < 1.8.5-2
229Conflicts: red5 < 0.9.0-2
230Conflicts: redis-server < 2.4.2-4
231Conflicts: smokeping < 2.4.2-10
232Conflicts: smtp-gated < 1.4.17-2
233Conflicts: socat < 1.7.2.0-2
234Conflicts: speech-dispatcher < 0.7.1-2
235Conflicts: sphinx < 2.0.3-4
236Conflicts: splashutils < 1.5.4.3-3
237Conflicts: stunnel < 4.50-2
238Conflicts: tenshi < 0.12-2
239Conflicts: tor < 0.2.2.35-2
240Conflicts: ucarp < 1.5.2-3
241Conflicts: udisks < 1.0.4-3
242Conflicts: util-vserver < 0.30.216-1.pre3002.3
243Conflicts: vpnc < 0.5.3-2
244Conflicts: web2ldap < 1.1.0rc1-2
245Conflicts: wesnoth-server < 1:1.10-2
246Conflicts: wpa_supplicant < 0.7.3-10
247Conflicts: xl2tpd < 1.3.0-2
248# end of tmpfiles conflicts
249BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
250
251%define _sbindir /sbin
252%define _libexecdir %{_prefix}/lib
253
254%description
255systemd is a system and service manager for Linux, compatible with
256SysV and LSB init scripts. systemd provides aggressive parallelization
257capabilities, uses socket and D-Bus activation for starting services,
258offers on-demand starting of daemons, keeps track of processes using
259Linux cgroups, supports snapshotting and restoring of the system
260state, maintains mount and automount points and implements an
261elaborate transactional dependency-based service control logic. It can
262work as a drop-in replacement for sysvinit.
263
264%description -l pl.UTF-8
265systemd jest zarządcą systemu i usług dla Linuksa, kompatybilny ze
266skryptami SysV i LSB. systemd udostępnia rozbudowane zdolności
267paralelizacji, do uruchamiania usług używa socketów oraz D-Busa,
268oferuje uruchamianie usług na życzenie, monitoruje procesy używając
269linuksowych cgroups, wspomaga zapisywanie (snapshot) i odczytywanie
270(restore) stanu systemu, zarządza (auto)mount pointami oraz
271implementuje starannie opracowaną transakcjonalną, bazującą na
272zależnościach logikę kontroli usług. Może pracować jako zastępca dla
273sysvinit.
274
275%package init
276Summary: systemd /sbin/init and LSB/SysV compatibility symlinks
277Summary(pl.UTF-8): /sbin/init z systemd i dowiązania dla kompatybilności z LSB/SysV
278Group: Base
279Requires: systemd
280Provides: readahead = 1:1.5.7-3
281Provides: virtual(init-daemon)
282Obsoletes: SysVinit
283Obsoletes: readahead < 1:1.5.7-3
284Obsoletes: virtual(init-daemon)
285Conflicts: upstart
286
287%description init
288Install this package when you are ready to final switch to systemd.
289
290%description init -l pl.UTF-8
291Ten pakiet należy zainstalować po przygotowaniu się do ostatecznego
292przejścia na systemd.
293
294%package units
295Summary: Configuration files, directories and installation tool for systemd
296Summary(pl.UTF-8): Pliki konfiguracyjne, katalogi i narzędzie instalacyjne dla systemd
297Group: Base
298Requires(post): coreutils
299Requires(post): /bin/awk
300
301%description units
302Basic configuration files, directories and installation tool for the
303systemd system and service manager.
304
305This is common config, use %{_sysconfdir}/systemd/system to override.
306
307%description units -l pl.UTF-8
308Podstawowe pliki konfiguracyjne, katalogi i narzędzie instalacyjne dla
309zarządcy systemu i usług systemd.
310
311Ten pakiet zawiera ogólną konfigurację, ustawienia można nadpisać
312poprzez katalog %{_sysconfdir}/systemd/system.
313
314%package inetd
315Summary: Native inet service support for systemd via socket activation
316Summary(pl.UTF-8): Natywna obsługa usług inet dla systemd
317Group: Base
318Requires: %{name} = %{epoch}:%{version}-%{release}
319Requires: rc-inetd
320Provides: inetdaemon
321Obsoletes: inetd
322Obsoletes: inetdaemon
323Obsoletes: rlinetd
324Obsoletes: xinetd
325
326%description inetd
327Native inet service support for systemd via socket activation.
328
329This package contains inet service generator that provides
330the functionality of rc-inetd service and replaces a separate
331inet daemon with systemd socket activation feature.
332
333%description inetd -l pl.UTF-8
334Natywna obsługa usług inet dla systemd.
335
336Ten pakiet zawiera generator usług inet udostępniający funkcjonalność
337serwisu rc-inetd i zastępujący osobny demon inet przez systemd i
338aktywację usług przez gniazda.
339
340%package analyze
341Summary: Tool for processing systemd profiling information
342Summary(pl.UTF-8): Narzędzie do przetwarzania informacji profilujących systemd
343Group: Base
344Requires: %{name} = %{epoch}:%{version}-%{release}
345Requires: python-dbus
346Requires: python-modules
347Suggests: python-pycairo
348Conflicts: systemd < 44-3
349
350%description analyze
351'systemd-analyze blame' lists which systemd unit needed how much time
352to finish initialization at boot. 'systemd-analyze plot' renders an
353SVG visualizing the parallel start of units at boot.
354
355%description analyze -l pl.UTF-8
356'systemd-analyze blame' wypisuje, ile czasu wymagały poszczególne
357jednostki systemd na zakończenie podczas rozruchu systemu.
358'systemd-analyze plot' tworzy wykres SVG wizualizujący równoległy
359start jednostek podczas rozruchu.
360
361%package libs
362Summary: Shared systemd libraries
363Summary(pl.UTF-8): Biblioteki współdzielone systemd
364Group: Libraries
365
366%description libs
367Shared systemd libraries.
368
369%description libs -l pl.UTF-8
370Biblioteki współdzielone systemd.
371
372%package devel
373Summary: Header files for systemd libraries
374Summary(pl.UTF-8): Pliki nagłówkowe bibliotek systemd
375Group: Development/Libraries
376Requires: %{name}-libs = %{epoch}:%{version}-%{release}
377
378%description devel
379Header files for systemd libraries.
380
381%description devel -l pl.UTF-8
382Pliki nagłówkowe bibliotek systemd.
383
384%package -n bash-completion-systemd
385Summary: bash-completion for systemd
386Summary(pl.UTF-8): Bashowe dopełnianie składni dla systemd
387Group: Applications/Shells
388Requires: %{name} = %{epoch}:%{version}
389Requires: bash-completion
390
391%description -n bash-completion-systemd
392bash-completion for systemd.
393
394%description -n bash-completion-systemd -l pl.UTF-8
395Bashowe dopełnianie składni dla systemd.
396
397%package -n udev
398Summary: Device manager for the Linux 2.6 kernel series
399Summary(pl.UTF-8): Zarządca urządzeń dla Linuksa 2.6
400Group: Base
401Requires: udev-core = %{epoch}:%{version}-%{release}
402Provides: dev = 3.5.0
403Obsoletes: dev
404Obsoletes: hotplug
405Obsoletes: hotplug-input
406Obsoletes: hotplug-net
407Obsoletes: hotplug-pci
408Obsoletes: udev-dev
409Obsoletes: udev-extras < 20090628
410Obsoletes: udev-tools
411
412%description -n udev
413udev is the device manager for the Linux 2.6 kernel series. Its
414primary function is managing device nodes in /dev. It is the successor
415of devfs and hotplug.
416
417%description -n udev -l pl.UTF-8
418udev jest zarządcą urządzeń dla Linuksa 2.6. Jego główną funkcją jest
419zarządzanie węzłami urządzeń w katalogu /dev. Jest następcą devfs i
420hotpluga.
421
422%package -n udev-core
423Summary: A userspace implementation of devfs - core part of udev
424Summary(pl.UTF-8): Implementacja devfs w przestrzeni użytkownika - główna część udev
425Group: Base
426Requires: udev-libs = %{epoch}:%{version}-%{release}
427Requires: coreutils
428Requires: filesystem >= 3.0-45
429Requires: setup >= 2.6.1-1
430Requires: uname(release) >= 2.6.32
431Conflicts: rc-scripts < 0.4.5.3-1
432Conflicts: systemd-units < 1:183
433Conflicts: udev < 1:118-1
434Obsoletes: udev-compat
435
436%description -n udev-core
437A userspace implementation of devfs - core part of udev.
438
439%description -n udev-core -l pl.UTF-8
440Implementacja devfs w przestrzeni użytkownika - główna część udev.
441
442%package -n udev-libs
443Summary: Shared library to access udev device information
444Summary(pl.UTF-8): Biblioteka współdzielona do dostępu do informacji o urządzeniach udev
445Group: Libraries
446
447%description -n udev-libs
448Shared libudev library to access udev device information.
449
450%description -n udev-libs -l pl.UTF-8
451Biblioteka współdzielona libudev służąca do dostępu do informacji o
452urządzeniach udev.
453
454%package -n udev-devel
455Summary: Header file for libudev library
456Summary(pl.UTF-8): Plik nagłówkowy biblioteki libudev
457Group: Development/Libraries
458Requires: udev-libs = %{epoch}:%{version}-%{release}
459
460%description -n udev-devel
461Header file for libudev library.
462
463%description -n udev-devel -l pl.UTF-8
464Plik nagłówkowy biblioteki libudev.
465
466%package -n udev-static
467Summary: Static libudev library
468Summary(pl.UTF-8): Biblioteka statyczna libudev
469Group: Development/Libraries
470Requires: udev-devel = %{epoch}:%{version}-%{release}
471
472%description -n udev-static
473Static libudev library.
474
475%description -n udev-static -l pl.UTF-8
476Biblioteka statyczna libudev.
477
478%package -n udev-apidocs
479Summary: libudev API documentation
480Summary(pl.UTF-8): Dokumentacja API libudev
481Group: Documentation
482Requires: gtk-doc-common
483
484%description -n udev-apidocs
485libudev API documentation.
486
487%description -n udev-apidocs -l pl.UTF-8
488Dokumentacja API libudev.
489
490%package -n udev-glib
491Summary: Shared libgudev library - GObject bindings for libudev
492Summary(pl.UTF-8): Biblioteka współdzielona libgudev - wiązania GObject do libudev
493Group: Libraries
494Requires: udev-libs = %{epoch}:%{version}-%{release}
495Requires: glib2 >= 1:2.22.0
496
497%description -n udev-glib
498Shared libgudev library - GObject bindings for libudev.
499
500%description -n udev-glib -l pl.UTF-8
501Biblioteka współdzielona libgudev - wiązania GObject do libudev.
502
503%package -n udev-glib-devel
504Summary: Header file for libgudev library
505Summary(pl.UTF-8): Plik nagłówkowy biblioteki libgudev
506Group: Development/Libraries
507Requires: udev-devel = %{epoch}:%{version}-%{release}
508Requires: udev-glib = %{epoch}:%{version}-%{release}
509Requires: glib2-devel >= 1:2.22.0
510
511%description -n udev-glib-devel
512Header file for libgudev library.
513
514%description -n udev-glib-devel -l pl.UTF-8
515Plik nagłówkowy biblioteki libgudev.
516
517%package -n udev-glib-static
518Summary: Static libgudev library
519Summary(pl.UTF-8): Biblioteka statyczna libgudev
520Group: Development/Libraries
521Requires: udev-glib-devel = %{epoch}:%{version}-%{release}
522
523%description -n udev-glib-static
524Static libgudev library.
525
526%description -n udev-glib-static -l pl.UTF-8
527Biblioteka statyczna libgudev.
528
529%package -n udev-glib-apidocs
530Summary: libgudev API documentation
531Summary(pl.UTF-8): Dokumentacja API libgudev
532Group: Documentation
533Requires: gtk-doc-common
534
535%description -n udev-glib-apidocs
536libgudev API documentation.
537
538%description -n udev-glib-apidocs -l pl.UTF-8
539Dokumentacja API libgudev.
540
541%package -n udev-initrd
542Summary: A userspace implementation of devfs - static binary for initrd
543Summary(pl.UTF-8): Implementacja devfs w przestrzeni użytkownika - statyczna binarka dla initrd
544Group: Base
545Requires: udev-core = %{epoch}:%{version}-%{release}
546Conflicts: geninitrd < 10000.10
547
548%description -n udev-initrd
549A userspace implementation of devfs - static binary for initrd.
550
551%description -n udev-initrd -l pl.UTF-8
552Implementacja devfs w przestrzeni użytkownika - statyczna binarka dla
553initrd.
554
555%package -n python-systemd
556Summary: Systemd Python bindings
557Summary(pl.UTF-8): Wiązania do Systemd dla Pythona
558Group: Development/Languages/Python
559%pyrequires_eq python
560Requires: %{name}-libs = %{epoch}:%{version}-%{release}
561
562%description -n python-systemd
563Systemd Python bindings.
564
565%description -n python-systemd -l pl.UTF-8
566Wiązania do Systemd dla Pythona.
567
568%prep
569%setup -q
570%patch0 -p1
571%patch1 -p1
572#patch2 -p1
573%patch3 -p1
574%patch4 -p1
575%patch6 -p1
576%if %{with uClibc}
577%patch7 -p1
578%endif
579%patch8 -p1
580%patch9 -p1
581%patch10 -p1
582cp -p %{SOURCE2} src/systemd_booted.c
583
584%build
585%{__gtkdocize}
586%{__libtoolize}
587%{__aclocal} -I m4
588%{__autoconf}
589%{__autoheader}
590%{__automake}
591%if %{with initrd}
592patch -p1 <%{PATCH100}
593%configure \
594%if "%{?configure_cache}" == "1"
595 --cache-file=%{?configure_cache_file}%{!?configure_cache_file:configure}-initrd.cache \
596%endif
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 \
602 --disable-shared \
603 --enable-static \
604 --with-distro=pld \
605 --with-rootprefix="" \
606 --with-rootlibdir=/%{_lib} \
607 --disable-gudev \
608 --disable-keymap \
609 --disable-gtk-doc \
610 --disable-introspection \
611 --disable-audit \
612 --disable-pam \
613 --disable-selinux \
614 --enable-split-usr
615
616%{__make} \
617 libudev-core.la \
618 systemd-udevd \
619 udevadm \
620 ata_id \
621 cdrom_id \
622 collect \
623 scsi_id \
624 v4l_id \
625 accelerometer \
626 mtd_probe \
627 LDFLAGS="-all-static" \
628 KMOD_LIBS="-lkmod -lz -llzma"
629
630mkdir udev-initrd
631cp -a systemd-udevd \
632 udevadm \
633 ata_id \
634 cdrom_id \
635 collect \
636 scsi_id \
637 v4l_id \
638 accelerometer \
639 mtd_probe \
640 udev-initrd/
641
642%{__make} clean
643patch -p1 -R <%{PATCH100}
644%endif
645
646%configure \
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 \
654 --enable-shared \
655 --enable-static \
656 --with-distro=pld \
657 --with-rootprefix="" \
658 --with-rootlibdir=/%{_lib} \
659 --with-html-dir=%{_gtkdocdir} \
660 --enable-gtk-doc \
661 --enable-introspection \
662 --enable-split-usr
663
664%{__make}
665./libtool --mode=link --tag=CC %{__cc} %{rpmcppflags} %{rpmcflags} -o systemd_booted %{rpmldflags} src/systemd_booted.c -L. -lsystemd-daemon
666
667%install
668rm -rf $RPM_BUILD_ROOT
669install -d $RPM_BUILD_ROOT/var/lib/%{name}/coredump \
670 $RPM_BUILD_ROOT{%{_sysconfdir}/{modprobe.d,systemd/system-preset},%{_sbindir}}
671
672%{__make} install \
673 DESTDIR=$RPM_BUILD_ROOT
674
675./libtool --mode=install install -p -m755 systemd_booted $RPM_BUILD_ROOT/bin/systemd_booted
676
677# compatibility symlinks to udevd binary
678mv $RPM_BUILD_ROOT/lib/{systemd/systemd-,udev/}udevd
679ln -s /lib/udev/udevd $RPM_BUILD_ROOT/lib/systemd/systemd-udevd
680ln -s /lib/udev/udevd $RPM_BUILD_ROOT%{_sbindir}/udevd
681
682# compat symlinks for "/ merged into /usr" programs
683mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/udevadm
684ln -s %{_sbindir}/udevadm $RPM_BUILD_ROOT%{_bindir}
685ln -s /lib/udev $RPM_BUILD_ROOT/usr/lib/
686
687# install custom udev rules from pld package
688cp -a %{SOURCE101} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d/40-alsa-restore.rules
689cp -a %{SOURCE102} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d/70-udev-pld.rules
690
691# install udev configs
692cp -a %{SOURCE103} $RPM_BUILD_ROOT%{_sysconfdir}/udev/links.conf
693
694# install udev executables (scripts, helpers, etc.)
695install -p %{SOURCE110} $RPM_BUILD_ROOT/lib/udev/net_helper
696install -p %{SOURCE111} $RPM_BUILD_ROOT%{_sbindir}/start_udev
697
698# install misc udev stuff
699cp -a %{SOURCE120} $RPM_BUILD_ROOT%{_sysconfdir}/modprobe.d/udev_blacklist.conf
700cp -a %{SOURCE121} $RPM_BUILD_ROOT%{_sysconfdir}/modprobe.d/fbdev-blacklist.conf
701
702mv $RPM_BUILD_ROOT%{_mandir}/man8/{systemd-,}udevd.8
703echo ".so man8/udevd.8" >$RPM_BUILD_ROOT%{_mandir}/man8/systemd-udevd.8
704
705%if %{with initrd}
706install -d $RPM_BUILD_ROOT%{_libdir}/initrd/udev
707install -p udev-initrd/udevadm $RPM_BUILD_ROOT%{_libdir}/initrd
708install -p udev-initrd/systemd-udevd $RPM_BUILD_ROOT%{_libdir}/initrd
709# hardlink udevd -> systemd-udevd
710ln $RPM_BUILD_ROOT%{_libdir}/initrd/{systemd-,}udevd
711ln -s udevd $RPM_BUILD_ROOT%{_libdir}/initrd/udevstart
712install -p udev-initrd/*_id $RPM_BUILD_ROOT%{_libdir}/initrd/udev
713install -p udev-initrd/collect $RPM_BUILD_ROOT%{_libdir}/initrd/udev
714install -p udev-initrd/mtd_probe $RPM_BUILD_ROOT%{_libdir}/initrd/udev
715%endif
716
717# Main binary has been moved, but we don't want to break existing installs
718ln -s ../lib/systemd/systemd $RPM_BUILD_ROOT/bin/systemd
719
720# Create SysV compatibility symlinks. systemctl/systemd are smart
721# enough to detect the way they were called
722install -d $RPM_BUILD_ROOT/sbin
723ln -s ../lib/systemd/systemd $RPM_BUILD_ROOT/sbin/init
724ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/halt
725ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/poweroff
726ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/reboot
727ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/runlevel
728ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/shutdown
729ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/telinit
730
731ln -s ../modules $RPM_BUILD_ROOT%{_sysconfdir}/modules-load.d/modules.conf
732
733# disable redundant SYSV services
734ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/allowlogin.service
735ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/console.service
736ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/cpusets.service
737ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/killall.service
738ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/netfs.service
739ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/random.service
740
741# add static (non-NetworkManager) networking
742cp -p %{SOURCE3} $RPM_BUILD_ROOT%{systemdunitdir}/network.service
743
744# restore bind-mounts /var/run -> run and /var/lock -> /run/lock
745# we don't have those directories symlinked
746cp -p %{SOURCE4} $RPM_BUILD_ROOT%{systemdunitdir}/var-lock.mount
747cp -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}/var-run.mount
748ln -s ../var-lock.mount $RPM_BUILD_ROOT%{systemdunitdir}/local-fs.target.wants
749ln -s ../var-run.mount $RPM_BUILD_ROOT%{systemdunitdir}/local-fs.target.wants
750
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
754
755# Install and enable storage subsystems support services (RAID, LVM, etc.)
756cp -p %{SOURCE10} $RPM_BUILD_ROOT%{systemdunitdir}/pld-storage-init-late.service
757cp -p %{SOURCE11} $RPM_BUILD_ROOT%{systemdunitdir}/pld-storage-init.service
758cp -p %{SOURCE12} $RPM_BUILD_ROOT%{systemdunitdir}/pld-wait-storage.service
759cp -p %{SOURCE14} $RPM_BUILD_ROOT%{systemdunitdir}/pld-clean-tmp.service
760install -p %{SOURCE13} $RPM_BUILD_ROOT/lib/systemd/pld-storage-init
761install -p %{SOURCE15} $RPM_BUILD_ROOT/lib/systemd/pld-clean-tmp
762
763ln -s ../pld-storage-init-late.service $RPM_BUILD_ROOT%{systemdunitdir}/local-fs.target.wants
764ln -s ../pld-storage-init.service $RPM_BUILD_ROOT%{systemdunitdir}/local-fs.target.wants
765ln -s ../pld-clean-tmp.service $RPM_BUILD_ROOT%{systemdunitdir}/local-fs.target.wants
766
767# Install rc-inetd replacement
768cp -p %{SOURCE16} $RPM_BUILD_ROOT/lib/systemd/system-generators/pld-rc-inetd-generator
769cp -p %{SOURCE17} $RPM_BUILD_ROOT%{systemdunitdir}/rc-inetd.service
770
771cp -p %{SOURCE18} $RPM_BUILD_ROOT%{_sysconfdir}/systemd/system-preset/default.preset
772
773# handled by rc-local sysv service, no need for generator
774%{__rm} $RPM_BUILD_ROOT/lib/systemd/system-generators/systemd-rc-local-generator
775
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)?
780install -d $RPM_BUILD_ROOT%{systemdunitdir}/{dbus,halt,kexec,poweroff,reboot,syslog}.target.wants
781
782# Create new-style configuration files so that we can ghost-own them
783touch $RPM_BUILD_ROOT%{_sysconfdir}/{hostname,locale.conf,machine-id,machine-info,timezone,vconsole.conf}
784
785# Install SysV conversion tool for systemd
786install -p %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}
787
788install -d $RPM_BUILD_ROOT/var/log
789:> $RPM_BUILD_ROOT/var/log/btmp
790:> $RPM_BUILD_ROOT/var/log/wtmp
791
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
795
796%clean
797rm -rf $RPM_BUILD_ROOT
798
799%post
800/bin/systemd-machine-id-setup > /dev/null 2>&1 || :
801/bin/systemctl daemon-reexec > /dev/null 2>&1 || :
802
803%postun
804if [ $1 -ge 1 ]; then
805 /bin/systemctl try-restart systemd-logind.service >/dev/null 2>&1 || :
806fi
807
808%post libs -p /sbin/ldconfig
809%postun libs -p /sbin/ldconfig
810
811%post units
812if [ $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"
817 else
818 target="%{systemdunitdir}/runlevel$runlevel.target"
819 fi
820
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 || :
823
824 # Setup hostname
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
830 fi
831
832 # Enable the services we install by default.
833 /bin/systemctl enable \
834 getty@.service \
835 network.service \
836 remote-fs.target \
837 systemd-readahead-replay.service \
838 systemd-readahead-collect.service \
839 systemd-udev-settle.service >/dev/null 2>&1 || :
840fi
841
842%preun units
843if [ $1 -eq 0 ] ; then
844 /bin/systemctl disable \
845 getty@.service \
846 network.service \
847 remote-fs.target \
848 systemd-readahead-replay.service \
849 systemd-readahead-collect.service \
850 systemd-udev-settle.service >/dev/null 2>&1 || :
851
852 %{__rm} -f %{_sysconfdir}/systemd/system/default.target >/dev/null 2>&1 || :
853fi
854
855%postun units
856if [ $1 -ge 1 ]; then
857 /bin/systemctl daemon-reload > /dev/null 2>&1 || :
858fi
859
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 || :
866
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
871if [ -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
874fi
875if [ -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
878fi
879
880%triggerpostun units -- systemd-units < 1:187-3
881if [ -f /etc/sysconfig/rpm ]; then
882 . /etc/sysconfig/rpm
883 if [ ${RPM_ENABLE_SYSTEMD_SERVICE:-yes} = no ]; then
884 echo "disable *" >>%{_sysconfdir}/systemd/system-preset/default.preset
885 fi
886fi
887
888%post inetd
889%systemd_reload
890# Do not change it to restart, we only want to start new services here
891%systemd_service_start sockets.target
892
893%postun inetd
894%systemd_reload
895
896%triggerpostun -n udev-core -- dev
897if [ "$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)
901 umask 000
902 /sbin/start_udev || exit 0
903fi
904
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
909%endif
910
911%triggerpostun -n udev-core -- udev < 165
912/sbin/udevadm info --convert-db
913
914%post -n udev-core
915if [ $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
920 fi
921 else
922 SYSTEMD_LOG_LEVEL=warning SYSTEMD_LOG_TARGET=syslog \
923 /bin/systemctl --quiet try-restart systemd-udevd.service || :
924 fi
925fi
926
927%postun -n udev-core
928if [ -x /bin/systemd_booted ] && /bin/systemd_booted; then
929 SYSTEMD_LOG_LEVEL=warning SYSTEMD_LOG_TARGET=syslog \
930 /bin/systemctl --quiet daemon-reload || :
931fi
932
933%post -n udev-libs -p /sbin/ldconfig
934%postun -n udev-libs -p /sbin/ldconfig
935
936%post -n udev-glib -p /sbin/ldconfig
937%postun -n udev-glib -p /sbin/ldconfig
938
939%files
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
961/etc/xdg/systemd
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
1114
1115%if %{with pam}
1116%attr(755,root,root) /%{_lib}/security/pam_systemd.so
1117%{_mandir}/man8/pam_systemd.8*
1118%endif
1119
1120%files init
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*
1136
1137%files units
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
1161
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*
1246
1247%files inetd
1248%defattr(644,root,root,755)
1249%attr(755,root,root) /lib/systemd/system-generators/pld-rc-inetd-generator
1250%{systemdunitdir}/rc-inetd.service
1251
1252%files analyze
1253%defattr(644,root,root,755)
1254%attr(755,root,root) %{_bindir}/systemd-analyze
1255%{_mandir}/man1/systemd-analyze.1*
1256
1257%files libs
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
1267
1268%files devel
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*
1281
1282%files -n bash-completion-systemd
1283%defattr(644,root,root,755)
1284/etc/bash_completion.d/systemd-bash-completion.sh
1285
1286%files -n udev
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
1291
1292%files -n udev-core
1293%defattr(644,root,root,755)
1294
1295/usr/lib/udev
1296
1297%attr(755,root,root) /lib/udev/collect
1298
1299%attr(755,root,root) /lib/udev/keyboard-force-release.sh
1300
1301%attr(755,root,root) /lib/udev/net_helper
1302
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
1308
1309%attr(755,root,root) /lib/udev/udevd
1310
1311%attr(755,root,root) /lib/udev/keymap
1312%dir /lib/udev/keymaps
1313/lib/udev/keymaps/*
1314
1315%attr(755,root,root) /lib/udev/accelerometer
1316%attr(755,root,root) /lib/udev/findkeyboards
1317
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
1322
1323%dir %{_sysconfdir}/udev
1324%dir %{_sysconfdir}/udev/rules.d
1325%dir %{_sysconfdir}/udev/hwdb.d
1326
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
1332
1333%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/udev/udev.conf
1334
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
1356
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
1364
1365%{_mandir}/man7/udev.7*
1366%{_mandir}/man8/udevadm.8*
1367%{_mandir}/man8/udevd.8*
1368
1369%files -n udev-libs
1370%defattr(644,root,root,755)
1371%attr(755,root,root) /%{_lib}/libudev.so.*.*.*
1372%attr(755,root,root) %ghost /%{_lib}/libudev.so.1
1373
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
1380
1381%files -n udev-static
1382%defattr(644,root,root,755)
1383%attr(755,root,root) %{_libdir}/libudev.a
1384
1385%files -n udev-apidocs
1386%defattr(644,root,root,755)
1387%{_gtkdocdir}/libudev
1388
1389%files -n udev-glib
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
1394
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
1401
1402%files -n udev-glib-static
1403%defattr(644,root,root,755)
1404%attr(755,root,root) %{_libdir}/libgudev-1.0.a
1405
1406%files -n udev-glib-apidocs
1407%defattr(644,root,root,755)
1408%{_gtkdocdir}/gudev
1409
1410%if %{with initrd}
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
1421%endif
1422
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
This page took 0.166987 seconds and 4 git commands to generate.