update systemd from git

This commit is contained in:
Lennart Poettering 2010-06-22 04:16:32 +00:00
parent ab31d04c2d
commit cc49efcf9f

View File

@ -1,76 +1,139 @@
%global git_date 20100614 %global git_date 20100622
%global git_version 393034 %global git_version a3723b
%global _bindir /bin
%global _libdir /lib
Name: systemd Name: systemd
Url: http://www.freedesktop.org/wiki/Software/systemd Url: http://www.freedesktop.org/wiki/Software/systemd
Version: 0 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Release: 0.4.%{git_date}git%{git_version}%{?dist} Version: 0
License: GPLv2+ Release: 0.5.%{git_date}git%{git_version}%{?dist}
Group: System Environment/Base License: GPLv2+
Summary: A System and Session Manager Group: System Environment/Base
BuildRequires: libudev-devel Summary: A System and Session Manager
BuildRequires: libcap-devel BuildRequires: libudev-devel
BuildRequires: libcgroup-devel libcgroup libxslt docbook-style-xsl BuildRequires: libcap-devel
BuildRequires: dbus-glib-devel vala pkgconfig gtk2-devel BuildRequires: libcgroup-devel
BuildRequires: automake autoconf BuildRequires: tcp_wrappers-devel
BuildRequires: pam-devel
BuildRequires: libxslt
BuildRequires: docbook-style-xsl
BuildRequires: dbus-glib-devel
BuildRequires: vala
BuildRequires: pkgconfig
BuildRequires: gtk2-devel
BuildRequires: automake
BuildRequires: autoconf
Requires: dbus
Requires: udev
Requires: pkgconfig
Requires: initscripts
# git clone git://anongit.freedesktop.org/systemd # git clone git://anongit.freedesktop.org/systemd
# cd systemd; # cd systemd;
# git-archive --format=tar --prefix={name}/ {git_version} | xz > systemd-{version}.{git_date}git{git_version}.tar.xz # git archive --format=tar --prefix=systemd/ {git_version} | xz > systemd-{version}.{git_date}git{git_version}.tar.xz
Source0: %{name}-%{version}.%{git_date}git%{git_version}.tar.xz
#Source0: http://www.freedesktop.org/FIXME/%{name}-%{version}.tar.bz2
Source0: %{name}-%{version}.%{git_date}git%{git_version}.tar.xz
#Source0: http://www.freedesktop.org/FIXME/%{name}-%{version}.tar.bz2
%description %description
systemd is a system and session manager for Linux, compatible with SysV and systemd is a system and session manager for Linux, compatible with
LSB init scripts. systemd provides aggressive parallelization capabilities, SysV and LSB init scripts. systemd provides aggressive parallelization
uses socket and D-Bus activation for starting services, offers on-demand capabilities, uses socket and D-Bus activation for starting services,
starting of daemons, keeps track of processes using Linux cgroups, supports offers on-demand starting of daemons, keeps track of processes using
snapshotting and restoring of the system state, maintains mount and automount Linux cgroups, supports snapshotting and restoring of the system
points and implements an elaborate transactional dependency-based service state, maintains mount and automount points and implements an
control logic. It can work as a drop-in replacement for sysvinit. elaborate transactional dependency-based service control logic. It can
work as a drop-in replacement for sysvinit.
%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}
Conflicts: sysvinit
Conflicts: upstart
%description sysvinit
Drop-in replacement for the System V init tools of systemd.
%package pam
Group: System Environment/Base
Summary: systemd PAM module
Conflicts: %{name} < %{version}-%{release}
Conflicts: %{name} > %{version}-%{release}
%description pam
PAM module for creating per-user and per-session control groups in the
systemd control group hierarchy.
%prep %prep
%setup -q -n %{name} %setup -q -n %{name}
./bootstrap.sh ./bootstrap.sh ac
%build %build
%configure --with-rootdir= --with-distro=fedora
export V=1
%configure --sbindir=/sbin --with-rootdir= --with-distro=fedora
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
rm -rf %{buildroot}
# workaround for lack of init.d directory
mkdir -p %{buildroot}/%{_sysconfdir}/init.d
make DESTDIR=%{buildroot} install make DESTDIR=%{buildroot} install
find %{buildroot} \( -name '*.a' -o -name '*.la' \) -exec rm {} \;
mkdir -p %{buildroot}/sbin
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
rmdir %{buildroot}/cgroup
%clean
rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%dir %{_sysconfdir}/systemd %{_sysconfdir}/systemd
%{_sysconfdir}/systemd/* %{_sysconfdir}/xdg/systemd
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.systemd1.conf %config %{_sysconfdir}/dbus-1/system.d/org.freedesktop.systemd1.conf
%{_sysconfdir}/xdg/systemd/session %{_sysconfdir}/rc.d/init.d/reboot
%{_sysconfdir}/init.d/reboot /bin/systemd
%{_datadir}/dbus-1/interfaces/org.freedesktop.systemd1.*.xml /bin/systemctl
/bin/systemd-notify
%{_bindir}/systemd-install
/lib/systemd
/lib/udev/rules.d/*.rules /lib/udev/rules.d/*.rules
%{_bindir}/systemd
%{_bindir}/systemctl
%{_bindir}/systemadm
%{_mandir}/man?/*.* %{_mandir}/man?/*.*
%{_libdir}/systemd %{_datadir}/systemd
%{_datadir}/systemd/
%{_datadir}/dbus-1/services/org.freedesktop.systemd1.service %{_datadir}/dbus-1/services/org.freedesktop.systemd1.service
%{_datadir}/dbus-1/system-services/org.freedesktop.systemd1.service %{_datadir}/dbus-1/system-services/org.freedesktop.systemd1.service
%{_datadir}/dbus-1/interfaces/org.freedesktop.systemd1.*.xml
%{_datadir}/pkgconfig/systemd.pc
%{_docdir}/systemd
%files gtk
%defattr(-,root,root,-)
%{_bindir}/systemadm
%files sysvinit
%defattr(-,root,root,-)
/sbin/init
/sbin/reboot
/sbin/halt
/sbin/poweroff
/sbin/shutdown
/sbin/telinit
/sbin/runlevel
%files pam
%defattr(-,root,root,-)
/%{_lib}/security/pam_systemd.so
%changelog %changelog
* Mon Jun 14 2010 Rahul Sundaram <sundaram@fedoraproject.org> - 0-0.4.20100614.git393024 * Mon Jun 14 2010 Rahul Sundaram <sundaram@fedoraproject.org> - 0-0.4.20100614.git393024
@ -87,4 +150,3 @@ make DESTDIR=%{buildroot} install
* Tue Jun 01 2010 Rahul Sundaram <sundaram@fedoraproject.org> - 0-0.0.git2010-06-02 * Tue Jun 01 2010 Rahul Sundaram <sundaram@fedoraproject.org> - 0-0.0.git2010-06-02
- Initial spec (adopted from Kay Sievers) - Initial spec (adopted from Kay Sievers)