Lennart Poettering cc49ef
Name:           systemd
Lennart Poettering cc49ef
Url:            http://www.freedesktop.org/wiki/Software/systemd
Lennart Poettering cc49ef
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Lennart Poettering 6f4060
Version:        8
Lennart Poettering d007df
Release:        2%{?dist}
Lennart Poettering cc49ef
License:        GPLv2+
Lennart Poettering cc49ef
Group:          System Environment/Base
Lennart Poettering cc49ef
Summary:        A System and Session Manager
Lennart Poettering 25a5a1
BuildRequires:  libudev-devel >= 160
Lennart Poettering cc49ef
BuildRequires:  libcap-devel
Lennart Poettering cc49ef
BuildRequires:  tcp_wrappers-devel
Lennart Poettering cc49ef
BuildRequires:  pam-devel
Lennart Poettering 7f4dce
BuildRequires:  libselinux-devel
Lennart Poettering cc49ef
BuildRequires:  libxslt
Lennart Poettering cc49ef
BuildRequires:  docbook-style-xsl
Lennart Poettering cc49ef
BuildRequires:  dbus-glib-devel
Lennart Poettering 25a5a1
BuildRequires:  vala >= 0.9
Lennart Poettering cc49ef
BuildRequires:  pkgconfig
Lennart Poettering cc49ef
BuildRequires:  gtk2-devel
Lennart Poettering cc49ef
BuildRequires:  automake
Lennart Poettering cc49ef
BuildRequires:  autoconf
Lennart Poettering 1a8865
BuildRequires:  libtool
Lennart Poettering fdaca2
Requires:       systemd-units = %{version}-%{release}
Lennart Poettering b93a36
Requires:       dbus >= 1.3.2
Lennart Poettering b93a36
Requires:       udev >= 160
Lennart Poettering aee139
Requires:       libudev >= 160
Lennart Poettering cc49ef
Requires:       initscripts
Lennart Poettering aee139
Requires:       selinux-policy >= 3.8.7
Lennart Poettering 6f4060
Requires:       kernel >= 2.6.35.2-9.fc14
Lennart Poettering 5a28ec
Source0:        http://www.freedesktop.org/software/systemd/%{name}-%{version}.tar.bz2
Lennart Poettering cc49ef
Lennart Poettering cc49ef
%description
Lennart Poettering cc49ef
systemd is a system and session manager for Linux, compatible with
Lennart Poettering cc49ef
SysV and LSB init scripts. systemd provides aggressive parallelization
Lennart Poettering cc49ef
capabilities, uses socket and D-Bus activation for starting services,
Lennart Poettering cc49ef
offers on-demand starting of daemons, keeps track of processes using
Lennart Poettering cc49ef
Linux cgroups, supports snapshotting and restoring of the system
Lennart Poettering cc49ef
state, maintains mount and automount points and implements an
Lennart Poettering cc49ef
elaborate transactional dependency-based service control logic. It can
Lennart Poettering cc49ef
work as a drop-in replacement for sysvinit.
Lennart Poettering cc49ef
Lennart Poettering 4372ad
%package units
Lennart Poettering 4372ad
Group:          System Environment/Base
Lennart Poettering 4372ad
Summary:        Configuration files, directories and installation tool for systemd
Lennart Poettering 5a28ec
Requires:       pkgconfig
Lennart Poettering 87df68
Requires(post): coreutils
Lennart Poettering 87df68
Requires(post): gawk
Lennart Poettering 4372ad
Lennart Poettering 4372ad
%description units
Lennart Poettering 4372ad
Basic configuration files, directories and installation tool for the systemd
Lennart Poettering 4372ad
system and session manager.
Lennart Poettering 4372ad
Lennart Poettering cc49ef
%package gtk
Lennart Poettering cc49ef
Group:          System Environment/Base
Lennart Poettering cc49ef
Summary:        Graphical frontend for systemd
Lennart Poettering cc49ef
Requires:       %{name} = %{version}-%{release}
Lennart Poettering cc49ef
Lennart Poettering cc49ef
%description gtk
Lennart Poettering cc49ef
Graphical front-end for systemd.
Lennart Poettering cc49ef
Lennart Poettering cc49ef
%package sysvinit
Lennart Poettering cc49ef
Group:          System Environment/Base
Lennart Poettering cc49ef
Summary:        systemd System V init tools
Lennart Poettering cc49ef
Requires:       %{name} = %{version}-%{release}
Lennart Poettering 4372ad
Obsoletes:      SysVinit < 2.86-24, sysvinit < 2.86-24
Lennart Poettering 4372ad
Provides:       SysVinit = 2.86-24, sysvinit = 2.86-24
Lennart Poettering 87df68
Provides:       sysvinit-userspace
Lennart Poettering 25a5a1
Obsoletes:      upstart < 0.6.5-6.fc14
Lennart Poettering 25a5a1
Conflicts:      upstart-sysvinit
Lennart Poettering 25a5a1
Lennart Poettering 25a5a1
# For now, require upstart installed, so that people can rely that
Lennart Poettering 25a5a1
# they can emergency boot into upstart with init=/sbin/upstart
Lennart Poettering 25a5a1
Requires:       upstart >= 0.6.5-6.fc14
Lennart Poettering cc49ef
Lennart Poettering cc49ef
%description sysvinit
Lennart Poettering cc49ef
Drop-in replacement for the System V init tools of systemd.
Lennart Poettering cc49ef
Lennart Poettering cc49ef
%prep
Lennart Poettering fdaca2
%setup -q
Rahul Sundaram 7a392d
Lennart Poettering cc49ef
%build
Lennart Poettering cc49ef
%configure --with-rootdir= --with-distro=fedora
Rahul Sundaram 7a392d
make %{?_smp_mflags}
Lennart Poettering cc49ef
Lennart Poettering cc49ef
%install
Lennart Poettering cc49ef
rm -rf %{buildroot}
Lennart Poettering cc49ef
make DESTDIR=%{buildroot} install
Lennart Poettering cc49ef
find %{buildroot} \( -name '*.a' -o -name '*.la' \) -exec rm {} \;
Lennart Poettering 25a5a1
Lennart Poettering 25a5a1
# Create SysV compatibility symlinks. systemctl/systemd are smart
Lennart Poettering 25a5a1
# enough to detect in which way they are called.
Lennart Poettering cc49ef
mkdir -p %{buildroot}/sbin
Lennart Poettering 5a28ec
ln -s ../bin/systemd %{buildroot}/sbin/init
Lennart Poettering 5a28ec
ln -s ../bin/systemctl %{buildroot}/sbin/reboot
Lennart Poettering 5a28ec
ln -s ../bin/systemctl %{buildroot}/sbin/halt
Lennart Poettering 5a28ec
ln -s ../bin/systemctl %{buildroot}/sbin/poweroff
Lennart Poettering 5a28ec
ln -s ../bin/systemctl %{buildroot}/sbin/shutdown
Lennart Poettering 5a28ec
ln -s ../bin/systemctl %{buildroot}/sbin/telinit
Lennart Poettering 5a28ec
ln -s ../bin/systemctl %{buildroot}/sbin/runlevel
Lennart Poettering cc49ef
Lennart Poettering 25a5a1
# We create all wants links manually at installation time to make sure
Lennart Poettering 25a5a1
# they are not owned and hence overriden by rpm after the used deleted
Lennart Poettering 25a5a1
# them.
Lennart Poettering 25a5a1
rm -r %{buildroot}/etc/systemd/system/*.target.wants
Lennart Poettering 25a5a1
Lennart Poettering 25a5a1
# And the default symlink we generate automatically based on inittab
Lennart Poettering 25a5a1
rm %{buildroot}/etc/systemd/system/default.target
Lennart Poettering 25a5a1
Lennart Poettering 6f4060
sed -i -e 's/^#MountAuto=yes$/MountAuto=no/' \
Lennart Poettering 6f4060
        -e 's/^#SwapAuto=yes$/SwapAuto=no/' %{buildroot}/etc/systemd/system.conf
Lennart Poettering 6f4060
Lennart Poettering d007df
# Make sure the %ghost-ing below works
Lennart Poettering d007df
touch %{buildroot}%{_sysconfdir}/systemd/system/runlevel2.target
Lennart Poettering d007df
touch %{buildroot}%{_sysconfdir}/systemd/system/runlevel3.target
Lennart Poettering d007df
touch %{buildroot}%{_sysconfdir}/systemd/system/runlevel4.target
Lennart Poettering d007df
touch %{buildroot}%{_sysconfdir}/systemd/system/runlevel5.target
Lennart Poettering d007df
Lennart Poettering cc49ef
%clean
Lennart Poettering cc49ef
rm -rf $RPM_BUILD_ROOT
Lennart Poettering cc49ef
Lennart Poettering 25a5a1
%post units
Lennart Poettering 25a5a1
if [ $1 -eq 1 ] ; then
Lennart Poettering 25a5a1
        # Try to read default runlevel from the old inittab if it exists
Lennart Poettering 25a5a1
        runlevel=$(/bin/awk -F ':' '$3 == "initdefault" && $1 !~ "^#" { print $2 }' /etc/inittab 2> /dev/null)
Lennart Poettering 25a5a1
        if [ -z "$runlevel" ] ; then
Lennart Poettering 25a5a1
                target="/lib/systemd/system/graphical.target"
Lennart Poettering 25a5a1
        else
Lennart Poettering d007df
                target="/lib/systemd/system/runlevel$runlevel.target"
Lennart Poettering 25a5a1
        fi
Lennart Poettering 25a5a1
Lennart Poettering 25a5a1
        # And symlink what we found to the new-style default.target
Lennart Poettering 87df68
        /bin/ln -sf "$target" /etc/systemd/system/default.target > /dev/null 2>&1 || :
Lennart Poettering 25a5a1
Lennart Poettering 25a5a1
        # Enable the services we install by default.
Lennart Poettering 25a5a1
        /bin/systemctl enable \
Lennart Poettering 25a5a1
                getty@.service \
Lennart Poettering 25a5a1
                prefdm.service \
Lennart Poettering 25a5a1
                getty.target \
Lennart Poettering 25a5a1
                rc-local.service \
Lennart Poettering 923ee9
                remote-fs.target \
Lennart Poettering 923ee9
                plymouth-quit.service \
Lennart Poettering 923ee9
                plymouth-shutdown.service > /dev/null 2>&1 || :
Lennart Poettering f58b3d
Lennart Poettering 87df68
        # Temporary fix for broken upgrades between older F14 rawhide to newer F14 rawhide. Should be removed eventually.
Lennart Poettering 87df68
        /bin/systemctl enable \
Lennart Poettering 87df68
                dbus.service \
Lennart Poettering 87df68
                dbus.socket > /dev/null 2>&1 || :
Lennart Poettering 25a5a1
fi
Lennart Poettering 25a5a1
Lennart Poettering 25a5a1
%preun units
Lennart Poettering 25a5a1
if [ $1 -eq 0 ] ; then
Lennart Poettering 25a5a1
        /bin/systemctl disable \
Lennart Poettering 25a5a1
                getty@.service \
Lennart Poettering 25a5a1
                prefdm.service \
Lennart Poettering 25a5a1
                getty.target \
Lennart Poettering 25a5a1
                rc-local.service \
Lennart Poettering 923ee9
                remote-fs.target \
Lennart Poettering 923ee9
                plymouth-quit.service \
Lennart Poettering 923ee9
                plymouth-shutdown.service > /dev/null 2>&1 || :
Lennart Poettering 25a5a1
Lennart Poettering 87df68
        /bin/rm -f /etc/systemd/system/default.target > /dev/null 2>&1 || :
Lennart Poettering 25a5a1
fi
Lennart Poettering 25a5a1
Lennart Poettering 25a5a1
%postun units
Lennart Poettering 25a5a1
if [ $1 -ge 1 ] ; then
Lennart Poettering 87df68
        /bin/systemctl daemon-reload > /dev/null 2>&1 || :
Lennart Poettering 25a5a1
fi
Lennart Poettering 25a5a1
Lennart Poettering cc49ef
%files
Lennart Poettering cc49ef
%defattr(-,root,root,-)
Lennart Poettering 1e979b
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.freedesktop.systemd1.conf
Lennart Poettering cc49ef
%{_sysconfdir}/rc.d/init.d/reboot
Lennart Poettering 25a5a1
%dir %{_sysconfdir}/systemd/session
Lennart Poettering 25a5a1
%{_sysconfdir}/xdg/systemd
Lennart Poettering cc49ef
/bin/systemd
Lennart Poettering cc49ef
/bin/systemd-notify
Lennart Poettering 4372ad
/lib/systemd/systemd-*
Lennart Poettering cc49ef
/lib/udev/rules.d/*.rules
Lennart Poettering 1e979b
/%{_lib}/security/pam_systemd.so
Lennart Poettering 5a28ec
%{_bindir}/systemd-cgls
Lennart Poettering 4372ad
%{_mandir}/man1/systemd.*
Lennart Poettering 4372ad
%{_mandir}/man1/systemd-notify.*
Lennart Poettering 5a28ec
%{_mandir}/man1/systemd-cgls.*
Lennart Poettering 4372ad
%{_mandir}/man3/*
Lennart Poettering 4372ad
%{_mandir}/man5/*
Lennart Poettering 4372ad
%{_mandir}/man7/*
Lennart Poettering 4372ad
%{_mandir}/man8/pam_systemd.*
Lennart Poettering cc49ef
%{_datadir}/systemd
Rahul Sundaram 7a392d
%{_datadir}/dbus-1/services/org.freedesktop.systemd1.service
Rahul Sundaram 7a392d
%{_datadir}/dbus-1/system-services/org.freedesktop.systemd1.service
Lennart Poettering cc49ef
%{_datadir}/dbus-1/interfaces/org.freedesktop.systemd1.*.xml
Lennart Poettering cc49ef
%{_docdir}/systemd
Lennart Poettering cc49ef
Lennart Poettering 4372ad
%files units
Lennart Poettering 4372ad
%defattr(-,root,root,-)
Lennart Poettering 25a5a1
%dir %{_sysconfdir}/systemd
Lennart Poettering 25a5a1
%dir %{_sysconfdir}/systemd/system
Lennart Poettering 25a5a1
%config(noreplace) %{_sysconfdir}/systemd/system.conf
Lennart Poettering 25a5a1
%config(noreplace) %{_sysconfdir}/systemd/system/ctrl-alt-del.target
Lennart Poettering 25a5a1
%config(noreplace) %{_sysconfdir}/systemd/system/display-manager.service
Lennart Poettering 25a5a1
%config(noreplace) %{_sysconfdir}/systemd/system/kbrequest.target
Lennart Poettering 4372ad
%dir /lib/systemd
Lennart Poettering 4372ad
/lib/systemd/system
Lennart Poettering 25a5a1
/bin/systemctl
Lennart Poettering 25a5a1
%{_mandir}/man1/systemctl.*
Lennart Poettering 5a28ec
%{_datadir}/pkgconfig/systemd.pc
Lennart Poettering 5a28ec
%{_docdir}/systemd/LICENSE
Lennart Poettering 4372ad
Lennart Poettering d007df
# Make sure we don't remove runlevel targets from F14 alpha installs,
Lennart Poettering d007df
# but make sure we don't create then anew.
Lennart Poettering d007df
%ghost %config(noreplace) %{_sysconfdir}/systemd/system/runlevel2.target
Lennart Poettering d007df
%ghost %config(noreplace) %{_sysconfdir}/systemd/system/runlevel3.target
Lennart Poettering d007df
%ghost %config(noreplace) %{_sysconfdir}/systemd/system/runlevel4.target
Lennart Poettering d007df
%ghost %config(noreplace) %{_sysconfdir}/systemd/system/runlevel5.target
Lennart Poettering d007df
Lennart Poettering cc49ef
%files gtk
Lennart Poettering cc49ef
%defattr(-,root,root,-)
Lennart Poettering cc49ef
%{_bindir}/systemadm
Lennart Poettering 4372ad
%{_mandir}/man1/systemadm.*
Lennart Poettering cc49ef
Lennart Poettering cc49ef
%files sysvinit
Lennart Poettering cc49ef
%defattr(-,root,root,-)
Lennart Poettering cc49ef
/sbin/init
Lennart Poettering cc49ef
/sbin/reboot
Lennart Poettering cc49ef
/sbin/halt
Lennart Poettering cc49ef
/sbin/poweroff
Lennart Poettering cc49ef
/sbin/shutdown
Lennart Poettering cc49ef
/sbin/telinit
Lennart Poettering cc49ef
/sbin/runlevel
Lennart Poettering 4372ad
%{_mandir}/man1/init.*
Lennart Poettering 4372ad
%{_mandir}/man8/halt.*
Lennart Poettering 4372ad
%{_mandir}/man8/reboot.*
Lennart Poettering 4372ad
%{_mandir}/man8/shutdown.*
Lennart Poettering 4372ad
%{_mandir}/man8/poweroff.*
Lennart Poettering 4372ad
%{_mandir}/man8/telinit.*
Lennart Poettering 4372ad
%{_mandir}/man8/runlevel.*
Lennart Poettering cc49ef
Rahul Sundaram 7a392d
%changelog
Lennart Poettering d007df
* Thu Aug 26 2010 Lennart Poettering <lpoetter@redhat.com> - 8-2
Lennart Poettering d007df
- Properly create default.target link
Lennart Poettering d007df
Lennart Poettering 6f4060
* Wed Aug 25 2010 Lennart Poettering <lpoetter@redhat.com> - 8-1
Lennart Poettering 6f4060
- New upstream release
Lennart Poettering 6f4060
Lennart Poettering d6c21f
* Thu Aug 12 2010 Lennart Poettering <lpoetter@redhat.com> - 7-3
Lennart Poettering d6c21f
- Fix https://bugzilla.redhat.com/show_bug.cgi?id=623561
Lennart Poettering d6c21f
Lennart Poettering d6c21f
* Thu Aug 12 2010 Lennart Poettering <lpoetter@redhat.com> - 7-2
Lennart Poettering f8a159
- Fix https://bugzilla.redhat.com/show_bug.cgi?id=623430
Lennart Poettering f8a159
Lennart Poettering 923ee9
* Tue Aug 10 2010 Lennart Poettering <lpoetter@redhat.com> - 7-1
Lennart Poettering 923ee9
- New upstream release
Lennart Poettering 923ee9
Lennart Poettering 87df68
* Fri Aug  6 2010 Lennart Poettering <lpoetter@redhat.com> - 6-2
Lennart Poettering 87df68
- properly hide output on package installation
Lennart Poettering 87df68
- pull in coreutils during package installtion
Lennart Poettering 87df68
Lennart Poettering 33acec
* Fri Aug  6 2010 Lennart Poettering <lpoetter@redhat.com> - 6-1
Lennart Poettering 33acec
- New upstream release
Lennart Poettering 33acec
- Fixes #621200
Lennart Poettering 33acec
Lennart Poettering 561d1f
* Wed Aug  4 2010 Lennart Poettering <lpoetter@redhat.com> - 5-2
Lennart Poettering 561d1f
- Add tarball
Lennart Poettering 561d1f
Lennart Poettering f58b3d
* Wed Aug  4 2010 Lennart Poettering <lpoetter@redhat.com> - 5-1
Lennart Poettering f58b3d
- Prepare release 5
Lennart Poettering f58b3d
Bill Nottingham 3fb2ea
* Tue Jul 27 2010 Bill Nottingham <notting@redhat.com> - 4-4
Bill Nottingham 3fb2ea
- Add 'sysvinit-userspace' provide to -sysvinit package to fix upgrade/install (#618537)
Bill Nottingham 3fb2ea
Lennart Poettering 7f4dce
* Sat Jul 24 2010 Lennart Poettering <lpoetter@redhat.com> - 4-3
Lennart Poettering 7f4dce
- Add libselinux to build dependencies
Lennart Poettering 7f4dce
Lennart Poettering 2f1a57
* Sat Jul 24 2010 Lennart Poettering <lpoetter@redhat.com> - 4-2
Lennart Poettering 2f1a57
- Use the right tarball
Lennart Poettering 2f1a57
Lennart Poettering 25a5a1
* Sat Jul 24 2010 Lennart Poettering <lpoetter@redhat.com> - 4-1
Lennart Poettering 25a5a1
- New upstream release, and make default
Lennart Poettering 25a5a1
Lennart Poettering d6c21f
* Tue Jul 13 2010 Lennart Poettering <lpoetter@redhat.com> - 3-3
Lennart Poettering d348ae
- Used wrong tarball
Lennart Poettering d348ae
Lennart Poettering d6c21f
* Tue Jul 13 2010 Lennart Poettering <lpoetter@redhat.com> - 3-2
Lennart Poettering 85eb5f
- Own /cgroup jointly with libcgroup, since we don't dpend on it anymore
Lennart Poettering 85eb5f
Lennart Poettering b93a36
* Tue Jul 13 2010 Lennart Poettering <lpoetter@redhat.com> - 3-1
Lennart Poettering b93a36
- New upstream release
Lennart Poettering b93a36
Lennart Poettering 5a28ec
* Fri Jul 9 2010 Lennart Poettering <lpoetter@redhat.com> - 2-0
Lennart Poettering 5a28ec
- New upstream release
Lennart Poettering 5a28ec
Lennart Poettering fdaca2
* Wed Jul 7 2010 Lennart Poettering <lpoetter@redhat.com> - 1-0
Lennart Poettering fdaca2
- First upstream release
Lennart Poettering fdaca2
Lennart Poettering caa30f
* Tue Jun 29 2010 Lennart Poettering <lpoetter@redhat.com> - 0-0.7.20100629git4176e5
Lennart Poettering 4372ad
- New snapshot
Lennart Poettering 4372ad
- Split off -units package where other packages can depend on without pulling in the whole of systemd
Lennart Poettering 4372ad
Lennart Poettering 1a8865
* Tue Jun 22 2010 Lennart Poettering <lpoetter@redhat.com> - 0-0.6.20100622gita3723b
Lennart Poettering 1a8865
- Add missing libtool dependency.
Lennart Poettering 1a8865
Lennart Poettering 1e979b
* Tue Jun 22 2010 Lennart Poettering <lpoetter@redhat.com> - 0-0.5.20100622gita3723b
Lennart Poettering 4372ad
- Update snapshot
Lennart Poettering 1e979b
Lennart Poettering 1e979b
* Mon Jun 14 2010 Rahul Sundaram <sundaram@fedoraproject.org> - 0-0.4.20100614git393024
Rahul Sundaram ab31d0
- Pull the latest snapshot that fixes a segfault. Resolves rhbz#603231
Rahul Sundaram ab31d0
Rahul Sundaram 7a392d
* Thu Jun 11 2010 Rahul Sundaram <sundaram@fedoraproject.org> - 0-0.3.20100610git2f198e
Rahul Sundaram 7a392d
- More minor fixes as per review
Rahul Sundaram 7a392d
Rahul Sundaram 7a392d
* Thu Jun 10 2010 Rahul Sundaram <sundaram@fedoraproject.org> - 0-0.2.20100610git2f198e
Rahul Sundaram 7a392d
- Spec improvements from David Hollis
Rahul Sundaram 7a392d
Rahul Sundaram 7a392d
* Wed Jun 09 2010 Rahul Sundaram <sundaram@fedoraproject.org> - 0-0.1.20090609git2f198e
Rahul Sundaram 7a392d
- Address review comments
Rahul Sundaram ab31d0
Rahul Sundaram 7a392d
* Tue Jun 01 2010 Rahul Sundaram <sundaram@fedoraproject.org> - 0-0.0.git2010-06-02
Rahul Sundaram 7a392d
- Initial spec (adopted from Kay Sievers)