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