ryantimwilson / rpms / systemd

Forked from rpms/systemd a month ago
Clone
Lennart Poettering 4372ad
%global git_date    20100629
Lennart Poettering 4372ad
%global git_version 4176e5
Lennart Poettering cc49ef
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 cc49ef
Version:        0
Lennart Poettering 4372ad
Release:        0.7.%{git_date}git%{git_version}%{?dist}
Lennart Poettering cc49ef
License:        GPLv2+
Lennart Poettering cc49ef
Group:          System Environment/Base
Lennart Poettering cc49ef
Summary:        A System and Session Manager
Lennart Poettering cc49ef
BuildRequires:  libudev-devel
Lennart Poettering cc49ef
BuildRequires:  libcap-devel
Lennart Poettering cc49ef
BuildRequires:  libcgroup-devel
Lennart Poettering cc49ef
BuildRequires:  tcp_wrappers-devel
Lennart Poettering cc49ef
BuildRequires:  pam-devel
Lennart Poettering cc49ef
BuildRequires:  libxslt
Lennart Poettering cc49ef
BuildRequires:  docbook-style-xsl
Lennart Poettering cc49ef
BuildRequires:  dbus-glib-devel
Lennart Poettering cc49ef
BuildRequires:  vala
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 4372ad
Requires:	systemd-units = %{version}-%{release}
Lennart Poettering cc49ef
Requires:       dbus
Lennart Poettering cc49ef
Requires:       udev
Lennart Poettering cc49ef
Requires:       pkgconfig
Lennart Poettering cc49ef
Requires:       initscripts
Lennart Poettering 1e979b
Requires:       selinux-policy >= 3.8.5
Lennart Poettering cc49ef
Lennart Poettering cc49ef
# git clone git://anongit.freedesktop.org/systemd
Rahul Sundaram 7a392d
# cd systemd;
Lennart Poettering cc49ef
# git archive --format=tar --prefix=systemd/ {git_version} | xz  > systemd-{version}.{git_date}git{git_version}.tar.xz
Lennart Poettering cc49ef
Lennart Poettering cc49ef
Source0:        %{name}-%{version}.%{git_date}git%{git_version}.tar.xz
Lennart Poettering cc49ef
#Source0:       http://www.freedesktop.org/FIXME/%{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 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 4372ad
#Obsoletes:      upstart <= 0.6.99
Lennart Poettering cc49ef
Conflicts:      upstart
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
Rahul Sundaram 7a392d
%setup -q -n %{name}
Lennart Poettering cc49ef
./bootstrap.sh ac
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 cc49ef
mkdir -p %{buildroot}/sbin
Lennart Poettering cc49ef
ln -s /bin/systemd %{buildroot}/sbin/init
Lennart Poettering cc49ef
ln -s /bin/systemctl %{buildroot}/sbin/reboot
Lennart Poettering cc49ef
ln -s /bin/systemctl %{buildroot}/sbin/halt
Lennart Poettering cc49ef
ln -s /bin/systemctl %{buildroot}/sbin/poweroff
Lennart Poettering cc49ef
ln -s /bin/systemctl %{buildroot}/sbin/shutdown
Lennart Poettering cc49ef
ln -s /bin/systemctl %{buildroot}/sbin/telinit
Lennart Poettering cc49ef
ln -s /bin/systemctl %{buildroot}/sbin/runlevel
Lennart Poettering cc49ef
rmdir %{buildroot}/cgroup
Lennart Poettering cc49ef
Lennart Poettering cc49ef
%clean
Lennart Poettering cc49ef
rm -rf $RPM_BUILD_ROOT
Lennart Poettering cc49ef
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 cc49ef
/bin/systemd
Lennart Poettering cc49ef
/bin/systemctl
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 4372ad
%{_mandir}/man1/systemd.*
Lennart Poettering 4372ad
%{_mandir}/man1/systemctl.*
Lennart Poettering 4372ad
%{_mandir}/man1/systemd-notify.*
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
%{_datadir}/pkgconfig/systemd.pc
Lennart Poettering cc49ef
%{_docdir}/systemd
Lennart Poettering cc49ef
Lennart Poettering 4372ad
%files units
Lennart Poettering 4372ad
%defattr(-,root,root,-)
Lennart Poettering 4372ad
%{_sysconfdir}/systemd
Lennart Poettering 4372ad
%{_sysconfdir}/xdg/systemd
Lennart Poettering 4372ad
%dir /lib/systemd
Lennart Poettering 4372ad
/lib/systemd/system
Lennart Poettering 4372ad
%{_bindir}/systemd-install
Lennart Poettering 4372ad
%{_mandir}/man1/systemd-install.*
Lennart Poettering 4372ad
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 4372ad
* Tue Jun 29 2010 Lennart Poettering <lpoetter@redhat.com> - 0-0.7.20100622gita3723b
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)