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