dcavalca / rpms / systemd

Forked from rpms/systemd 3 months ago
Clone
Lennart Poettering cc49ef
%global git_date    20100622
Lennart Poettering cc49ef
%global git_version a3723b
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 1a8865
Release:        0.6.%{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 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 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 cc49ef
Conflicts:      sysvinit
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 cc49ef
%{_sysconfdir}/systemd
Lennart Poettering cc49ef
%{_sysconfdir}/xdg/systemd
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 cc49ef
%{_bindir}/systemd-install
Lennart Poettering cc49ef
/lib/systemd
Lennart Poettering cc49ef
/lib/udev/rules.d/*.rules
Lennart Poettering 1e979b
/%{_lib}/security/pam_systemd.so
Rahul Sundaram 7a392d
%{_mandir}/man?/*.*
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 cc49ef
%files gtk
Lennart Poettering cc49ef
%defattr(-,root,root,-)
Lennart Poettering cc49ef
%{_bindir}/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 cc49ef
Rahul Sundaram 7a392d
%changelog
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 1e979b
- 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)