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