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