]> git.pld-linux.org Git - packages/systemd.git/blame - systemd.spec
- require virtual dep, suggest kmod
[packages/systemd.git] / systemd.spec
CommitLineData
5d32f234 1#
d374e721
JR
2# TODO:
3# - remove compat-pld-var-run.tmpfiles and maybe tmpfiles-not-fatal.patch
4# after enough packages provide their own tmpfiles.d configs for
5# /var/run directories
6#
c3037397 7# Conditional build:
6c89bbd4
ER
8%bcond_without audit # without audit support
9%bcond_without cryptsetup # without cryptsetup support
23107006
TP
10%bcond_without gtk # build gtk tools
11%bcond_without pam # PAM authentication support
4389e6f9 12%bcond_with plymouth # plymouth support
23107006
TP
13%bcond_without selinux # without SELinux support
14%bcond_without tcpd # libwrap (tcp_wrappers) support
9c0b975d 15
c3037397 16Summary: A System and Service Manager
ede8d3e5 17Summary(pl.UTF-8): systemd - zarządca systemu i usług dla Linuksa
18Name: systemd
4389e6f9 19Version: 42
fcfde7e0 20Release: 1
ede8d3e5 21License: GPL v2+
22Group: Base
440d1d13 23Source0: http://www.freedesktop.org/software/systemd/%{name}-%{version}.tar.xz
4389e6f9 24# Source0-md5: 7686b44e368d2523901d3e903ed4dcea
4f25b6ac 25Source1: %{name}-sysv-convert
b0980573 26Source2: %{name}_booted.c
f1586299
JR
27Source3: ifup@.service
28Source4: network-post.service
29Source5: network.service
5c8fe698
JR
30Source6: compat-pld-media.tmpfiles
31Source7: compat-pld-var-run.tmpfiles
7619c097 32Patch0: target-pld.patch
252e1bad 33Patch1: config-pld.patch
8e088cd5 34Patch2: shut-sysv-up.patch
2e1f31c8 35Patch3: pld-sysv-network.patch
d374e721 36Patch4: tmpfiles-not-fatal.patch
ede8d3e5 37URL: http://www.freedesktop.org/wiki/Software/systemd
5b9bde26 38BuildRequires: acl-devel
6c89bbd4 39%{?with_audit:BuildRequires: audit-libs-devel}
6e34428f
MB
40BuildRequires: autoconf >= 2.63
41BuildRequires: automake >= 1:1.11
42%{?with_cryptsetup:BuildRequires: cryptsetup-luks-devel}
23107006 43BuildRequires: dbus-devel >= 1.3.2
c3037397 44BuildRequires: docbook-style-xsl
23107006
TP
45%if %{with gtk}
46BuildRequires: glib2-devel >= 1:2.26.1
47BuildRequires: gtk+2-devel >= 2:2.24.0
a86320a6 48BuildRequires: libgee-devel
23107006
TP
49BuildRequires: libnotify-devel >= 0.7.0
50%endif
9cd79e34 51BuildRequires: binutils >= 3:2.22.52.0.1-2
3fc7a1cc 52BuildRequires: gperf
5b9bde26 53BuildRequires: intltool >= 0.40.0
4389e6f9 54BuildRequires: kmod-devel >= 5
b82d0bf2 55BuildRequires: libcap-devel
6c89bbd4
ER
56%{?with_selinux:BuildRequires: libselinux-devel}
57BuildRequires: libtool >= 2:2.2
58%{?with_tcpd:BuildRequires: libwrap-devel}
6e34428f 59BuildRequires: libxslt-progs
961baf80 60BuildRequires: m4
6c89bbd4 61%{?with_pam:BuildRequires: pam-devel}
4389e6f9 62%{?with_plymouth:BuildRequires: plymouth-devel}
23107006 63BuildRequires: pkgconfig >= 0.9.0
4cc1cb1d 64BuildRequires: rpmbuild(macros) >= 1.627
58fd72e9 65BuildRequires: udev-devel >= 1:172
5b9bde26
JB
66# not required for building from release (which contains *.c for *.vala)
67#BuildRequires: vala >= 0.10.0
58fd72e9 68BuildRequires: xz-devel
011bccb6 69Requires: %{name}-libs = %{version}-%{release}
c3037397 70Requires: %{name}-units = %{version}-%{release}
2ff27c26 71Requires: SysVinit-tools
37b8df82 72Requires: agetty
b0980573 73Requires: dbus >= 1.4.16-6
7cb5cfc8 74Requires: filesystem >= 4.0-2
851fb4d8 75Requires: rc-scripts >= 0.4.5.1-7
56701781 76Requires: setup >= 2.8.0-2
b0980573 77Requires: udev-core >= 1:175-5
fe6ae5ab 78Requires: udev-libs >= 1:172
e3134fe0 79Requires: virtual(module-tools)
b0980573 80Suggests: ConsoleKit
2a61be78 81Suggests: fsck >= 2.20
e3134fe0 82Suggests: kmod >= 5
4b15486a 83Suggests: nss_myhostname
2a61be78 84# python modules required by systemd-analyze
b0980573 85Suggests: %{name}-no-compat-tmpfiles
2a61be78
TP
86Suggests: python-dbus
87Suggests: python-modules
c35aa49c 88Suggests: service(klogd)
1cdd35cf 89Suggests: service(syslog)
fda563d5 90Provides: udev-acl
3baeefca
PG
91# systemd takes care of that and causes problems
92Conflicts: binfmt-detector
a6203073 93# sytemd wants pam with pam_systemd.so in system-auth...
3b292a99 94Conflicts: pam < 1:1.1.5-5
a6203073
JR
95# ...and sudo hates it
96Conflicts: sudo < 1:1.7.8p2-4
ff9cae1d 97Conflicts: upstart
ede8d3e5 98BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
99
85879912
ER
100%define _libexecdir %{_prefix}/lib
101
ede8d3e5 102%description
1c239f8b 103systemd is a system and service manager for Linux, compatible with
ede8d3e5 104SysV and LSB init scripts. systemd provides aggressive parallelization
105capabilities, uses socket and D-Bus activation for starting services,
106offers on-demand starting of daemons, keeps track of processes using
107Linux cgroups, supports snapshotting and restoring of the system
108state, maintains mount and automount points and implements an
109elaborate transactional dependency-based service control logic. It can
1c239f8b 110work as a drop-in replacement for sysvinit.
ede8d3e5 111
112%description -l pl.UTF-8
113systemd jest zarządcą systemu i usług dla Linuksa, kompatybilny ze
114skryptami SysV i LSB. systemd udostępnia rozbudowane zdolności
115paralelizacji, do uruchamiania usług używa socketów oraz D-Busa,
116oferuje uruchamianie usług na życzenie, monitoruje procesy używając
117linuksowych cgroups, wspomaga zapisywanie (snapshot) i odczytywanie
118(restore) stanu systemu, zarządza (auto)mount pointami oraz
119implementuje starannie opracowaną transakcjonalną, bazującą na
d45dfc3a 120zależnościach logikę kontroli usług. Może pracować jako zastępca dla
ede8d3e5 121sysvinit.
122
c97dacdd
TP
123%package init
124Summary: systemd /sbin/init and LSB/SysV compatibility symlinks
5b9bde26 125Summary(pl.UTF-8): /sbin/init z systemd i dowiązania dla kompatybilności z LSB/SysV
c97dacdd 126Group: Base
d6829efa 127Requires: systemd
c97dacdd
TP
128Provides: readahead = 1:1.5.7-3
129Provides: virtual(init-daemon)
130Obsoletes: SysVinit
131Obsoletes: readahead < 1:1.5.7-3
132Obsoletes: virtual(init-daemon)
133
134%description init
135Install this package when you are ready to final switch to systemd.
136
5b9bde26
JB
137%description init -l pl.UTF-8
138Ten pakiet należy zainstalować po przygotowaniu się do ostatecznego
139przejścia na systemd.
140
c3037397
ER
141%package units
142Summary: Configuration files, directories and installation tool for systemd
5b9bde26 143Summary(pl.UTF-8): Pliki konfiguracyjne, katalogi i narzędzie instalacyjne dla systemd
c3037397 144Group: Base
c3037397 145Requires(post): coreutils
a8d86f01 146Requires(post): /bin/awk
c3037397
ER
147
148%description units
149Basic configuration files, directories and installation tool for the
150systemd system and service manager.
151
f341cd9b 152This is common config, use %{_sysconfdir}/systemd/system to override.
10ffdcd2 153
5b9bde26
JB
154%description units -l pl.UTF-8
155Podstawowe pliki konfiguracyjne, katalogi i narzędzie instalacyjne dla
156zarządcy systemu i usług systemd.
157
158Ten pakiet zawiera ogólną konfigurację, ustawienia można nadpisać
159poprzez katalog %{_sysconfdir}/systemd/system.
160
c3037397
ER
161%package gtk
162Summary: Graphical frontend for systemd
5b9bde26 163Summary(pl.UTF-8): Graficzny interfejs do systemd
c3037397
ER
164Group: Base
165Requires: %{name} = %{version}-%{release}
166Requires: polkit
167
168%description gtk
169Graphical front-end for systemd.
170
5b9bde26
JB
171%description gtk -l pl.UTF-8
172Graficzny interfejs do systemd.
6c89bbd4 173
011bccb6 174%package libs
5b9bde26
JB
175Summary: Shared systemd libraries
176Summary(pl.UTF-8): Biblioteki współdzielone systemd
011bccb6
BZ
177Group: Libraries
178
179%description libs
5b9bde26
JB
180Shared systemd libraries.
181
182%description libs -l pl.UTF-8
183Biblioteki współdzielone systemd.
011bccb6 184
961baf80
AF
185%package devel
186Summary: Header files for systemd libraries
187Summary(pl.UTF-8): Pliki nagłówkowe bibliotek systemd
188Group: Development/Libraries
011bccb6 189Requires: %{name}-libs = %{version}-%{release}
961baf80
AF
190
191%description devel
192Header files for systemd libraries.
193
194%description devel -l pl.UTF-8
195Pliki nagłówkowe bibliotek systemd.
196
5b9bde26
JB
197%package -n bash-completion-systemd
198Summary: bash-completion for systemd
199Summary(pl.UTF-8): Bashowe dopełnianie składni dla systemd
200Group: Applications/Shells
201Requires: %{name}
202Requires: bash-completion
203
204%description -n bash-completion-systemd
205bash-completion for systemd.
206
207%description -n bash-completion-systemd -l pl.UTF-8
208Bashowe dopełnianie składni dla systemd
209
ae4d0acb
JR
210%package no-compat-tmpfiles
211Summary: Force update of packages that provide tmpfiles.d configuration
212Group: Base
213Requires(post): sed > 4.0
214Conflicts: ConsoleKit-dirs < 0.4.5-7
215Conflicts: NetworkManager < 2:0.9.2.0-3
216Conflicts: Zope < 2.11.8-2
217Conflicts: amavisd-new < 1:2.7.0-1
ae4d0acb
JR
218Conflicts: apache-base < 2.2.21-4
219Conflicts: apache-mod_bw < 0.92-3
220Conflicts: apache-mod_fastcgi < 2.4.6-6
b0980573
ŁK
221Conflicts: apache1-base < 1.3.42-5
222Conflicts: apache1-mod_fastcgi < 2.4.6-2
ae4d0acb
JR
223Conflicts: asterisk < 10.0.1-2
224Conflicts: autossh-init < 1.4b-3
225Conflicts: balance < 3.54-2
226Conflicts: bind < 7:9.8.1.P1-4
227Conflicts: bopm < 3.1.3-4
228Conflicts: callweaver < 1.2.1-9
229Conflicts: cassandra-bin < 0.8.9-2
230Conflicts: clamav < 0.97.3-3
231Conflicts: cups < 1:1.5.0-10
232Conflicts: dbus < 1.4.16-4
233Conflicts: dovecot < 1:2.0.16-3
234Conflicts: dspam < 3.9.0-6
235Conflicts: fail2ban < 0.8.4-4
236Conflicts: filesystem < 4.0-3
237Conflicts: gammu-smsd < 1:1.31.0-3
a6203073
JR
238# Break gdm2.20 installs
239#Conflicts: gdm < 2:3.2.1.1-9
ae4d0acb
JR
240Conflicts: greylistd < 0.8.8-2
241Conflicts: inn < 2.4.6-7
242Conflicts: ipsec-tools < 0.8.0-3
243Conflicts: jabber-common < 0-9
244Conflicts: laptop-mode-tools < 1.58-2
245Conflicts: libgpod < 0.8.0-6
246Conflicts: libvirt-utils < 0.9.9-4
247Conflicts: lighttpd < 1.4.30-5
248Conflicts: lirc < 0.9.0-20
249Conflicts: mailman < 5:2.1.14-4
250Conflicts: memcached < 1.4.11-2
251Conflicts: mpd < 0.16.5-4
252Conflicts: mrtg < 2.17.0-3
253Conflicts: munin-common < 1.4.5-5
254Conflicts: nagios-nrpe < 2.13-2
255Conflicts: ndisc6-rdnssd < 1.0.1-3
256Conflicts: nscd < 6:2.14.1-5
257Conflicts: nss_ldapd-nslcd < 0.8.4-2
258Conflicts: openct < 0.6.20-3
259Conflicts: openl2tp < 1.8-3
260Conflicts: openldap-overlay-nssov < 2.4.28-4
261Conflicts: openldap-servers < 2.4.28-4
262Conflicts: openvpn < 2.2.2-2
ae4d0acb
JR
263Conflicts: pam-pam_mount < 2.12-3
264Conflicts: pam-pam_ssh < 1.97-2
265Conflicts: pcsc-lite < 1.8.1-2
266Conflicts: php-dirs < 1.2-3
267Conflicts: policyd < 2.0.10-3
268Conflicts: pound < 2.6-2
269Conflicts: pptp < 1.7.2-3
270Conflicts: proftpd-common < 2:1.3.4a-2
271Conflicts: pulseaudio-server < 1.1-2
272Conflicts: quagga < 0.99.20-3
273Conflicts: radvd < 1.8.5-2
274Conflicts: rc-scripts < 0.4.5.2-3
275Conflicts: red5 < 0.9.0-2
276Conflicts: redis-server < 2.4.2-4
277Conflicts: smokeping < 2.4.2-10
278Conflicts: smtp-gated < 1.4.17-2
279Conflicts: socat < 1.7.2.0-2
280Conflicts: speech-dispatcher < 0.7.1-2
281Conflicts: sphinx < 2.0.3-4
282Conflicts: splashutils < 1.5.4.3-3
283Conflicts: stunnel < 4.50-2
ae4d0acb
JR
284Conflicts: tenshi < 0.12-2
285Conflicts: tor < 0.2.2.35-2
286Conflicts: ucarp < 1.5.2-3
287Conflicts: udisks < 1.0.4-3
288Conflicts: util-vserver < 0.30.216-1.pre3002.3
289Conflicts: vpnc < 0.5.3-2
290Conflicts: web2ldap < 1.1.0rc1-2
291Conflicts: wesnoth-server < 1:1.10-2
292Conflicts: wpa_supplicant < 0.7.3-10
293Conflicts: xl2tpd < 1.3.0-2
294
295%description no-compat-tmpfiles
296Force update of packages that provide tmpfiles.d configuration
297
ede8d3e5 298%prep
299%setup -q
4c5b5ab6 300%patch0 -p1
252e1bad 301%patch1 -p1
a6203073 302%patch2 -p1
942c9075 303%patch3 -p1
d374e721 304%patch4 -p1
b77423ae 305cp -p %{SOURCE2} src/systemd_booted.c
ede8d3e5 306
307%build
4c5b5ab6 308%{__aclocal} -I m4
ede8d3e5 309%{__autoconf}
6e34428f 310%{__autoheader}
ede8d3e5 311%{__automake}
9c0b975d 312%configure \
6c89bbd4
ER
313 %{__enable_disable audit} \
314 %{__enable_disable cryptsetup libcryptsetup} \
315 %{__enable_disable gtk} \
316 %{__enable_disable pam} \
4389e6f9 317 %{__enable_disable plymouth} \
6c89bbd4
ER
318 %{__enable_disable selinux} \
319 %{__enable_disable tcpd tcpwrap} \
320 --disable-silent-rules \
961baf80 321 --disable-static \
5b9bde26 322 --with-distro=pld \
391eea76 323 --with-rootprefix= \
4389e6f9
JR
324 --with-rootlibdir=/%{_lib} \
325 --enable-split-usr
e1d9cc15 326
ede8d3e5 327%{__make}
b77423ae 328./libtool --mode=link --tag=CC %{__cc} %{rpmcppflags} %{rpmcflags} -o systemd_booted %{rpmldflags} src/systemd_booted.c -L. -lsystemd-daemon
ede8d3e5 329
330%install
331rm -rf $RPM_BUILD_ROOT
23107006 332
ede8d3e5 333%{__make} install \
334 DESTDIR=$RPM_BUILD_ROOT
335
b77423ae
AF
336./libtool --mode=install install -m755 systemd_booted $RPM_BUILD_ROOT/bin/systemd_booted
337
4389e6f9
JR
338# Main binary has been moved, but we don't want to break existing installs
339ln -s ../lib/systemd/systemd $RPM_BUILD_ROOT/bin/systemd
340
1dcb74bb 341# Create SysV compatibility symlinks. systemctl/systemd are smart
2a61be78 342# enough to detect the way they were called
c28b0c1c 343install -d $RPM_BUILD_ROOT/sbin
4389e6f9 344ln -s ../lib/systemd/systemd $RPM_BUILD_ROOT/sbin/init
1dcb74bb 345ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/halt
346ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/poweroff
23107006
TP
347ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/reboot
348ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/runlevel
1dcb74bb 349ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/shutdown
350ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/telinit
1dcb74bb 351
5d32f234 352ln -s ../modules $RPM_BUILD_ROOT%{_sysconfdir}/modules-load.d/modules.conf
4cc1cb1d
ER
353# disable random and console SYSV service
354ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/random.service
355ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/console.service
5d32f234 356
f1586299 357# add static (non-NetworkManager) networking
4cc1cb1d
ER
358install %{SOURCE3} $RPM_BUILD_ROOT%{systemdunitdir}/ifup@.service
359install %{SOURCE4} $RPM_BUILD_ROOT%{systemdunitdir}/network-post.service
360install %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}/network.service
f1586299 361
5c8fe698
JR
362# install compatibility tmpfiles configs
363install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/tmpfiles.d/compat-pld-media.conf
d374e721 364install %{SOURCE7} $RPM_BUILD_ROOT%{_sysconfdir}/tmpfiles.d/compat-pld-var-run.conf
5c8fe698 365
2a61be78
TP
366# All wants links are created at %post to make sure they are not owned
367# and hence overriden by rpm if the user deletes them (missingok?)
23107006 368%{__rm} -r $RPM_BUILD_ROOT%{_sysconfdir}/systemd/system/*.target.wants
c3037397 369
e64703a8 370# it is in rc-scripts pkg
4cc1cb1d 371%{__rm} $RPM_BUILD_ROOT%{systemdunitdir}/rc-local.service
e64703a8 372
2a61be78
TP
373# Make sure these directories are properly owned:
374# - halt,kexec,poweroff,reboot: generic ones used by ConsoleKit-systemd,
375# - syslog _might_ be used by some syslog implementation (none for now),
376# - isn't dbus populated by dbus-systemd only (so to be moved there)?
4cc1cb1d 377install -d $RPM_BUILD_ROOT%{systemdunitdir}/{dbus,halt,kexec,poweroff,reboot,syslog}.target.wants
961baf80
AF
378
379# Create new-style configuration files so that we can ghost-own them
23107006 380touch $RPM_BUILD_ROOT%{_sysconfdir}/{hostname,locale.conf,machine-id,machine-info,os-release,timezone,vconsole.conf}
4bbef33c 381
9d8b5dfe 382# Install SysV conversion tool for systemd
4f25b6ac 383install -p %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}
9d8b5dfe
BZ
384
385install -d $RPM_BUILD_ROOT/var/log
5a65c84e
TP
386:> $RPM_BUILD_ROOT/var/log/btmp
387:> $RPM_BUILD_ROOT/var/log/wtmp
a761f93e 388
5d32f234 389%if %{without gtk}
5d32f234
TP
390%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/systemadm.1*
391%endif
392
393%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
a86320a6 394%{__rm} $RPM_BUILD_ROOT/%{_lib}/security/pam_systemd.la
5d32f234
TP
395%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
396
ede8d3e5 397%clean
398rm -rf $RPM_BUILD_ROOT
399
9638c72f 400%post
4bbef33c 401/bin/systemd-machine-id-setup > /dev/null 2>&1 || :
9638c72f 402/bin/systemctl daemon-reexec > /dev/null 2>&1 || :
c3037397 403
961baf80 404%postun
85879912 405if [ $1 -ge 1 ]; then
961baf80 406 /bin/systemctl try-restart systemd-logind.service >/dev/null 2>&1 || :
9638c72f 407fi
408
3edd52a6
TP
409%post libs -p /sbin/ldconfig
410%postun libs -p /sbin/ldconfig
011bccb6 411
961baf80 412%post units
85879912 413if [ $1 -eq 1 ]; then
961baf80
AF
414 # Try to read default runlevel from the old inittab if it exists
415 runlevel=$(/bin/awk -F ':' '$3 == "initdefault" && $1 !~ "^#" { print $2 }' /etc/inittab 2> /dev/null)
416 if [ -z "$runlevel" ] ; then
4cc1cb1d 417 target="%{systemdunitdir}/graphical.target"
961baf80 418 else
4cc1cb1d 419 target="%{systemdunitdir}/runlevel$runlevel.target"
961baf80
AF
420 fi
421
422 # And symlink what we found to the new-style default.target
f341cd9b 423 ln -s "$target" %{_sysconfdir}/systemd/system/default.target >/dev/null 2>&1 || :
cf819365
JR
424
425 # Setup hostname
426 [ -f /etc/sysconfig/network ] && . /etc/sysconfig/network
427 if [ -n "$HOSTNAME" -a "$HOSTNAME" != "pldmachine" ]; then
428 [ -f /etc/hostname ] && mv -f /etc/hostname /etc/hostname.rpmsave
429 echo $HOSTNAME > /etc/hostname
430 chmod 644 /etc/hostname
431 fi
9638c72f 432fi
f1586299
JR
433# Enable the services we install by default.
434/bin/systemctl enable \
435 getty@.service \
436 network.service \
437 network-post.service \
438 remote-fs.target \
439 systemd-readahead-replay.service \
440 systemd-readahead-collect.service >/dev/null 2>&1 || :
441
442# Find and enable all installed interfaces
d37b4980 443mkdir -p %{_sysconfdir}/systemd/system/network.target.wants >/dev/null 2>&1 || :
f1586299
JR
444for f in /etc/sysconfig/interfaces/ifcfg-* ; do
445 ff=$(basename $f)
446 ff=${ff##ifcfg-}
447 case "$ff" in
448 *.rpmorig|*.rpmnew|*.rpmsave|*~|*.orig)
449 continue
450 ;;
451 *)
663b637e 452 DEVICE="" ; ONBOOT="" ; USERS=""
72878cbd 453 . $f 2>/dev/null
663b637e 454 [ ${USERS:-no} != no ] && continue
90de2714 455 if [ "$DEVICE" = "$ff" -a ${ONBOOT:-no} = "yes" ]; then
4cc1cb1d 456 ln -s %{systemdunitdir}/ifup@.service \
90de2714
JR
457 %{_sysconfdir}/systemd/system/network.target.wants/ifcfg@$ff.service >/dev/null 2>&1 || :
458 fi
f1586299
JR
459 ;;
460 esac
461done
c3037397
ER
462
463%preun units
961baf80
AF
464if [ $1 -eq 0 ] ; then
465 /bin/systemctl disable \
466 getty@.service \
f1586299
JR
467 network.service \
468 network-post.service \
961baf80
AF
469 remote-fs.target \
470 systemd-readahead-replay.service \
471 systemd-readahead-collect.service >/dev/null 2>&1 || :
472
f341cd9b 473 %{__rm} -f %{_sysconfdir}/systemd/system/default.target >/dev/null 2>&1 || :
f1586299 474 %{__rm} -f %{_sysconfdir}/systemd/system/network.target.wants/ifcfg@*.service >/dev/null 2>&1 || :
c3037397 475fi
9638c72f 476
961baf80 477%postun units
85879912 478if [ $1 -ge 1 ]; then
9638c72f 479 /bin/systemctl daemon-reload > /dev/null 2>&1 || :
480fi
481
ae4d0acb 482%post no-compat-tmpfiles
a6203073 483%{__sed} -i -e '/^#/!s/^/# /g' %{_sysconfdir}/tmpfiles.d/compat-pld-var-run.conf
ae4d0acb 484
ede8d3e5 485%files
486%defattr(644,root,root,755)
1c239f8b 487%doc DISTRO_PORTING README TODO
6e34428f 488/etc/dbus-1/system.d/org.freedesktop.hostname1.conf
961baf80
AF
489/etc/dbus-1/system.d/org.freedesktop.locale1.conf
490/etc/dbus-1/system.d/org.freedesktop.login1.conf
c3037397 491/etc/dbus-1/system.d/org.freedesktop.systemd1.conf
961baf80 492/etc/dbus-1/system.d/org.freedesktop.timedate1.conf
3edd52a6 493%ghost %config(noreplace) %{_sysconfdir}/machine-id
b77423ae
AF
494%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/hostname
495%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/locale.conf
496%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/machine-info
497%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/os-release
498%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/timezone
499%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vconsole.conf
5d32f234 500%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/systemd/*.conf
2a61be78 501%dir %{_sysconfdir}/systemd/user
abd479ee 502/etc/xdg/systemd
1dcb74bb 503%attr(755,root,root) /bin/systemd
504%attr(755,root,root) /bin/systemd-ask-password
c76a8951 505%attr(755,root,root) /bin/systemd-journalctl
961baf80 506%attr(755,root,root) /bin/systemd-loginctl
7a76bc86 507%attr(755,root,root) /bin/systemd-machine-id-setup
1dcb74bb 508%attr(755,root,root) /bin/systemd-notify
509%attr(755,root,root) /bin/systemd-tty-ask-password-agent
57cd0d13 510%attr(755,root,root) %{_bindir}/systemd-analyze
d374e721
JR
511%attr(755,root,root) %{_bindir}/systemd-cat
512%attr(755,root,root) %{_bindir}/systemd-cgtop
23107006 513%attr(755,root,root) %{_bindir}/systemd-cgls
57cd0d13
ZU
514%attr(755,root,root) %{_bindir}/systemd-nspawn
515%attr(755,root,root) %{_bindir}/systemd-stdio-bridge
2a61be78 516%attr(755,root,root) %{_bindir}/systemd-sysv-convert
abd479ee 517%attr(755,root,root) /lib/systemd/systemd-*
c3037397 518%dir /lib/systemd/system-generators
4389e6f9 519%attr(755,root,root) /lib/systemd/systemd
5d32f234 520%attr(755,root,root) /lib/systemd/system-generators/systemd-*-generator
abd479ee 521%dir /lib/systemd/system-shutdown
1c239f8b 522/lib/udev/rules.d/99-systemd.rules
961baf80
AF
523/lib/udev/rules.d/70-uaccess.rules
524/lib/udev/rules.d/71-seat.rules
525/lib/udev/rules.d/73-seat-late.rules
3edd52a6
TP
526%dir %{_libexecdir}/systemd
527%{_libexecdir}/systemd/user
2a61be78 528%dir %{_libexecdir}/systemd/user-generators
89d58574 529%config(noreplace,missingok) %{_libexecdir}/tmpfiles.d/*.conf
961baf80
AF
530%{_datadir}/dbus-1/interfaces/org.freedesktop.hostname1.xml
531%{_datadir}/dbus-1/interfaces/org.freedesktop.locale1.xml
c3037397 532%{_datadir}/dbus-1/interfaces/org.freedesktop.systemd1.*.xml
961baf80 533%{_datadir}/dbus-1/interfaces/org.freedesktop.timedate1.xml
1c239f8b 534%{_datadir}/dbus-1/services/org.freedesktop.systemd1.service
6e34428f 535%{_datadir}/dbus-1/system-services/org.freedesktop.hostname1.service
961baf80
AF
536%{_datadir}/dbus-1/system-services/org.freedesktop.locale1.service
537%{_datadir}/dbus-1/system-services/org.freedesktop.login1.service
1c239f8b 538%{_datadir}/dbus-1/system-services/org.freedesktop.systemd1.service
961baf80 539%{_datadir}/dbus-1/system-services/org.freedesktop.timedate1.service
6e34428f 540%{_datadir}/polkit-1/actions/org.freedesktop.hostname1.policy
961baf80
AF
541%{_datadir}/polkit-1/actions/org.freedesktop.locale1.policy
542%{_datadir}/polkit-1/actions/org.freedesktop.login1.policy
543%{_datadir}/polkit-1/actions/org.freedesktop.systemd1.policy
544%{_datadir}/polkit-1/actions/org.freedesktop.timedate1.policy
545%dir %{_datadir}/systemd
546%{_datadir}/systemd/kbd-model-map
7a76bc86 547%{_mandir}/man1/systemd.1*
2a61be78 548%{_mandir}/man1/systemd-*.1*
1c239f8b 549%{_mandir}/man3/sd_booted.3*
550%{_mandir}/man3/sd_is_fifo.3*
551%{_mandir}/man3/sd_is_socket.3
552%{_mandir}/man3/sd_is_socket_inet.3
553%{_mandir}/man3/sd_is_socket_unix.3
554%{_mandir}/man3/sd_listen_fds.3*
555%{_mandir}/man3/sd_notify.3*
556%{_mandir}/man3/sd_notifyf.3
557%{_mandir}/man3/sd_readahead.3*
6e34428f 558%{_mandir}/man5/binfmt.d.5*
1c239f8b 559%{_mandir}/man5/hostname.5*
560%{_mandir}/man5/locale.conf.5*
7a76bc86 561%{_mandir}/man5/machine-id.5*
6e34428f 562%{_mandir}/man5/machine-info.5*
1c239f8b 563%{_mandir}/man5/modules-load.d.5*
564%{_mandir}/man5/os-release.5*
6e34428f 565%{_mandir}/man5/sysctl.d.5*
89d58574 566%{_mandir}/man5/systemd.*.5*
961baf80
AF
567%{_mandir}/man5/systemd-logind.conf.5*
568%{_mandir}/man5/timezone.5*
23107006 569%{_mandir}/man5/vconsole.conf.5*
1c239f8b 570%{_mandir}/man7/daemon.7*
571%{_mandir}/man7/sd-daemon.7*
c76a8951 572%{_mandir}/man7/sd-login.7*
1c239f8b 573%{_mandir}/man7/sd-readahead.7*
574%{_mandir}/man7/systemd.special.7*
a761f93e
TP
575%attr(640,root,root) %ghost /var/log/btmp
576%attr(664,root,utmp) %ghost /var/log/wtmp
c3037397 577
6c89bbd4 578%if %{with pam}
a86320a6 579%attr(755,root,root) /%{_lib}/security/pam_systemd.so
6c89bbd4
ER
580%{_mandir}/man8/pam_systemd.8*
581%endif
582
c97dacdd 583%files init
5b9bde26 584%defattr(644,root,root,755)
c97dacdd
TP
585%attr(755,root,root) /sbin/halt
586%attr(755,root,root) /sbin/init
587%attr(755,root,root) /sbin/poweroff
588%attr(755,root,root) /sbin/reboot
589%attr(755,root,root) /sbin/runlevel
590%attr(755,root,root) /sbin/shutdown
591%attr(755,root,root) /sbin/telinit
592%{_mandir}/man1/init.1
593%{_mandir}/man8/halt.8*
594%{_mandir}/man8/poweroff.8
595%{_mandir}/man8/reboot.8
596%{_mandir}/man8/runlevel.8*
597%{_mandir}/man8/shutdown.8*
598%{_mandir}/man8/telinit.8*
599
c3037397
ER
600%files units
601%defattr(644,root,root,755)
abd479ee
MB
602%dir %{_sysconfdir}/binfmt.d
603%dir %{_sysconfdir}/modules-load.d
5d32f234 604%config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/modules-load.d/modules.conf
abd479ee 605%dir %{_sysconfdir}/sysctl.d
c3037397
ER
606%dir %{_sysconfdir}/systemd
607%dir %{_sysconfdir}/systemd/system
608%dir %{_sysconfdir}/tmpfiles.d
7cb5cfc8 609%config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/tmpfiles.d/*.conf
85879912
ER
610%dir %{_libexecdir}/binfmt.d
611%dir %{_libexecdir}/modules-load.d
612%dir %{_libexecdir}/sysctl.d
d374e721 613%{_libexecdir}/sysctl.d/coredump.conf
c3037397
ER
614%attr(755,root,root) /bin/systemctl
615%attr(755,root,root) /bin/systemd-tmpfiles
b77423ae 616%attr(755,root,root) /bin/systemd_booted
c3037397 617%{_mandir}/man1/systemctl.1*
89d58574 618%{_mandir}/man5/tmpfiles.d.5*
c3037397 619%{_mandir}/man8/systemd-tmpfiles.8*
961baf80 620%{_npkgconfigdir}/systemd.pc
c3037397 621
4cc1cb1d
ER
622%{systemdunitdir}/*.automount
623%{systemdunitdir}/*.mount
624%{systemdunitdir}/*.path
625%{systemdunitdir}/*.service
626%{systemdunitdir}/*.socket
627%{systemdunitdir}/*.target
628%{systemdunitdir}/*.timer
629%dir %{systemdunitdir}/*.wants
630%config(noreplace,missingok) %{systemdunitdir}/*.wants/*
10ffdcd2 631
c3037397
ER
632%if %{with gtk}
633%files gtk
634%defattr(644,root,root,755)
635%attr(755,root,root) %{_bindir}/systemadm
636%attr(755,root,root) %{_bindir}/systemd-gnome-ask-password-agent
c3037397
ER
637%{_mandir}/man1/systemadm.1*
638%endif
6c89bbd4 639
5b9bde26 640%files libs
6c89bbd4 641%defattr(644,root,root,755)
6ba1f779
MB
642%attr(755,root,root) /%{_lib}/libsystemd-daemon.so.*.*.*
643%attr(755,root,root) %ghost /%{_lib}/libsystemd-daemon.so.0
644%attr(755,root,root) /%{_lib}/libsystemd-id128.so.*.*.*
645%attr(755,root,root) %ghost /%{_lib}/libsystemd-id128.so.0
646%attr(755,root,root) /%{_lib}/libsystemd-journal.so.*.*.*
647%attr(755,root,root) %ghost /%{_lib}/libsystemd-journal.so.0
648%attr(755,root,root) /%{_lib}/libsystemd-login.so.*.*.*
649%attr(755,root,root) %ghost /%{_lib}/libsystemd-login.so.0
961baf80
AF
650
651%files devel
652%defattr(644,root,root,755)
89d58574 653%attr(755,root,root) %{_libdir}/libsystemd-daemon.so
c76a8951
BZ
654%attr(755,root,root) %{_libdir}/libsystemd-id128.so
655%attr(755,root,root) %{_libdir}/libsystemd-journal.so
89d58574 656%attr(755,root,root) %{_libdir}/libsystemd-login.so
5b9bde26 657%{_includedir}/%{name}
961baf80 658%{_pkgconfigdir}/libsystemd-daemon.pc
c76a8951
BZ
659%{_pkgconfigdir}/libsystemd-id128.pc
660%{_pkgconfigdir}/libsystemd-journal.pc
961baf80 661%{_pkgconfigdir}/libsystemd-login.pc
c76a8951
BZ
662%{_mandir}/man3/sd_get_seats.3*
663%{_mandir}/man3/sd_get_sessions.3*
664%{_mandir}/man3/sd_get_uids.3*
665%{_mandir}/man3/sd_is_mq.3*
666%{_mandir}/man3/sd_login_monitor_flush.3*
667%{_mandir}/man3/sd_login_monitor_get_fd.3*
668%{_mandir}/man3/sd_login_monitor_new.3*
669%{_mandir}/man3/sd_login_monitor_unref.3*
670%{_mandir}/man3/sd_pid_get_owner_uid.3*
671%{_mandir}/man3/sd_pid_get_session.3*
672%{_mandir}/man3/sd_pid_get_unit.3*
673%{_mandir}/man3/sd_seat_can_multi_session.3*
674%{_mandir}/man3/sd_seat_get_active.3*
675%{_mandir}/man3/sd_seat_get_sessions.3*
676%{_mandir}/man3/sd_session_get_seat.3*
677%{_mandir}/man3/sd_session_get_uid.3*
678%{_mandir}/man3/sd_session_is_active.3*
679%{_mandir}/man3/sd_uid_get_seats.3*
680%{_mandir}/man3/sd_uid_get_sessions.3*
681%{_mandir}/man3/sd_uid_get_state.3*
682%{_mandir}/man3/sd_uid_is_on_seat.3*
5b9bde26
JB
683
684%files -n bash-completion-systemd
685%defattr(644,root,root,755)
391eea76 686/etc/bash_completion.d/systemd-bash-completion.sh
ae4d0acb
JR
687
688%files no-compat-tmpfiles
689%defattr(644,root,root,755)
690# empty package
This page took 0.204038 seconds and 4 git commands to generate.