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