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