2 # - gtk BRs: libnotify 0.7 and gtk+3
3 # - subpackages: bash-autocompletion, dbus(?), gtk, others?
7 %bcond_with gtk # build gtk tools
9 Summary: A System and Service Manager
10 Summary(pl.UTF-8): systemd - zarządca systemu i usług dla Linuksa
16 Source0: http://www.freedesktop.org/software/systemd/%{name}-%{version}.tar.bz2
17 # Source0-md5: 42a47d6fa60b7f3fe92fa22027713b32
18 URL: http://www.freedesktop.org/wiki/Software/systemd
19 BuildRequires: audit-libs-devel
20 BuildRequires: autoconf
21 BuildRequires: automake
22 BuildRequires: cryptsetup-luks-devel
23 BuildRequires: dbus-devel
24 BuildRequires: docbook-style-xsl
25 BuildRequires: gtk+2-devel
26 BuildRequires: libcap-devel
27 %{?with_gtk:BuildRequires: libnotify-devel >= 0.7}
28 BuildRequires: libselinux-devel
29 BuildRequires: libtool
30 BuildRequires: libwrap-devel
31 BuildRequires: libxslt
32 BuildRequires: pam-devel
33 BuildRequires: pkgconfig
34 BuildRequires: udev-devel >= 160
35 BuildRequires: vala >= 0.11
36 Requires: %{name}-units = %{version}-%{release}
37 Requires: dbus >= 1.3.2
39 Requires: udev-core >= 160
40 Provides: SysVinit = 2.86-23
41 Provides: readahead = 1:1.5.7-3
42 Provides: virtual(init-daemon)
43 Obsoletes: SysVinit < 2.86-23
44 Obsoletes: readahead < 1:1.5.7-3
45 Obsoletes: virtual(init-daemon)
46 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49 systemd is a system and service manager for Linux, compatible with
50 SysV and LSB init scripts. systemd provides aggressive parallelization
51 capabilities, uses socket and D-Bus activation for starting services,
52 offers on-demand starting of daemons, keeps track of processes using
53 Linux cgroups, supports snapshotting and restoring of the system
54 state, maintains mount and automount points and implements an
55 elaborate transactional dependency-based service control logic. It can
56 work as a drop-in replacement for sysvinit.
58 %description -l pl.UTF-8
59 systemd jest zarządcą systemu i usług dla Linuksa, kompatybilny ze
60 skryptami SysV i LSB. systemd udostępnia rozbudowane zdolności
61 paralelizacji, do uruchamiania usług używa socketów oraz D-Busa,
62 oferuje uruchamianie usług na życzenie, monitoruje procesy używając
63 linuksowych cgroups, wspomaga zapisywanie (snapshot) i odczytywanie
64 (restore) stanu systemu, zarządza (auto)mount pointami oraz
65 implementuje starannie opracowaną transakcjonalną, bazującą na
66 zależnościach logikę kontroli usług. Może pracować jako zastępca dla
70 Summary: Configuration files, directories and installation tool for systemd
73 Requires(post): coreutils
77 Basic configuration files, directories and installation tool for the
78 systemd system and service manager.
81 Summary: Graphical frontend for systemd
83 Requires: %{name} = %{version}-%{release}
87 Graphical front-end for systemd.
97 --%{?with_gtk:en}%{!?with_gtk:dis}able-gtk \
98 --with-syslog-service=syslog-ng \
99 --with-sysvinit-path=/etc/rc.d/init.d \
100 --with-sysvrcd-path=/etc/rc.d \
106 rm -rf $RPM_BUILD_ROOT
108 DESTDIR=$RPM_BUILD_ROOT
110 find $RPM_BUILD_ROOT '(' -name '*.a' -o -name '*.la' ')' | xargs rm -v
112 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
115 rm -f $RPM_BUILD_ROOT%{_npkgconfigdir}/systemd.pc
118 # to shut up check-files
119 rm -f $RPM_BUILD_ROOT%{_datadir}/polkit-1/actions/org.freedesktop.systemd1.policy
120 rm -f $RPM_BUILD_ROOT%{_bindir}/systemadm
121 rm -f $RPM_BUILD_ROOT%{_bindir}/systemd-gnome-ask-password-agent
122 rm -f $RPM_BUILD_ROOT%{_datadir}/polkit-1/actions/org.freedesktop.systemd1.policy
123 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/systemadm.1*
126 # Create SysV compatibility symlinks. systemctl/systemd are smart
127 # enough to detect in which way they are called.
128 install -d $RPM_BUILD_ROOT/sbin
129 ln -s ../bin/systemd $RPM_BUILD_ROOT/sbin/init
130 ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/reboot
131 ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/halt
132 ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/poweroff
133 ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/shutdown
134 ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/telinit
135 ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/runlevel
137 # We create all wants links manually at installation time to make sure
138 # they are not owned and hence overriden by rpm after the used deleted
140 rm -r $RPM_BUILD_ROOT%{_sysconfdir}/systemd/system/*.target.wants
143 rm -rf $RPM_BUILD_ROOT
146 /bin/systemctl daemon-reexec > /dev/null 2>&1 || :
149 if [ $1 -ne 1 ]; then
153 # Try to read default runlevel from the old inittab if it exists
154 runlevel=$(/bin/awk -F ':' '$3 == "initdefault" && $1 !~ "^#" { print $2 }' /etc/inittab 2> /dev/null)
155 if [ -z "$runlevel" ] ; then
158 target="/lib/systemd/system/runlevel$runlevel.target"
160 # And symlink what we found to the new-style default.target
161 ln -sf "$target" %{_sysconfdir}/systemd/system/default.target > /dev/null 2>&1 || :
162 #/bin/systemctl enable SERVICES > /dev/null 2>&1 || :
165 if [ $1 -ne 0 ]; then
168 #/bin/systemctl disable SERVICES > /dev/null 2>&1 || :
169 rm -f %{_sysconfdir}/systemd/system/default.target > /dev/null 2>&1 || :
172 if [ $1 -ge 1 ] ; then
173 /bin/systemctl daemon-reload > /dev/null 2>&1 || :
177 %defattr(644,root,root,755)
178 %doc DISTRO_PORTING README TODO
179 /etc/dbus-1/system.d/org.freedesktop.systemd1.conf
180 %dir %{_sysconfdir}/systemd
181 %{_sysconfdir}/tmpfiles.d/systemd.conf
182 %{_sysconfdir}/tmpfiles.d/x11.conf
183 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/systemd/system.conf
184 %dir /etc/xdg/systemd
185 /etc/xdg/systemd/user
186 %attr(755,root,root) /bin/systemd
187 %attr(755,root,root) /bin/systemd-ask-password
188 %attr(755,root,root) /bin/systemd-notify
189 %attr(755,root,root) /bin/systemd-tty-ask-password-agent
190 %attr(755,root,root) %{_bindir}/systemd-cgls
191 %attr(755,root,root) /sbin/halt
192 %attr(755,root,root) /sbin/init
193 %attr(755,root,root) /sbin/poweroff
194 %attr(755,root,root) /sbin/reboot
195 %attr(755,root,root) /sbin/runlevel
196 %attr(755,root,root) /sbin/shutdown
197 %attr(755,root,root) /sbin/telinit
199 /lib/systemd/systemd-*
200 %dir /lib/systemd/system-generators
201 /lib/systemd/system-generators/systemd-cryptsetup-generator
202 /lib/udev/rules.d/99-systemd.rules
203 %attr(755,root,root) /%{_lib}/security/pam_systemd.so
204 %{_datadir}/dbus-1/interfaces/org.freedesktop.systemd1.*.xml
205 %{_datadir}/dbus-1/services/org.freedesktop.systemd1.service
206 %{_datadir}/dbus-1/system-services/org.freedesktop.systemd1.service
208 %{_mandir}/man1/init.1
209 %{_mandir}/man1/systemd-cgls.1*
210 %{_mandir}/man1/systemd-notify.1*
211 %{_mandir}/man1/systemd.1*
212 %{_mandir}/man3/sd_booted.3*
213 %{_mandir}/man3/sd_is_fifo.3*
214 %{_mandir}/man3/sd_is_socket.3
215 %{_mandir}/man3/sd_is_socket_inet.3
216 %{_mandir}/man3/sd_is_socket_unix.3
217 %{_mandir}/man3/sd_listen_fds.3*
218 %{_mandir}/man3/sd_notify.3*
219 %{_mandir}/man3/sd_notifyf.3
220 %{_mandir}/man3/sd_readahead.3*
221 %{_mandir}/man5/hostname.5*
222 %{_mandir}/man5/locale.conf.5*
223 %{_mandir}/man5/modules-load.d.5*
224 %{_mandir}/man5/os-release.5*
225 %{_mandir}/man5/systemd.automount.5*
226 %{_mandir}/man5/systemd.conf.5*
227 %{_mandir}/man5/systemd.device.5*
228 %{_mandir}/man5/systemd.exec.5*
229 %{_mandir}/man5/systemd.mount.5*
230 %{_mandir}/man5/systemd.path.5*
231 %{_mandir}/man5/systemd.service.5*
232 %{_mandir}/man5/systemd.snapshot.5*
233 %{_mandir}/man5/systemd.socket.5*
234 %{_mandir}/man5/systemd.swap.5*
235 %{_mandir}/man5/systemd.target.5*
236 %{_mandir}/man5/systemd.timer.5*
237 %{_mandir}/man5/systemd.unit.5*
238 %{_mandir}/man5/vconsole.conf.5*
239 %{_mandir}/man7/daemon.7*
240 %{_mandir}/man7/sd-daemon.7*
241 %{_mandir}/man7/sd-readahead.7*
242 %{_mandir}/man7/systemd.special.7*
243 %{_mandir}/man8/halt.8*
244 %{_mandir}/man8/pam_systemd.8*
245 %{_mandir}/man8/poweroff.8
246 %{_mandir}/man8/reboot.8
247 %{_mandir}/man8/runlevel.8*
248 %{_mandir}/man8/shutdown.8*
249 %{_mandir}/man8/telinit.8*
252 %defattr(644,root,root,755)
253 %dir %{_sysconfdir}/systemd
254 %dir %{_sysconfdir}/systemd/system
255 %dir %{_sysconfdir}/tmpfiles.d
258 %attr(755,root,root) /bin/systemctl
259 %attr(755,root,root) /bin/systemd-tmpfiles
260 %{_mandir}/man5/tmpfiles.d.5*
261 %{_mandir}/man1/systemctl.1*
262 %{_mandir}/man8/systemd-tmpfiles.8*
266 %defattr(644,root,root,755)
267 %attr(755,root,root) %{_bindir}/systemadm
268 %attr(755,root,root) %{_bindir}/systemd-gnome-ask-password-agent
269 %{_datadir}/polkit-1/actions/org.freedesktop.systemd1.policy
270 %{_mandir}/man1/systemadm.1*