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