]> git.pld-linux.org Git - packages/systemd.git/blame - systemd.spec
- up to 19
[packages/systemd.git] / systemd.spec
CommitLineData
9c4bd736 1#
c3037397 2# Conditional build:
6c89bbd4
ER
3%bcond_with gtk # build gtk tools (needs devel libnotify>=0.7 and gtk+3)
4%bcond_without selinux # without SELinux support
5%bcond_without tcpd # libwrap (tcp_wrappers) support
6%bcond_without pam # PAM authentication support
7%bcond_without audit # without audit support
8%bcond_without cryptsetup # without cryptsetup support
9c0b975d 9
c3037397 10Summary: A System and Service Manager
ede8d3e5 11Summary(pl.UTF-8): systemd - zarządca systemu i usług dla Linuksa
12Name: systemd
7619c097 13Version: 19
ede8d3e5 14Release: 0.1
15License: GPL v2+
16Group: Base
17Source0: http://www.freedesktop.org/software/systemd/%{name}-%{version}.tar.bz2
7619c097
ER
18# Source0-md5: 32de12b132a2f6c270d422d682362a91
19Patch0: target-pld.patch
20Patch1: pld-port.patch
ede8d3e5 21URL: http://www.freedesktop.org/wiki/Software/systemd
6c89bbd4 22%{?with_audit:BuildRequires: audit-libs-devel}
ede8d3e5 23BuildRequires: autoconf
24BuildRequires: automake
6c89bbd4 25%{?with_crypt:BuildRequires: cryptsetup-luks-devel}
9c0b975d 26BuildRequires: dbus-devel
c3037397 27BuildRequires: docbook-style-xsl
4c5b5ab6 28%{?with_gtk:BuildRequires: gtk+3-devel}
b82d0bf2 29BuildRequires: libcap-devel
c3037397 30%{?with_gtk:BuildRequires: libnotify-devel >= 0.7}
6c89bbd4
ER
31%{?with_selinux:BuildRequires: libselinux-devel}
32BuildRequires: libtool >= 2:2.2
33%{?with_tcpd:BuildRequires: libwrap-devel}
c3037397 34BuildRequires: libxslt
6c89bbd4 35%{?with_pam:BuildRequires: pam-devel}
c3037397 36BuildRequires: pkgconfig
6c89bbd4 37BuildRequires: rpmbuild(macros) >= 1.527
ede8d3e5 38BuildRequires: udev-devel >= 160
eb2fda66 39BuildRequires: vala >= 0.11
c3037397
ER
40Requires: %{name}-units = %{version}-%{release}
41Requires: dbus >= 1.3.2
42Requires: rc-scripts
43Requires: udev-core >= 160
b8651d75 44Provides: SysVinit = 2.86-23
c3037397 45Provides: readahead = 1:1.5.7-3
1dcb74bb 46Provides: virtual(init-daemon)
c3037397
ER
47Obsoletes: SysVinit < 2.86-23
48Obsoletes: readahead < 1:1.5.7-3
1dcb74bb 49Obsoletes: virtual(init-daemon)
ede8d3e5 50BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
51
52%description
1c239f8b 53systemd is a system and service manager for Linux, compatible with
ede8d3e5 54SysV and LSB init scripts. systemd provides aggressive parallelization
55capabilities, uses socket and D-Bus activation for starting services,
56offers on-demand starting of daemons, keeps track of processes using
57Linux cgroups, supports snapshotting and restoring of the system
58state, maintains mount and automount points and implements an
59elaborate transactional dependency-based service control logic. It can
1c239f8b 60work as a drop-in replacement for sysvinit.
ede8d3e5 61
62%description -l pl.UTF-8
63systemd jest zarządcą systemu i usług dla Linuksa, kompatybilny ze
64skryptami SysV i LSB. systemd udostępnia rozbudowane zdolności
65paralelizacji, do uruchamiania usług używa socketów oraz D-Busa,
66oferuje uruchamianie usług na życzenie, monitoruje procesy używając
67linuksowych cgroups, wspomaga zapisywanie (snapshot) i odczytywanie
68(restore) stanu systemu, zarządza (auto)mount pointami oraz
69implementuje starannie opracowaną transakcjonalną, bazującą na
d45dfc3a 70zależnościach logikę kontroli usług. Może pracować jako zastępca dla
ede8d3e5 71sysvinit.
72
c3037397
ER
73%package units
74Summary: Configuration files, directories and installation tool for systemd
75Group: Base
76Requires: pkgconfig
77Requires(post): coreutils
78Requires(post): gawk
79
80%description units
81Basic configuration files, directories and installation tool for the
82systemd system and service manager.
83
84%package gtk
85Summary: Graphical frontend for systemd
86Group: Base
87Requires: %{name} = %{version}-%{release}
88Requires: polkit
89
90%description gtk
91Graphical front-end for systemd.
92
6c89bbd4
ER
93%package -n bash-completion-systemd
94Summary: bash-completion for systemd
95Group: Applications/Shells
96Requires: %{name}
97Requires: bash-completion
98
99%description -n bash-completion-systemd
100bash-completion for systemd.
101
ede8d3e5 102%prep
103%setup -q
4c5b5ab6 104%patch0 -p1
7619c097 105%patch1 -p1
ede8d3e5 106
107%build
4c5b5ab6 108%{__aclocal} -I m4
ede8d3e5 109%{__autoconf}
110%{__automake}
9c0b975d 111%configure \
6c89bbd4
ER
112 %{__enable_disable audit} \
113 %{__enable_disable cryptsetup libcryptsetup} \
114 %{__enable_disable gtk} \
115 %{__enable_disable pam} \
116 %{__enable_disable selinux} \
117 %{__enable_disable tcpd tcpwrap} \
118 --disable-silent-rules \
4c5b5ab6 119 --with-distro=pld \
e1d9cc15 120 --with-syslog-service=syslog-ng \
1dcb74bb 121 --with-rootdir=
e1d9cc15 122
ede8d3e5 123%{__make}
124
125%install
126rm -rf $RPM_BUILD_ROOT
ede8d3e5 127%{__make} install \
128 DESTDIR=$RPM_BUILD_ROOT
129
6c89bbd4 130find $RPM_BUILD_ROOT '(' -name '*.a' -o -name '*.la' ')' | xargs -r rm -v
c3037397
ER
131
132%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
133
134# no -devel (yet)
135rm -f $RPM_BUILD_ROOT%{_npkgconfigdir}/systemd.pc
136
137%if %{without gtk}
138# to shut up check-files
139rm -f $RPM_BUILD_ROOT%{_datadir}/polkit-1/actions/org.freedesktop.systemd1.policy
140rm -f $RPM_BUILD_ROOT%{_bindir}/systemadm
141rm -f $RPM_BUILD_ROOT%{_bindir}/systemd-gnome-ask-password-agent
142rm -f $RPM_BUILD_ROOT%{_datadir}/polkit-1/actions/org.freedesktop.systemd1.policy
143rm -f $RPM_BUILD_ROOT%{_mandir}/man1/systemadm.1*
144%endif
145
1dcb74bb 146# Create SysV compatibility symlinks. systemctl/systemd are smart
147# enough to detect in which way they are called.
148install -d $RPM_BUILD_ROOT/sbin
149ln -s ../bin/systemd $RPM_BUILD_ROOT/sbin/init
150ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/reboot
151ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/halt
152ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/poweroff
153ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/shutdown
154ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/telinit
155ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/runlevel
156
c3037397
ER
157# We create all wants links manually at installation time to make sure
158# they are not owned and hence overriden by rpm after the used deleted
159# them.
160rm -r $RPM_BUILD_ROOT%{_sysconfdir}/systemd/system/*.target.wants
161
ede8d3e5 162%clean
163rm -rf $RPM_BUILD_ROOT
164
9638c72f 165%post
166/bin/systemctl daemon-reexec > /dev/null 2>&1 || :
c3037397
ER
167
168%post units
169if [ $1 -ne 1 ]; then
170 exit 0
9638c72f 171fi
172
c3037397
ER
173# Try to read default runlevel from the old inittab if it exists
174runlevel=$(/bin/awk -F ':' '$3 == "initdefault" && $1 !~ "^#" { print $2 }' /etc/inittab 2> /dev/null)
175if [ -z "$runlevel" ] ; then
176 runlevel=3
9638c72f 177fi
c3037397
ER
178target="/lib/systemd/system/runlevel$runlevel.target"
179
180# And symlink what we found to the new-style default.target
181ln -sf "$target" %{_sysconfdir}/systemd/system/default.target > /dev/null 2>&1 || :
182#/bin/systemctl enable SERVICES > /dev/null 2>&1 || :
183
184%preun units
185if [ $1 -ne 0 ]; then
186 exit 0
187fi
188#/bin/systemctl disable SERVICES > /dev/null 2>&1 || :
189rm -f %{_sysconfdir}/systemd/system/default.target > /dev/null 2>&1 || :
9638c72f 190
191%postun
192if [ $1 -ge 1 ] ; then
193 /bin/systemctl daemon-reload > /dev/null 2>&1 || :
194fi
195
ede8d3e5 196%files
197%defattr(644,root,root,755)
1c239f8b 198%doc DISTRO_PORTING README TODO
c3037397
ER
199/etc/dbus-1/system.d/org.freedesktop.systemd1.conf
200%dir %{_sysconfdir}/systemd
201%{_sysconfdir}/tmpfiles.d/systemd.conf
202%{_sysconfdir}/tmpfiles.d/x11.conf
203%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/systemd/system.conf
204%dir /etc/xdg/systemd
205/etc/xdg/systemd/user
1dcb74bb 206%attr(755,root,root) /bin/systemd
207%attr(755,root,root) /bin/systemd-ask-password
1dcb74bb 208%attr(755,root,root) /bin/systemd-notify
209%attr(755,root,root) /bin/systemd-tty-ask-password-agent
c3037397
ER
210%attr(755,root,root) %{_bindir}/systemd-cgls
211%attr(755,root,root) /sbin/halt
212%attr(755,root,root) /sbin/init
213%attr(755,root,root) /sbin/poweroff
214%attr(755,root,root) /sbin/reboot
215%attr(755,root,root) /sbin/runlevel
216%attr(755,root,root) /sbin/shutdown
217%attr(755,root,root) /sbin/telinit
218%dir /lib/systemd
219/lib/systemd/systemd-*
220%dir /lib/systemd/system-generators
1c239f8b 221/lib/udev/rules.d/99-systemd.rules
c3037397 222%{_datadir}/dbus-1/interfaces/org.freedesktop.systemd1.*.xml
1c239f8b 223%{_datadir}/dbus-1/services/org.freedesktop.systemd1.service
224%{_datadir}/dbus-1/system-services/org.freedesktop.systemd1.service
c3037397 225%{_datadir}/systemd
1c239f8b 226%{_mandir}/man1/init.1
1c239f8b 227%{_mandir}/man1/systemd-cgls.1*
228%{_mandir}/man1/systemd-notify.1*
229%{_mandir}/man1/systemd.1*
230%{_mandir}/man3/sd_booted.3*
231%{_mandir}/man3/sd_is_fifo.3*
232%{_mandir}/man3/sd_is_socket.3
233%{_mandir}/man3/sd_is_socket_inet.3
234%{_mandir}/man3/sd_is_socket_unix.3
235%{_mandir}/man3/sd_listen_fds.3*
236%{_mandir}/man3/sd_notify.3*
237%{_mandir}/man3/sd_notifyf.3
238%{_mandir}/man3/sd_readahead.3*
239%{_mandir}/man5/hostname.5*
240%{_mandir}/man5/locale.conf.5*
241%{_mandir}/man5/modules-load.d.5*
242%{_mandir}/man5/os-release.5*
243%{_mandir}/man5/systemd.automount.5*
244%{_mandir}/man5/systemd.conf.5*
245%{_mandir}/man5/systemd.device.5*
246%{_mandir}/man5/systemd.exec.5*
247%{_mandir}/man5/systemd.mount.5*
248%{_mandir}/man5/systemd.path.5*
249%{_mandir}/man5/systemd.service.5*
250%{_mandir}/man5/systemd.snapshot.5*
251%{_mandir}/man5/systemd.socket.5*
252%{_mandir}/man5/systemd.swap.5*
253%{_mandir}/man5/systemd.target.5*
254%{_mandir}/man5/systemd.timer.5*
255%{_mandir}/man5/systemd.unit.5*
1c239f8b 256%{_mandir}/man5/vconsole.conf.5*
257%{_mandir}/man7/daemon.7*
258%{_mandir}/man7/sd-daemon.7*
259%{_mandir}/man7/sd-readahead.7*
260%{_mandir}/man7/systemd.special.7*
261%{_mandir}/man8/halt.8*
1c239f8b 262%{_mandir}/man8/poweroff.8
263%{_mandir}/man8/reboot.8
264%{_mandir}/man8/runlevel.8*
265%{_mandir}/man8/shutdown.8*
266%{_mandir}/man8/telinit.8*
c3037397 267
6c89bbd4
ER
268%if %{with cryptsetup}
269/lib/systemd/system-generators/systemd-cryptsetup-generator
270%endif
271
272%if %{with pam}
273%attr(755,root,root) /%{_lib}/security/pam_systemd.so
274%{_mandir}/man8/pam_systemd.8*
275%endif
276
c3037397
ER
277%files units
278%defattr(644,root,root,755)
279%dir %{_sysconfdir}/systemd
280%dir %{_sysconfdir}/systemd/system
281%dir %{_sysconfdir}/tmpfiles.d
282%dir /lib/systemd
283/lib/systemd/system
284%attr(755,root,root) /bin/systemctl
285%attr(755,root,root) /bin/systemd-tmpfiles
286%{_mandir}/man5/tmpfiles.d.5*
287%{_mandir}/man1/systemctl.1*
288%{_mandir}/man8/systemd-tmpfiles.8*
289
290%if %{with gtk}
291%files gtk
292%defattr(644,root,root,755)
293%attr(755,root,root) %{_bindir}/systemadm
294%attr(755,root,root) %{_bindir}/systemd-gnome-ask-password-agent
1c239f8b 295%{_datadir}/polkit-1/actions/org.freedesktop.systemd1.policy
c3037397
ER
296%{_mandir}/man1/systemadm.1*
297%endif
6c89bbd4
ER
298
299%files -n bash-completion-systemd
300%defattr(644,root,root,755)
301/etc/bash_completion.d/systemctl-bash-completion.sh
This page took 0.061104 seconds and 4 git commands to generate.