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