systemd/systemd.spec

258 lines
8.3 KiB
RPMSpec
Raw Normal View History

2010-06-22 04:16:32 +00:00
Name: systemd
Url: http://www.freedesktop.org/wiki/Software/systemd
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
2010-07-24 00:51:34 +00:00
Version: 4
Release: 1%{?dist}
2010-06-22 04:16:32 +00:00
License: GPLv2+
Group: System Environment/Base
Summary: A System and Session Manager
2010-07-24 00:51:34 +00:00
BuildRequires: libudev-devel >= 160
2010-06-22 04:16:32 +00:00
BuildRequires: libcap-devel
BuildRequires: tcp_wrappers-devel
BuildRequires: pam-devel
BuildRequires: libxslt
BuildRequires: docbook-style-xsl
BuildRequires: dbus-glib-devel
2010-07-24 00:51:34 +00:00
BuildRequires: vala >= 0.9
2010-06-22 04:16:32 +00:00
BuildRequires: pkgconfig
BuildRequires: gtk2-devel
BuildRequires: automake
BuildRequires: autoconf
2010-06-22 16:39:21 +00:00
BuildRequires: libtool
2010-07-07 02:57:45 +00:00
Requires: systemd-units = %{version}-%{release}
2010-07-13 21:04:37 +00:00
Requires: dbus >= 1.3.2
Requires: udev >= 160
2010-07-22 00:29:20 +00:00
Requires: libudev >= 160
2010-06-22 04:16:32 +00:00
Requires: initscripts
2010-07-22 00:29:20 +00:00
Requires: selinux-policy >= 3.8.7
2010-07-09 03:15:49 +00:00
Source0: http://www.freedesktop.org/software/systemd/%{name}-%{version}.tar.bz2
2010-06-22 04:16:32 +00:00
%description
systemd is a system and session manager for Linux, compatible with
SysV and LSB init scripts. systemd provides aggressive parallelization
capabilities, uses socket and D-Bus activation for starting services,
offers on-demand starting of daemons, keeps track of processes using
Linux cgroups, supports snapshotting and restoring of the system
state, maintains mount and automount points and implements an
elaborate transactional dependency-based service control logic. It can
work as a drop-in replacement for sysvinit.
2010-06-29 01:55:15 +00:00
%package units
Group: System Environment/Base
Summary: Configuration files, directories and installation tool for systemd
2010-07-09 03:15:49 +00:00
Requires: pkgconfig
2010-06-29 01:55:15 +00:00
%description units
Basic configuration files, directories and installation tool for the systemd
system and session manager.
2010-06-22 04:16:32 +00:00
%package gtk
Group: System Environment/Base
Summary: Graphical frontend for systemd
Requires: %{name} = %{version}-%{release}
%description gtk
Graphical front-end for systemd.
%package sysvinit
Group: System Environment/Base
Summary: systemd System V init tools
Requires: %{name} = %{version}-%{release}
2010-06-29 01:55:15 +00:00
Obsoletes: SysVinit < 2.86-24, sysvinit < 2.86-24
Provides: SysVinit = 2.86-24, sysvinit = 2.86-24
2010-07-24 00:51:34 +00:00
Obsoletes: upstart < 0.6.5-6.fc14
Conflicts: upstart-sysvinit
# For now, require upstart installed, so that people can rely that
# they can emergency boot into upstart with init=/sbin/upstart
Requires: upstart >= 0.6.5-6.fc14
2010-06-22 04:16:32 +00:00
%description sysvinit
Drop-in replacement for the System V init tools of systemd.
%prep
2010-07-07 02:57:45 +00:00
%setup -q
2010-06-11 06:18:33 +00:00
2010-06-22 04:16:32 +00:00
%build
%configure --with-rootdir= --with-distro=fedora
2010-06-11 06:18:33 +00:00
make %{?_smp_mflags}
2010-06-22 04:16:32 +00:00
%install
rm -rf %{buildroot}
make DESTDIR=%{buildroot} install
find %{buildroot} \( -name '*.a' -o -name '*.la' \) -exec rm {} \;
2010-07-24 00:51:34 +00:00
# Create SysV compatibility symlinks. systemctl/systemd are smart
# enough to detect in which way they are called.
2010-06-22 04:16:32 +00:00
mkdir -p %{buildroot}/sbin
2010-07-09 03:15:49 +00:00
ln -s ../bin/systemd %{buildroot}/sbin/init
ln -s ../bin/systemctl %{buildroot}/sbin/reboot
ln -s ../bin/systemctl %{buildroot}/sbin/halt
ln -s ../bin/systemctl %{buildroot}/sbin/poweroff
ln -s ../bin/systemctl %{buildroot}/sbin/shutdown
ln -s ../bin/systemctl %{buildroot}/sbin/telinit
ln -s ../bin/systemctl %{buildroot}/sbin/runlevel
2010-06-22 04:16:32 +00:00
2010-07-24 00:51:34 +00:00
# We create all wants links manually at installation time to make sure
# they are not owned and hence overriden by rpm after the used deleted
# them.
rm -r %{buildroot}/etc/systemd/system/*.target.wants
# And the default symlink we generate automatically based on inittab
rm %{buildroot}/etc/systemd/system/default.target
2010-06-22 04:16:32 +00:00
%clean
rm -rf $RPM_BUILD_ROOT
2010-07-24 00:51:34 +00:00
%post units
if [ $1 -eq 1 ] ; then
# Try to read default runlevel from the old inittab if it exists
runlevel=$(/bin/awk -F ':' '$3 == "initdefault" && $1 !~ "^#" { print $2 }' /etc/inittab 2> /dev/null)
if [ -z "$runlevel" ] ; then
target="/lib/systemd/system/graphical.target"
else
target="/etc/systemd/system/runlevel$runlevel.target"
fi
# And symlink what we found to the new-style default.target
/bin/ln -sf "$target" /etc/systemd/system/default.target 2>&1 || :
# Enable the services we install by default.
/bin/systemctl enable \
getty@.service \
prefdm.service \
getty.target \
rc-local.service \
remote-fs.target 2>&1 || :
fi
%preun units
if [ $1 -eq 0 ] ; then
/bin/systemctl disable \
getty@.service \
prefdm.service \
getty.target \
rc-local.service \
remote-fs.target 2>&1 || :
/bin/rm -f /etc/systemd/system/default.target 2>&1 || :
fi
%postun units
if [ $1 -ge 1 ] ; then
/bin/systemctl daemon-reload 2>&1 || :
fi
2010-06-22 04:16:32 +00:00
%files
%defattr(-,root,root,-)
2010-06-22 16:33:20 +00:00
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.freedesktop.systemd1.conf
2010-06-22 04:16:32 +00:00
%{_sysconfdir}/rc.d/init.d/reboot
2010-07-24 00:51:34 +00:00
%dir %{_sysconfdir}/systemd/session
%{_sysconfdir}/xdg/systemd
2010-06-22 04:16:32 +00:00
/bin/systemd
/bin/systemd-notify
2010-06-29 01:55:15 +00:00
/lib/systemd/systemd-*
2010-06-22 04:16:32 +00:00
/lib/udev/rules.d/*.rules
2010-06-22 16:33:20 +00:00
/%{_lib}/security/pam_systemd.so
2010-07-09 03:15:49 +00:00
%{_bindir}/systemd-cgls
2010-06-29 01:55:15 +00:00
%{_mandir}/man1/systemd.*
%{_mandir}/man1/systemd-notify.*
2010-07-09 03:15:49 +00:00
%{_mandir}/man1/systemd-cgls.*
2010-06-29 01:55:15 +00:00
%{_mandir}/man3/*
%{_mandir}/man5/*
%{_mandir}/man7/*
%{_mandir}/man8/pam_systemd.*
2010-06-22 04:16:32 +00:00
%{_datadir}/systemd
2010-06-11 06:18:33 +00:00
%{_datadir}/dbus-1/services/org.freedesktop.systemd1.service
%{_datadir}/dbus-1/system-services/org.freedesktop.systemd1.service
2010-06-22 04:16:32 +00:00
%{_datadir}/dbus-1/interfaces/org.freedesktop.systemd1.*.xml
%{_docdir}/systemd
# Joint ownership with libcgroup
%dir /cgroup
2010-06-29 01:55:15 +00:00
%files units
%defattr(-,root,root,-)
2010-07-24 00:51:34 +00:00
%dir %{_sysconfdir}/systemd
%dir %{_sysconfdir}/systemd/system
%config(noreplace) %{_sysconfdir}/systemd/system.conf
%config(noreplace) %{_sysconfdir}/systemd/system/ctrl-alt-del.target
%config(noreplace) %{_sysconfdir}/systemd/system/display-manager.service
%config(noreplace) %{_sysconfdir}/systemd/system/kbrequest.target
%config(noreplace) %{_sysconfdir}/systemd/system/runlevel2.target
%config(noreplace) %{_sysconfdir}/systemd/system/runlevel3.target
%config(noreplace) %{_sysconfdir}/systemd/system/runlevel4.target
%config(noreplace) %{_sysconfdir}/systemd/system/runlevel5.target
2010-06-29 01:55:15 +00:00
%dir /lib/systemd
/lib/systemd/system
2010-07-24 00:51:34 +00:00
/bin/systemctl
%{_mandir}/man1/systemctl.*
2010-07-09 03:15:49 +00:00
%{_datadir}/pkgconfig/systemd.pc
%{_docdir}/systemd/LICENSE
2010-06-29 01:55:15 +00:00
2010-06-22 04:16:32 +00:00
%files gtk
%defattr(-,root,root,-)
%{_bindir}/systemadm
2010-06-29 01:55:15 +00:00
%{_mandir}/man1/systemadm.*
2010-06-22 04:16:32 +00:00
%files sysvinit
%defattr(-,root,root,-)
/sbin/init
/sbin/reboot
/sbin/halt
/sbin/poweroff
/sbin/shutdown
/sbin/telinit
/sbin/runlevel
2010-06-29 01:55:15 +00:00
%{_mandir}/man1/init.*
%{_mandir}/man8/halt.*
%{_mandir}/man8/reboot.*
%{_mandir}/man8/shutdown.*
%{_mandir}/man8/poweroff.*
%{_mandir}/man8/telinit.*
%{_mandir}/man8/runlevel.*
2010-06-22 04:16:32 +00:00
2010-06-11 06:18:33 +00:00
%changelog
2010-07-24 00:51:34 +00:00
* Sat Jul 24 2010 Lennart Poettering <lpoetter@redhat.com> - 4-1
- New upstream release, and make default
2010-07-13 21:29:25 +00:00
* Tue Jul 13 2010 Lennart Poettering <lennart@poettering.net> - 3-3
- Used wrong tarball
* Tue Jul 13 2010 Lennart Poettering <lennart@poettering.net> - 3-2
- Own /cgroup jointly with libcgroup, since we don't dpend on it anymore
2010-07-13 21:04:37 +00:00
* Tue Jul 13 2010 Lennart Poettering <lpoetter@redhat.com> - 3-1
- New upstream release
2010-07-09 03:15:49 +00:00
* Fri Jul 9 2010 Lennart Poettering <lpoetter@redhat.com> - 2-0
- New upstream release
2010-07-07 02:57:45 +00:00
* Wed Jul 7 2010 Lennart Poettering <lpoetter@redhat.com> - 1-0
- First upstream release
2010-06-29 02:24:07 +00:00
* Tue Jun 29 2010 Lennart Poettering <lpoetter@redhat.com> - 0-0.7.20100629git4176e5
2010-06-29 01:55:15 +00:00
- New snapshot
- Split off -units package where other packages can depend on without pulling in the whole of systemd
2010-06-22 16:39:21 +00:00
* Tue Jun 22 2010 Lennart Poettering <lpoetter@redhat.com> - 0-0.6.20100622gita3723b
- Add missing libtool dependency.
2010-06-22 16:33:20 +00:00
* Tue Jun 22 2010 Lennart Poettering <lpoetter@redhat.com> - 0-0.5.20100622gita3723b
2010-06-29 01:55:15 +00:00
- Update snapshot
2010-06-22 16:33:20 +00:00
* Mon Jun 14 2010 Rahul Sundaram <sundaram@fedoraproject.org> - 0-0.4.20100614git393024
- Pull the latest snapshot that fixes a segfault. Resolves rhbz#603231
2010-06-11 06:18:33 +00:00
* Thu Jun 11 2010 Rahul Sundaram <sundaram@fedoraproject.org> - 0-0.3.20100610git2f198e
- More minor fixes as per review
* Thu Jun 10 2010 Rahul Sundaram <sundaram@fedoraproject.org> - 0-0.2.20100610git2f198e
- Spec improvements from David Hollis
* Wed Jun 09 2010 Rahul Sundaram <sundaram@fedoraproject.org> - 0-0.1.20090609git2f198e
- Address review comments
2010-06-11 06:18:33 +00:00
* Tue Jun 01 2010 Rahul Sundaram <sundaram@fedoraproject.org> - 0-0.0.git2010-06-02
- Initial spec (adopted from Kay Sievers)