]>
Commit | Line | Data |
---|---|---|
5d32f234 | 1 | # |
c3037397 | 2 | # Conditional build: |
6c89bbd4 ER |
3 | %bcond_without audit # without audit support |
4 | %bcond_without cryptsetup # without cryptsetup support | |
23107006 TP |
5 | %bcond_without gtk # build gtk tools |
6 | %bcond_without pam # PAM authentication support | |
7 | %bcond_without selinux # without SELinux support | |
8 | %bcond_without tcpd # libwrap (tcp_wrappers) support | |
9c0b975d | 9 | |
c3037397 | 10 | Summary: A System and Service Manager |
ede8d3e5 | 11 | Summary(pl.UTF-8): systemd - zarządca systemu i usług dla Linuksa |
12 | Name: systemd | |
961baf80 | 13 | Version: 37 |
4861f120 | 14 | Release: 3 |
ede8d3e5 | 15 | License: GPL v2+ |
16 | Group: Base | |
17 | Source0: http://www.freedesktop.org/software/systemd/%{name}-%{version}.tar.bz2 | |
961baf80 | 18 | # Source0-md5: 1435f23be79c8c38d1121c6b150510f3 |
4f25b6ac | 19 | Source1: %{name}-sysv-convert |
b77423ae | 20 | Source2: systemd_booted.c |
7619c097 | 21 | Patch0: target-pld.patch |
252e1bad | 22 | Patch1: config-pld.patch |
8e088cd5 | 23 | Patch2: shut-sysv-up.patch |
ede8d3e5 | 24 | URL: http://www.freedesktop.org/wiki/Software/systemd |
6c89bbd4 | 25 | %{?with_audit:BuildRequires: audit-libs-devel} |
6e34428f MB |
26 | BuildRequires: autoconf >= 2.63 |
27 | BuildRequires: automake >= 1:1.11 | |
28 | %{?with_cryptsetup:BuildRequires: cryptsetup-luks-devel} | |
23107006 | 29 | BuildRequires: dbus-devel >= 1.3.2 |
c3037397 | 30 | BuildRequires: docbook-style-xsl |
23107006 TP |
31 | %if %{with gtk} |
32 | BuildRequires: glib2-devel >= 1:2.26.1 | |
33 | BuildRequires: gtk+2-devel >= 2:2.24.0 | |
34 | BuildRequires: libnotify-devel >= 0.7.0 | |
35 | %endif | |
3fc7a1cc | 36 | BuildRequires: gperf |
b82d0bf2 | 37 | BuildRequires: libcap-devel |
6c89bbd4 ER |
38 | %{?with_selinux:BuildRequires: libselinux-devel} |
39 | BuildRequires: libtool >= 2:2.2 | |
40 | %{?with_tcpd:BuildRequires: libwrap-devel} | |
6e34428f | 41 | BuildRequires: libxslt-progs |
961baf80 | 42 | BuildRequires: m4 |
6c89bbd4 | 43 | %{?with_pam:BuildRequires: pam-devel} |
23107006 | 44 | BuildRequires: pkgconfig >= 0.9.0 |
6c89bbd4 | 45 | BuildRequires: rpmbuild(macros) >= 1.527 |
de86bd7f | 46 | BuildRequires: udev-devel >= 172 |
6e34428f | 47 | BuildRequires: vala >= 0.10.0 |
011bccb6 | 48 | Requires: %{name}-libs = %{version}-%{release} |
c3037397 | 49 | Requires: %{name}-units = %{version}-%{release} |
2ff27c26 | 50 | Requires: SysVinit-tools |
37b8df82 | 51 | Requires: agetty |
c3037397 | 52 | Requires: dbus >= 1.3.2 |
2ff27c26 | 53 | Requires: dbus-systemd |
ea96631d | 54 | Requires: filesystem >= 4.0 |
c3037397 | 55 | Requires: rc-scripts |
56701781 | 56 | Requires: setup >= 2.8.0-2 |
fe6ae5ab AF |
57 | Requires: udev-core >= 1:172 |
58 | Requires: udev-systemd >= 1:172 | |
59 | Requires: udev-libs >= 1:172 | |
c28b0c1c | 60 | Suggests: ConsoleKit-systemd |
2a61be78 TP |
61 | Suggests: fsck >= 2.20 |
62 | # python modules required by systemd-analyze | |
63 | Suggests: python-dbus | |
64 | Suggests: python-modules | |
c28b0c1c | 65 | Suggests: rsyslog-systemd |
fda563d5 | 66 | Provides: udev-acl |
ede8d3e5 | 67 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
68 | ||
85879912 ER |
69 | %define _libexecdir %{_prefix}/lib |
70 | ||
ede8d3e5 | 71 | %description |
1c239f8b | 72 | systemd is a system and service manager for Linux, compatible with |
ede8d3e5 | 73 | SysV and LSB init scripts. systemd provides aggressive parallelization |
74 | capabilities, uses socket and D-Bus activation for starting services, | |
75 | offers on-demand starting of daemons, keeps track of processes using | |
76 | Linux cgroups, supports snapshotting and restoring of the system | |
77 | state, maintains mount and automount points and implements an | |
78 | elaborate transactional dependency-based service control logic. It can | |
1c239f8b | 79 | work as a drop-in replacement for sysvinit. |
ede8d3e5 | 80 | |
81 | %description -l pl.UTF-8 | |
82 | systemd jest zarządcą systemu i usług dla Linuksa, kompatybilny ze | |
83 | skryptami SysV i LSB. systemd udostępnia rozbudowane zdolności | |
84 | paralelizacji, do uruchamiania usług używa socketów oraz D-Busa, | |
85 | oferuje uruchamianie usług na życzenie, monitoruje procesy używając | |
86 | linuksowych cgroups, wspomaga zapisywanie (snapshot) i odczytywanie | |
87 | (restore) stanu systemu, zarządza (auto)mount pointami oraz | |
88 | implementuje starannie opracowaną transakcjonalną, bazującą na | |
d45dfc3a | 89 | zależnościach logikę kontroli usług. Może pracować jako zastępca dla |
ede8d3e5 | 90 | sysvinit. |
91 | ||
c97dacdd TP |
92 | %package init |
93 | Summary: systemd /sbin/init and LSB/SysV compatibility symlinks | |
94 | Group: Base | |
d6829efa | 95 | Requires: systemd |
c97dacdd TP |
96 | Provides: readahead = 1:1.5.7-3 |
97 | Provides: virtual(init-daemon) | |
98 | Obsoletes: SysVinit | |
99 | Obsoletes: readahead < 1:1.5.7-3 | |
100 | Obsoletes: virtual(init-daemon) | |
101 | ||
102 | %description init | |
103 | Install this package when you are ready to final switch to systemd. | |
104 | ||
c3037397 ER |
105 | %package units |
106 | Summary: Configuration files, directories and installation tool for systemd | |
107 | Group: Base | |
c3037397 ER |
108 | Requires(post): coreutils |
109 | Requires(post): gawk | |
961baf80 | 110 | Requires: pkgconfig |
c3037397 ER |
111 | |
112 | %description units | |
113 | Basic configuration files, directories and installation tool for the | |
114 | systemd system and service manager. | |
115 | ||
f341cd9b | 116 | This is common config, use %{_sysconfdir}/systemd/system to override. |
10ffdcd2 | 117 | |
c3037397 ER |
118 | %package gtk |
119 | Summary: Graphical frontend for systemd | |
120 | Group: Base | |
121 | Requires: %{name} = %{version}-%{release} | |
122 | Requires: polkit | |
123 | ||
124 | %description gtk | |
125 | Graphical front-end for systemd. | |
126 | ||
6c89bbd4 ER |
127 | %package -n bash-completion-systemd |
128 | Summary: bash-completion for systemd | |
129 | Group: Applications/Shells | |
130 | Requires: %{name} | |
131 | Requires: bash-completion | |
132 | ||
133 | %description -n bash-completion-systemd | |
134 | bash-completion for systemd. | |
135 | ||
011bccb6 BZ |
136 | %package libs |
137 | Summary: Shared systemd library | |
138 | Group: Libraries | |
139 | ||
140 | %description libs | |
141 | Shared systemd library. | |
142 | ||
961baf80 AF |
143 | %package devel |
144 | Summary: Header files for systemd libraries | |
145 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek systemd | |
146 | Group: Development/Libraries | |
011bccb6 | 147 | Requires: %{name}-libs = %{version}-%{release} |
961baf80 AF |
148 | |
149 | %description devel | |
150 | Header files for systemd libraries. | |
151 | ||
152 | %description devel -l pl.UTF-8 | |
153 | Pliki nagłówkowe bibliotek systemd. | |
154 | ||
ede8d3e5 | 155 | %prep |
156 | %setup -q | |
4c5b5ab6 | 157 | %patch0 -p1 |
252e1bad | 158 | %patch1 -p1 |
8e088cd5 | 159 | %patch2 -p1 |
b77423ae | 160 | cp -p %{SOURCE2} src/systemd_booted.c |
ede8d3e5 | 161 | |
162 | %build | |
4c5b5ab6 | 163 | %{__aclocal} -I m4 |
ede8d3e5 | 164 | %{__autoconf} |
6e34428f | 165 | %{__autoheader} |
ede8d3e5 | 166 | %{__automake} |
9c0b975d | 167 | %configure \ |
6c89bbd4 ER |
168 | %{__enable_disable audit} \ |
169 | %{__enable_disable cryptsetup libcryptsetup} \ | |
170 | %{__enable_disable gtk} \ | |
171 | %{__enable_disable pam} \ | |
172 | %{__enable_disable selinux} \ | |
173 | %{__enable_disable tcpd tcpwrap} \ | |
174 | --disable-silent-rules \ | |
961baf80 | 175 | --disable-static \ |
1dcb74bb | 176 | --with-rootdir= |
e1d9cc15 | 177 | |
ede8d3e5 | 178 | %{__make} |
b77423ae | 179 | ./libtool --mode=link --tag=CC %{__cc} %{rpmcppflags} %{rpmcflags} -o systemd_booted %{rpmldflags} src/systemd_booted.c -L. -lsystemd-daemon |
ede8d3e5 | 180 | |
181 | %install | |
182 | rm -rf $RPM_BUILD_ROOT | |
23107006 | 183 | |
ede8d3e5 | 184 | %{__make} install \ |
185 | DESTDIR=$RPM_BUILD_ROOT | |
186 | ||
b77423ae AF |
187 | ./libtool --mode=install install -m755 systemd_booted $RPM_BUILD_ROOT/bin/systemd_booted |
188 | ||
8a981770 ER |
189 | for lib in libsystemd-daemon libsystemd-login; do |
190 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/$lib.so.*,/%{_lib}} | |
89d58574 | 191 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/$lib.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/$lib.so |
8a981770 | 192 | done |
23107006 | 193 | |
1dcb74bb | 194 | # Create SysV compatibility symlinks. systemctl/systemd are smart |
2a61be78 | 195 | # enough to detect the way they were called |
c28b0c1c | 196 | install -d $RPM_BUILD_ROOT/sbin |
1dcb74bb | 197 | ln -s ../bin/systemd $RPM_BUILD_ROOT/sbin/init |
1dcb74bb | 198 | ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/halt |
199 | ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/poweroff | |
23107006 TP |
200 | ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/reboot |
201 | ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/runlevel | |
1dcb74bb | 202 | ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/shutdown |
203 | ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/telinit | |
1dcb74bb | 204 | |
5d32f234 | 205 | ln -s ../modules $RPM_BUILD_ROOT%{_sysconfdir}/modules-load.d/modules.conf |
5a65c84e | 206 | ln -s /dev/null $RPM_BUILD_ROOT/lib/systemd/system/random.service |
5d32f234 | 207 | |
2a61be78 TP |
208 | # All wants links are created at %post to make sure they are not owned |
209 | # and hence overriden by rpm if the user deletes them (missingok?) | |
23107006 | 210 | %{__rm} -r $RPM_BUILD_ROOT%{_sysconfdir}/systemd/system/*.target.wants |
c3037397 | 211 | |
89d58574 TP |
212 | # do not cover /media (system-specific removable mountpoints) for now |
213 | # needs %post code to convert existing /media structure to tmpfiles | |
5a65c84e | 214 | %{__rm} $RPM_BUILD_ROOT/lib/systemd/system/local-fs.target.wants/media.mount |
89d58574 | 215 | # do not cover /var/run until packages need rpm-provided-only subdirectories |
5a65c84e | 216 | %{__rm} $RPM_BUILD_ROOT/lib/systemd/system/local-fs.target.wants/var-run.mount |
3edd52a6 | 217 | |
2a61be78 TP |
218 | # Make sure these directories are properly owned: |
219 | # - halt,kexec,poweroff,reboot: generic ones used by ConsoleKit-systemd, | |
220 | # - syslog _might_ be used by some syslog implementation (none for now), | |
221 | # - isn't dbus populated by dbus-systemd only (so to be moved there)? | |
d6829efa | 222 | install -d $RPM_BUILD_ROOT/lib/systemd/system/{dbus,halt,kexec,poweroff,reboot,syslog}.target.wants |
961baf80 AF |
223 | |
224 | # Create new-style configuration files so that we can ghost-own them | |
23107006 | 225 | touch $RPM_BUILD_ROOT%{_sysconfdir}/{hostname,locale.conf,machine-id,machine-info,os-release,timezone,vconsole.conf} |
4bbef33c | 226 | |
9d8b5dfe | 227 | # Install SysV conversion tool for systemd |
4f25b6ac | 228 | install -p %{SOURCE1} $RPM_BUILD_ROOT%{_bindir} |
9d8b5dfe BZ |
229 | |
230 | install -d $RPM_BUILD_ROOT/var/log | |
5a65c84e TP |
231 | :> $RPM_BUILD_ROOT/var/log/btmp |
232 | :> $RPM_BUILD_ROOT/var/log/wtmp | |
a761f93e | 233 | |
5d32f234 | 234 | %if %{without gtk} |
5d32f234 TP |
235 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/systemadm.1* |
236 | %endif | |
237 | ||
238 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} | |
239 | %{__rm} $RPM_BUILD_ROOT/%{_lib}/security/pam_systemd.la | |
240 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
241 | ||
ede8d3e5 | 242 | %clean |
243 | rm -rf $RPM_BUILD_ROOT | |
244 | ||
9638c72f | 245 | %post |
4bbef33c | 246 | /bin/systemd-machine-id-setup > /dev/null 2>&1 || : |
9638c72f | 247 | /bin/systemctl daemon-reexec > /dev/null 2>&1 || : |
c3037397 | 248 | |
961baf80 | 249 | %postun |
85879912 | 250 | if [ $1 -ge 1 ]; then |
961baf80 | 251 | /bin/systemctl try-restart systemd-logind.service >/dev/null 2>&1 || : |
9638c72f | 252 | fi |
253 | ||
3edd52a6 TP |
254 | %post libs -p /sbin/ldconfig |
255 | %postun libs -p /sbin/ldconfig | |
011bccb6 | 256 | |
961baf80 | 257 | %post units |
85879912 | 258 | if [ $1 -eq 1 ]; then |
961baf80 AF |
259 | # Try to read default runlevel from the old inittab if it exists |
260 | runlevel=$(/bin/awk -F ':' '$3 == "initdefault" && $1 !~ "^#" { print $2 }' /etc/inittab 2> /dev/null) | |
261 | if [ -z "$runlevel" ] ; then | |
262 | target="/lib/systemd/system/graphical.target" | |
263 | else | |
264 | target="/lib/systemd/system/runlevel$runlevel.target" | |
265 | fi | |
266 | ||
267 | # And symlink what we found to the new-style default.target | |
f341cd9b | 268 | ln -s "$target" %{_sysconfdir}/systemd/system/default.target >/dev/null 2>&1 || : |
85879912 | 269 | |
961baf80 AF |
270 | # Enable the services we install by default. |
271 | /bin/systemctl enable \ | |
272 | getty@.service \ | |
273 | remote-fs.target \ | |
274 | systemd-readahead-replay.service \ | |
275 | systemd-readahead-collect.service >/dev/null 2>&1 || : | |
9638c72f | 276 | fi |
c3037397 ER |
277 | |
278 | %preun units | |
961baf80 AF |
279 | if [ $1 -eq 0 ] ; then |
280 | /bin/systemctl disable \ | |
281 | getty@.service \ | |
282 | remote-fs.target \ | |
283 | systemd-readahead-replay.service \ | |
284 | systemd-readahead-collect.service >/dev/null 2>&1 || : | |
285 | ||
f341cd9b | 286 | %{__rm} -f %{_sysconfdir}/systemd/system/default.target >/dev/null 2>&1 || : |
c3037397 | 287 | fi |
9638c72f | 288 | |
961baf80 | 289 | %postun units |
85879912 | 290 | if [ $1 -ge 1 ]; then |
9638c72f | 291 | /bin/systemctl daemon-reload > /dev/null 2>&1 || : |
292 | fi | |
293 | ||
ede8d3e5 | 294 | %files |
295 | %defattr(644,root,root,755) | |
1c239f8b | 296 | %doc DISTRO_PORTING README TODO |
6e34428f | 297 | /etc/dbus-1/system.d/org.freedesktop.hostname1.conf |
961baf80 AF |
298 | /etc/dbus-1/system.d/org.freedesktop.locale1.conf |
299 | /etc/dbus-1/system.d/org.freedesktop.login1.conf | |
c3037397 | 300 | /etc/dbus-1/system.d/org.freedesktop.systemd1.conf |
961baf80 | 301 | /etc/dbus-1/system.d/org.freedesktop.timedate1.conf |
3edd52a6 | 302 | %ghost %config(noreplace) %{_sysconfdir}/machine-id |
b77423ae AF |
303 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/hostname |
304 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/locale.conf | |
305 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/machine-info | |
306 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/os-release | |
307 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/timezone | |
308 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vconsole.conf | |
5d32f234 | 309 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/systemd/*.conf |
2a61be78 | 310 | %dir %{_sysconfdir}/systemd/user |
abd479ee | 311 | /etc/xdg/systemd |
1dcb74bb | 312 | %attr(755,root,root) /bin/systemd |
313 | %attr(755,root,root) /bin/systemd-ask-password | |
961baf80 | 314 | %attr(755,root,root) /bin/systemd-loginctl |
7a76bc86 | 315 | %attr(755,root,root) /bin/systemd-machine-id-setup |
1dcb74bb | 316 | %attr(755,root,root) /bin/systemd-notify |
317 | %attr(755,root,root) /bin/systemd-tty-ask-password-agent | |
57cd0d13 | 318 | %attr(755,root,root) %{_bindir}/systemd-analyze |
23107006 | 319 | %attr(755,root,root) %{_bindir}/systemd-cgls |
57cd0d13 ZU |
320 | %attr(755,root,root) %{_bindir}/systemd-nspawn |
321 | %attr(755,root,root) %{_bindir}/systemd-stdio-bridge | |
2a61be78 | 322 | %attr(755,root,root) %{_bindir}/systemd-sysv-convert |
abd479ee | 323 | %attr(755,root,root) /lib/systemd/systemd-* |
c3037397 | 324 | %dir /lib/systemd/system-generators |
5d32f234 | 325 | %attr(755,root,root) /lib/systemd/system-generators/systemd-*-generator |
abd479ee | 326 | %dir /lib/systemd/system-shutdown |
1c239f8b | 327 | /lib/udev/rules.d/99-systemd.rules |
961baf80 AF |
328 | /lib/udev/rules.d/70-uaccess.rules |
329 | /lib/udev/rules.d/71-seat.rules | |
330 | /lib/udev/rules.d/73-seat-late.rules | |
3edd52a6 TP |
331 | %dir %{_libexecdir}/systemd |
332 | %{_libexecdir}/systemd/user | |
2a61be78 | 333 | %dir %{_libexecdir}/systemd/user-generators |
89d58574 | 334 | %config(noreplace,missingok) %{_libexecdir}/tmpfiles.d/*.conf |
961baf80 AF |
335 | %{_datadir}/dbus-1/interfaces/org.freedesktop.hostname1.xml |
336 | %{_datadir}/dbus-1/interfaces/org.freedesktop.locale1.xml | |
c3037397 | 337 | %{_datadir}/dbus-1/interfaces/org.freedesktop.systemd1.*.xml |
961baf80 | 338 | %{_datadir}/dbus-1/interfaces/org.freedesktop.timedate1.xml |
1c239f8b | 339 | %{_datadir}/dbus-1/services/org.freedesktop.systemd1.service |
6e34428f | 340 | %{_datadir}/dbus-1/system-services/org.freedesktop.hostname1.service |
961baf80 AF |
341 | %{_datadir}/dbus-1/system-services/org.freedesktop.locale1.service |
342 | %{_datadir}/dbus-1/system-services/org.freedesktop.login1.service | |
1c239f8b | 343 | %{_datadir}/dbus-1/system-services/org.freedesktop.systemd1.service |
961baf80 | 344 | %{_datadir}/dbus-1/system-services/org.freedesktop.timedate1.service |
6e34428f | 345 | %{_datadir}/polkit-1/actions/org.freedesktop.hostname1.policy |
961baf80 AF |
346 | %{_datadir}/polkit-1/actions/org.freedesktop.locale1.policy |
347 | %{_datadir}/polkit-1/actions/org.freedesktop.login1.policy | |
348 | %{_datadir}/polkit-1/actions/org.freedesktop.systemd1.policy | |
349 | %{_datadir}/polkit-1/actions/org.freedesktop.timedate1.policy | |
350 | %dir %{_datadir}/systemd | |
351 | %{_datadir}/systemd/kbd-model-map | |
7a76bc86 | 352 | %{_mandir}/man1/systemd.1* |
2a61be78 | 353 | %{_mandir}/man1/systemd-*.1* |
1c239f8b | 354 | %{_mandir}/man3/sd_booted.3* |
355 | %{_mandir}/man3/sd_is_fifo.3* | |
356 | %{_mandir}/man3/sd_is_socket.3 | |
357 | %{_mandir}/man3/sd_is_socket_inet.3 | |
358 | %{_mandir}/man3/sd_is_socket_unix.3 | |
359 | %{_mandir}/man3/sd_listen_fds.3* | |
360 | %{_mandir}/man3/sd_notify.3* | |
361 | %{_mandir}/man3/sd_notifyf.3 | |
362 | %{_mandir}/man3/sd_readahead.3* | |
6e34428f | 363 | %{_mandir}/man5/binfmt.d.5* |
1c239f8b | 364 | %{_mandir}/man5/hostname.5* |
365 | %{_mandir}/man5/locale.conf.5* | |
7a76bc86 | 366 | %{_mandir}/man5/machine-id.5* |
6e34428f | 367 | %{_mandir}/man5/machine-info.5* |
1c239f8b | 368 | %{_mandir}/man5/modules-load.d.5* |
369 | %{_mandir}/man5/os-release.5* | |
6e34428f | 370 | %{_mandir}/man5/sysctl.d.5* |
89d58574 | 371 | %{_mandir}/man5/systemd.*.5* |
961baf80 AF |
372 | %{_mandir}/man5/systemd-logind.conf.5* |
373 | %{_mandir}/man5/timezone.5* | |
23107006 | 374 | %{_mandir}/man5/vconsole.conf.5* |
1c239f8b | 375 | %{_mandir}/man7/daemon.7* |
376 | %{_mandir}/man7/sd-daemon.7* | |
377 | %{_mandir}/man7/sd-readahead.7* | |
378 | %{_mandir}/man7/systemd.special.7* | |
a761f93e TP |
379 | %attr(640,root,root) %ghost /var/log/btmp |
380 | %attr(664,root,utmp) %ghost /var/log/wtmp | |
c3037397 | 381 | |
6c89bbd4 ER |
382 | %if %{with pam} |
383 | %attr(755,root,root) /%{_lib}/security/pam_systemd.so | |
384 | %{_mandir}/man8/pam_systemd.8* | |
385 | %endif | |
386 | ||
c97dacdd TP |
387 | %files init |
388 | %attr(755,root,root) /sbin/halt | |
389 | %attr(755,root,root) /sbin/init | |
390 | %attr(755,root,root) /sbin/poweroff | |
391 | %attr(755,root,root) /sbin/reboot | |
392 | %attr(755,root,root) /sbin/runlevel | |
393 | %attr(755,root,root) /sbin/shutdown | |
394 | %attr(755,root,root) /sbin/telinit | |
395 | %{_mandir}/man1/init.1 | |
396 | %{_mandir}/man8/halt.8* | |
397 | %{_mandir}/man8/poweroff.8 | |
398 | %{_mandir}/man8/reboot.8 | |
399 | %{_mandir}/man8/runlevel.8* | |
400 | %{_mandir}/man8/shutdown.8* | |
401 | %{_mandir}/man8/telinit.8* | |
402 | ||
011bccb6 BZ |
403 | %files libs |
404 | %defattr(644,root,root,755) | |
405 | %attr(755,root,root) /%{_lib}/libsystemd-daemon.so.*.*.* | |
406 | %attr(755,root,root) %ghost /%{_lib}/libsystemd-daemon.so.0 | |
407 | %attr(755,root,root) /%{_lib}/libsystemd-login.so.*.*.* | |
408 | %attr(755,root,root) %ghost /%{_lib}/libsystemd-login.so.0 | |
409 | ||
c3037397 ER |
410 | %files units |
411 | %defattr(644,root,root,755) | |
abd479ee MB |
412 | %dir %{_sysconfdir}/binfmt.d |
413 | %dir %{_sysconfdir}/modules-load.d | |
5d32f234 | 414 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/modules-load.d/modules.conf |
abd479ee | 415 | %dir %{_sysconfdir}/sysctl.d |
c3037397 ER |
416 | %dir %{_sysconfdir}/systemd |
417 | %dir %{_sysconfdir}/systemd/system | |
418 | %dir %{_sysconfdir}/tmpfiles.d | |
85879912 ER |
419 | %dir %{_libexecdir}/binfmt.d |
420 | %dir %{_libexecdir}/modules-load.d | |
421 | %dir %{_libexecdir}/sysctl.d | |
c3037397 ER |
422 | %attr(755,root,root) /bin/systemctl |
423 | %attr(755,root,root) /bin/systemd-tmpfiles | |
b77423ae | 424 | %attr(755,root,root) /bin/systemd_booted |
c3037397 | 425 | %{_mandir}/man1/systemctl.1* |
89d58574 | 426 | %{_mandir}/man5/tmpfiles.d.5* |
c3037397 | 427 | %{_mandir}/man8/systemd-tmpfiles.8* |
961baf80 | 428 | %{_npkgconfigdir}/systemd.pc |
c3037397 | 429 | |
10ffdcd2 BZ |
430 | /lib/systemd/system/*.automount |
431 | /lib/systemd/system/*.mount | |
432 | /lib/systemd/system/*.path | |
433 | /lib/systemd/system/*.service | |
434 | /lib/systemd/system/*.socket | |
435 | /lib/systemd/system/*.target | |
436 | /lib/systemd/system/*.timer | |
4861f120 AF |
437 | %dir /lib/systemd/system/*.wants |
438 | %config(noreplace,missingok) /lib/systemd/system/*.wants/* | |
10ffdcd2 | 439 | |
c3037397 ER |
440 | %if %{with gtk} |
441 | %files gtk | |
442 | %defattr(644,root,root,755) | |
443 | %attr(755,root,root) %{_bindir}/systemadm | |
444 | %attr(755,root,root) %{_bindir}/systemd-gnome-ask-password-agent | |
c3037397 ER |
445 | %{_mandir}/man1/systemadm.1* |
446 | %endif | |
6c89bbd4 ER |
447 | |
448 | %files -n bash-completion-systemd | |
449 | %defattr(644,root,root,755) | |
450 | /etc/bash_completion.d/systemctl-bash-completion.sh | |
961baf80 AF |
451 | |
452 | %files devel | |
453 | %defattr(644,root,root,755) | |
2a61be78 | 454 | %{_includedir}/%{name} |
89d58574 TP |
455 | %attr(755,root,root) %{_libdir}/libsystemd-daemon.so |
456 | %attr(755,root,root) %{_libdir}/libsystemd-login.so | |
961baf80 AF |
457 | %{_pkgconfigdir}/libsystemd-daemon.pc |
458 | %{_pkgconfigdir}/libsystemd-login.pc |