systemd/systemd.spec

415 lines
14 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)
2011-02-16 21:30:14 +00:00
Version: 18
Release: 1%{?dist}
2010-06-22 04:16:32 +00:00
License: GPLv2+
Group: System Environment/Base
2010-11-17 00:09:34 +00:00
Summary: A System and Service 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
2010-07-24 01:05:02 +00:00
BuildRequires: libselinux-devel
2010-09-14 15:51:38 +00:00
BuildRequires: audit-libs-devel
2010-11-17 00:09:34 +00:00
BuildRequires: cryptsetup-luks-devel
2010-06-22 04:16:32 +00:00
BuildRequires: libxslt
BuildRequires: docbook-style-xsl
2010-11-17 00:09:34 +00:00
BuildRequires: vala >= 0.11
2010-06-22 04:16:32 +00:00
BuildRequires: pkgconfig
BuildRequires: gtk2-devel
2010-11-17 00:09:34 +00:00
BuildRequires: libnotify-devel >= 0.7
2010-06-22 04:16:32 +00:00
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-11-17 03:04:03 +00:00
Requires: initscripts >= 9.22
2010-07-22 00:29:20 +00:00
Requires: selinux-policy >= 3.8.7
2010-08-25 20:15:34 +00:00
Requires: kernel >= 2.6.35.2-9.fc14
2010-07-09 03:15:49 +00:00
Source0: http://www.freedesktop.org/software/systemd/%{name}-%{version}.tar.bz2
2011-02-09 20:12:15 +00:00
# Adds support for the %%{_unitdir} macro
Source1: macros.systemd
2010-09-23 15:29:20 +00:00
# For sysvinit tools
Obsoletes: SysVinit < 2.86-24, sysvinit < 2.86-24
Provides: SysVinit = 2.86-24, sysvinit = 2.86-24
Provides: sysvinit-userspace
Provides: systemd-sysvinit
Obsoletes: systemd-sysvinit
2011-02-14 19:22:36 +00:00
Obsoletes: upstart < 0.6.5-11
Obsoletes: upstart-sysvinit < 0.6.5-11
2010-09-23 15:29:20 +00:00
Conflicts: upstart-sysvinit
Obsoletes: readahead < 1:1.5.7-3
Provides: readahead = 1:1.5.7-3
2010-06-22 04:16:32 +00:00
%description
2010-11-17 00:09:34 +00:00
systemd is a system and service manager for Linux, compatible with
2010-06-22 04:16:32 +00:00
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
Requires(post): coreutils
Requires(post): gawk
2010-06-29 01:55:15 +00:00
%description units
Basic configuration files, directories and installation tool for the systemd
2010-11-17 00:09:34 +00:00
system and service manager.
2010-06-29 01:55:15 +00:00
2010-06-22 04:16:32 +00:00
%package gtk
Group: System Environment/Base
Summary: Graphical frontend for systemd
Requires: %{name} = %{version}-%{release}
2010-10-07 14:03:56 +00:00
Requires: polkit
2010-06-22 04:16:32 +00:00
%description gtk
Graphical front-end for 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
2010-08-26 16:16:18 +00:00
# Make sure the %ghost-ing below works
touch %{buildroot}%{_sysconfdir}/systemd/system/runlevel2.target
touch %{buildroot}%{_sysconfdir}/systemd/system/runlevel3.target
touch %{buildroot}%{_sysconfdir}/systemd/system/runlevel4.target
touch %{buildroot}%{_sysconfdir}/systemd/system/runlevel5.target
2010-09-14 00:38:13 +00:00
# Make sure these directories are properly owned
mkdir -p %{buildroot}/lib/systemd/system/basic.target.wants
mkdir -p %{buildroot}/lib/systemd/system/default.target.wants
mkdir -p %{buildroot}/lib/systemd/system/dbus.target.wants
mkdir -p %{buildroot}/lib/systemd/system/syslog.target.wants
2011-02-09 20:12:15 +00:00
# Install RPM macros file for systemd
mkdir -p %{buildroot}%{_sysconfdir}/rpm/
install -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/rpm/
# Mask legacy stuff
ln -s rescue.service %{buildroot}/lib/systemd/system/single.service
2010-06-22 04:16:32 +00:00
%clean
rm -rf $RPM_BUILD_ROOT
%post
2010-09-14 15:51:38 +00:00
/bin/systemctl daemon-reexec > /dev/null 2>&1 || :
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
2010-08-26 16:16:18 +00:00
target="/lib/systemd/system/runlevel$runlevel.target"
2010-07-24 00:51:34 +00:00
fi
# And symlink what we found to the new-style default.target
/bin/ln -sf "$target" /etc/systemd/system/default.target > /dev/null 2>&1 || :
2010-07-24 00:51:34 +00:00
# Enable the services we install by default.
/bin/systemctl enable \
getty@.service \
getty.target \
2010-11-17 00:09:34 +00:00
remote-fs.target \
quotaon.service \
quotacheck.service \
systemd-readahead-replay.service \
2010-11-25 00:16:40 +00:00
systemd-readahead-collect.service \
hwclock-load.service > /dev/null 2>&1 || :
2010-07-24 00:51:34 +00:00
fi
%preun units
if [ $1 -eq 0 ] ; then
/bin/systemctl disable \
getty@.service \
getty.target \
2010-11-17 00:09:34 +00:00
remote-fs.target \
quotaon.service \
quotacheck.service \
systemd-readahead-replay.service \
2010-11-25 00:16:40 +00:00
systemd-readahead-collect.service \
hwclock-load.service > /dev/null 2>&1 || :
2010-07-24 00:51:34 +00:00
/bin/rm -f /etc/systemd/system/default.target > /dev/null 2>&1 || :
2010-07-24 00:51:34 +00:00
fi
%postun units
if [ $1 -ge 1 ] ; then
/bin/systemctl daemon-reload > /dev/null 2>&1 || :
2010-07-24 00:51:34 +00:00
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-10-07 14:03:56 +00:00
%config(noreplace) %{_sysconfdir}/systemd/system.conf
2010-11-17 00:09:34 +00:00
%dir %{_sysconfdir}/systemd/user
2010-07-24 00:51:34 +00:00
%{_sysconfdir}/xdg/systemd
2010-10-07 14:03:56 +00:00
%{_sysconfdir}/tmpfiles.d/systemd.conf
%{_sysconfdir}/tmpfiles.d/x11.conf
2010-06-22 04:16:32 +00:00
/bin/systemd
/bin/systemd-notify
2010-10-07 14:03:56 +00:00
/bin/systemd-ask-password
2010-11-17 00:09:34 +00:00
/bin/systemd-tty-ask-password-agent
2010-06-29 01:55:15 +00:00
/lib/systemd/systemd-*
2010-06-22 04:16:32 +00:00
/lib/udev/rules.d/*.rules
%dir /lib/systemd/system-generators
2010-11-17 00:09:34 +00:00
/lib/systemd/system-generators/systemd-cryptsetup-generator
2010-06-22 16:33:20 +00:00
/%{_lib}/security/pam_systemd.so
2010-09-23 15:29:20 +00:00
/sbin/init
/sbin/reboot
/sbin/halt
/sbin/poweroff
/sbin/shutdown
/sbin/telinit
/sbin/runlevel
2010-07-09 03:15:49 +00:00
%{_bindir}/systemd-cgls
2010-09-23 15:29:20 +00:00
%{_mandir}/man1/*
%exclude %{_mandir}/man1/systemctl.*
2010-06-29 01:55:15 +00:00
%{_mandir}/man3/*
%{_mandir}/man5/*
%{_mandir}/man7/*
2010-09-23 15:29:20 +00:00
%{_mandir}/man8/*
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
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
2010-10-07 14:03:56 +00:00
%dir %{_sysconfdir}/tmpfiles.d
2010-11-17 00:09:34 +00:00
%dir %{_sysconfdir}/bash_completion.d
2010-06-29 01:55:15 +00:00
%dir /lib/systemd
/lib/systemd/system
2010-07-24 00:51:34 +00:00
/bin/systemctl
2011-02-16 21:30:14 +00:00
/bin/systemd-tmpfiles
2010-11-17 00:09:34 +00:00
%{_sysconfdir}/bash_completion.d/systemctl-bash-completion.sh
2011-02-09 20:12:15 +00:00
%{_sysconfdir}/rpm/macros.systemd
2010-07-24 00:51:34 +00:00
%{_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-08-26 16:16:18 +00:00
# Make sure we don't remove runlevel targets from F14 alpha installs,
# but make sure we don't create then anew.
%ghost %config(noreplace) %{_sysconfdir}/systemd/system/runlevel2.target
%ghost %config(noreplace) %{_sysconfdir}/systemd/system/runlevel3.target
%ghost %config(noreplace) %{_sysconfdir}/systemd/system/runlevel4.target
%ghost %config(noreplace) %{_sysconfdir}/systemd/system/runlevel5.target
2010-06-22 04:16:32 +00:00
%files gtk
%defattr(-,root,root,-)
%{_bindir}/systemadm
2010-11-17 00:09:34 +00:00
%{_bindir}/systemd-gnome-ask-password-agent
2010-10-07 14:03:56 +00:00
%{_datadir}/polkit-1/actions/org.freedesktop.systemd1.policy
2010-06-29 01:55:15 +00:00
%{_mandir}/man1/systemadm.*
2010-06-22 04:16:32 +00:00
2010-06-11 06:18:33 +00:00
%changelog
2011-02-16 21:30:14 +00:00
* Wed Feb 16 2011 Lennart Poettering <lpoetter@redhat.com> - 18-1
- New upstream release
2011-02-14 19:22:36 +00:00
* Mon Feb 14 2011 Bill Nottingham <notting@redhat.com> - 17-6
- bump upstart obsoletes (#676815)
2011-02-09 20:12:15 +00:00
* Wed Feb 9 2011 Tom Callaway <spot@fedoraproject.org> - 17-5
- add macros.systemd file for %%{_unitdir}
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 17-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2011-02-09 00:20:32 +00:00
* Wed Feb 9 2011 Lennart Poettering <lpoetter@redhat.com> - 17-3
- Fix popen() of systemctl, #674916
* Mon Feb 7 2011 Bill Nottingham <notting@redhat.com> - 17-2
- add epoch to readahead obsolete
2011-01-22 01:30:30 +00:00
* Sat Jan 22 2011 Lennart Poettering <lpoetter@redhat.com> - 17-1
- New upstream release
* Tue Jan 18 2011 Lennart Poettering <lpoetter@redhat.com> - 16-2
- Drop console.conf again, since it is not shipped in pamtmp.conf
2011-01-08 01:46:14 +00:00
* Sat Jan 8 2011 Lennart Poettering <lpoetter@redhat.com> - 16-1
- New upstream release
2010-11-25 00:49:37 +00:00
* Thu Nov 25 2010 Lennart Poettering <lpoetter@redhat.com> - 15-1
- New upstream release
2010-11-25 00:16:40 +00:00
* Thu Nov 25 2010 Lennart Poettering <lpoetter@redhat.com> - 14-1
- Upstream update
- Enable hwclock-load by default
- Obsolete readahead
- Enable /var/run and /var/lock on tmpfs
2010-11-18 23:04:45 +00:00
* Fri Nov 19 2010 Lennart Poettering <lpoetter@redhat.com> - 13-1
- new upstream release
2010-11-17 03:04:03 +00:00
* Wed Nov 17 2010 Bill Nottingham <notting@redhat.com> 12-3
- Fix clash
* Wed Nov 17 2010 Lennart Poettering <lpoetter@redhat.com> - 12-2
- Don't clash with initscripts for now, so that we don't break the builders
2010-11-17 00:09:34 +00:00
* Wed Nov 17 2010 Lennart Poettering <lpoetter@redhat.com> - 12-1
- New upstream release
2010-11-13 01:53:49 +00:00
* Fri Nov 12 2010 Matthias Clasen <mclasen@redhat.com> - 11-2
- Rebuild with newer vala, libnotify
2010-10-07 14:03:56 +00:00
* Thu Oct 7 2010 Lennart Poettering <lpoetter@redhat.com> - 11-1
- New upstream release
* Wed Sep 29 2010 Jesse Keating <jkeating@redhat.com> - 10-6
2010-09-29 22:20:39 +00:00
- Rebuilt for gcc bug 634757
2010-09-23 15:29:20 +00:00
* Thu Sep 23 2010 Bill Nottingham <notting@redhat.com> - 10-5
- merge -sysvinit into main package
2010-09-20 16:07:17 +00:00
* Mon Sep 20 2010 Bill Nottingham <notting@redhat.com> - 10-4
- obsolete upstart-sysvinit too
2010-09-17 20:57:38 +00:00
* Fri Sep 17 2010 Bill Nottingham <notting@redhat.com> - 10-3
- Drop upstart requires
2010-09-14 15:51:38 +00:00
* Tue Sep 14 2010 Lennart Poettering <lpoetter@redhat.com> - 10-2
- Enable audit
- https://bugzilla.redhat.com/show_bug.cgi?id=633771
2010-09-14 00:38:13 +00:00
* Tue Sep 14 2010 Lennart Poettering <lpoetter@redhat.com> - 10-1
- New upstream release
- https://bugzilla.redhat.com/show_bug.cgi?id=630401
- https://bugzilla.redhat.com/show_bug.cgi?id=630225
- https://bugzilla.redhat.com/show_bug.cgi?id=626966
- https://bugzilla.redhat.com/show_bug.cgi?id=623456
* Fri Sep 3 2010 Bill Nottingham <notting@redhat.com> - 9-3
- move fedora-specific units to initscripts; require newer version thereof
2010-09-03 03:27:52 +00:00
* Fri Sep 3 2010 Lennart Poettering <lpoetter@redhat.com> - 9-2
- Add missing tarball
2010-09-03 03:20:40 +00:00
* Fri Sep 3 2010 Lennart Poettering <lpoetter@redhat.com> - 9-1
- New upstream version
- Closes 501720, 614619, 621290, 626443, 626477, 627014, 627785, 628913
* Fri Aug 27 2010 Lennart Poettering <lpoetter@redhat.com> - 8-3
- Reexecute after installation, take ownership of /var/run/user
- https://bugzilla.redhat.com/show_bug.cgi?id=627457
- https://bugzilla.redhat.com/show_bug.cgi?id=627634
2010-08-26 16:16:18 +00:00
* Thu Aug 26 2010 Lennart Poettering <lpoetter@redhat.com> - 8-2
- Properly create default.target link
2010-08-25 20:15:34 +00:00
* Wed Aug 25 2010 Lennart Poettering <lpoetter@redhat.com> - 8-1
- New upstream release
* Thu Aug 12 2010 Lennart Poettering <lpoetter@redhat.com> - 7-3
- Fix https://bugzilla.redhat.com/show_bug.cgi?id=623561
* Thu Aug 12 2010 Lennart Poettering <lpoetter@redhat.com> - 7-2
- Fix https://bugzilla.redhat.com/show_bug.cgi?id=623430
2010-08-10 01:57:12 +00:00
* Tue Aug 10 2010 Lennart Poettering <lpoetter@redhat.com> - 7-1
- New upstream release
* Fri Aug 6 2010 Lennart Poettering <lpoetter@redhat.com> - 6-2
- properly hide output on package installation
- pull in coreutils during package installtion
2010-08-06 10:33:10 +00:00
* Fri Aug 6 2010 Lennart Poettering <lpoetter@redhat.com> - 6-1
- New upstream release
- Fixes #621200
2010-08-04 00:03:21 +00:00
* Wed Aug 4 2010 Lennart Poettering <lpoetter@redhat.com> - 5-2
- Add tarball
2010-08-03 23:44:01 +00:00
* Wed Aug 4 2010 Lennart Poettering <lpoetter@redhat.com> - 5-1
- Prepare release 5
2010-07-27 17:16:51 +00:00
* Tue Jul 27 2010 Bill Nottingham <notting@redhat.com> - 4-4
- Add 'sysvinit-userspace' provide to -sysvinit package to fix upgrade/install (#618537)
2010-07-24 01:05:02 +00:00
* Sat Jul 24 2010 Lennart Poettering <lpoetter@redhat.com> - 4-3
- Add libselinux to build dependencies
2010-07-24 00:57:17 +00:00
* Sat Jul 24 2010 Lennart Poettering <lpoetter@redhat.com> - 4-2
- Use the right tarball
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
* Tue Jul 13 2010 Lennart Poettering <lpoetter@redhat.com> - 3-3
2010-07-13 21:29:25 +00:00
- Used wrong tarball
* Tue Jul 13 2010 Lennart Poettering <lpoetter@redhat.com> - 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)