dcavalca / rpms / systemd

Forked from rpms/systemd 3 months ago
Clone
Rahul Sundaram 7a392d
%global git_date    20100610
Rahul Sundaram 7a392d
%global git_version 2f198e
Rahul Sundaram 7a392d
%global _bindir      /bin
Rahul Sundaram 7a392d
%global _libdir      /lib
Rahul Sundaram 7a392d
Rahul Sundaram 7a392d
Name:            systemd  
Rahul Sundaram 7a392d
Url:             http://www.freedesktop.org/wiki/Software/systemd  
Rahul Sundaram 7a392d
Version:         0
Rahul Sundaram 7a392d
Release:         0.3.%{git_date}git%{git_version}%{?dist} 
Rahul Sundaram 7a392d
License:         GPLv2+  
Rahul Sundaram 7a392d
Group:           System Environment/Base
Rahul Sundaram 7a392d
Summary:         A System and Session Manager  
Rahul Sundaram 7a392d
BuildRequires:   libudev-devel  
Rahul Sundaram 7a392d
BuildRequires:   libcap-devel  
Rahul Sundaram 7a392d
BuildRequires:   libcgroup-devel libcgroup libxslt docbook-style-xsl
Rahul Sundaram 7a392d
BuildRequires:   dbus-glib-devel vala pkgconfig gtk2-devel  
Rahul Sundaram 7a392d
BuildRequires:   automake autoconf
Rahul Sundaram 7a392d
Rahul Sundaram 7a392d
# git clone git://anongit.freedesktop.org/systemd 
Rahul Sundaram 7a392d
# cd systemd;
Rahul Sundaram 7a392d
# git-archive --format=tar --prefix={name} {git_version} | xz  > systemd-{version}.{git_date}git{git_version}.tar.xz
Rahul Sundaram 7a392d
Rahul Sundaram 7a392d
Source0:         %{name}-%{version}.%{git_date}git%{git_version}.tar.xz
Rahul Sundaram 7a392d
#Source0:        http://www.freedesktop.org/FIXME/%{name}-%{version}.tar.bz2  
Rahul Sundaram 7a392d
Rahul Sundaram 7a392d
  
Rahul Sundaram 7a392d
%description 
Rahul Sundaram 7a392d
systemd is a system and session manager for Linux, compatible with SysV and 
Rahul Sundaram 7a392d
LSB init scripts. systemd provides aggressive parallelization capabilities, 
Rahul Sundaram 7a392d
uses socket and D-Bus activation for starting services, offers on-demand 
Rahul Sundaram 7a392d
starting of daemons, keeps track of processes using Linux cgroups, supports
Rahul Sundaram 7a392d
snapshotting and restoring of the system state, maintains mount and automount 
Rahul Sundaram 7a392d
points and implements an elaborate transactional dependency-based service 
Rahul Sundaram 7a392d
control logic. It can work as a drop-in replacement for sysvinit.
Rahul Sundaram 7a392d
Rahul Sundaram 7a392d
Rahul Sundaram 7a392d
%prep  
Rahul Sundaram 7a392d
%setup -q -n %{name}
Rahul Sundaram 7a392d
./bootstrap.sh
Rahul Sundaram 7a392d
  
Rahul Sundaram 7a392d
%build 
Rahul Sundaram 7a392d
 
Rahul Sundaram 7a392d
export V=1  
Rahul Sundaram 7a392d
%configure --sbindir=/sbin  --libexecdir=%{_prefix}/libexec --with-rootdir=  --with-distro=fedora CFLAGS="%{optflags}"  
Rahul Sundaram 7a392d
Rahul Sundaram 7a392d
make %{?_smp_mflags}
Rahul Sundaram 7a392d
  
Rahul Sundaram 7a392d
%install  
Rahul Sundaram 7a392d
Rahul Sundaram 7a392d
# workaround for lack of init.d directory
Rahul Sundaram 7a392d
mkdir -p %{buildroot}/%{_sysconfdir}/init.d
Rahul Sundaram 7a392d
Rahul Sundaram 7a392d
make DESTDIR=%{buildroot} install 
Rahul Sundaram 7a392d
Rahul Sundaram 7a392d
Rahul Sundaram 7a392d
%files  
Rahul Sundaram 7a392d
%defattr(-,root,root,-)  
Rahul Sundaram 7a392d
%dir %{_sysconfdir}/systemd  
Rahul Sundaram 7a392d
%{_sysconfdir}/systemd/*  
Rahul Sundaram 7a392d
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.systemd1.conf  
Rahul Sundaram 7a392d
%{_sysconfdir}/xdg/systemd/session  
Rahul Sundaram 7a392d
%{_sysconfdir}/init.d/reboot
Rahul Sundaram 7a392d
%{_datadir}/dbus-1/interfaces/org.freedesktop.systemd1.*.xml  
Rahul Sundaram 7a392d
/lib/udev/rules.d/*.rules  
Rahul Sundaram 7a392d
%{_bindir}/systemd  
Rahul Sundaram 7a392d
%{_bindir}/systemctl 
Rahul Sundaram 7a392d
%{_bindir}/systemadm  
Rahul Sundaram 7a392d
%{_mandir}/man?/*.*
Rahul Sundaram 7a392d
%{_libdir}/systemd
Rahul Sundaram 7a392d
%{_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
Rahul Sundaram 7a392d
Rahul Sundaram 7a392d
  
Rahul Sundaram 7a392d
%changelog
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 7a392d
 
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)
Rahul Sundaram 7a392d