Sophie

Sophie

distrib > Mandriva > 2011.0 > i586 > by-pkgid > 37721de9e3ab3d7cdd9ddc3ff4d030fb > files > 5

einit-0.40.0-3mdv2011.0.src.rpm

Summary:	An init system used on Unix-based operating systems
Name:		einit
Version:	0.40.0
Release:	%mkrel 3
License:	BSD
Group:		System/Configuration/Boot and Init
Url:		http://einit.jyujin.de
Source0:	http://einit.jyujin.de/files/%{name}-%{version}.tar.bz2
Patch0:		einit-0.40.0-open-args.patch
Patch1:		einit-0.40.0-format_not_a_string_literal_and_no_format_arguments.patch
Patch2:		einit-0.40.0-ldflags.patch
BuildRequires:	expat-devel
BuildRequires:	ncurses-devel
BuildRequires:	scons
BuildRoot:	%{_tmppath}/%{name}-%{version}-buildroot

%description
eINIT is a replacement for /sbin/init -- the programme that is responsible 
for booting your computer -- that is all about not wasting resources; 
that's not wasting CPU cycles, but also not wasting RAM either, which should 
make eINIT very well suited for embedded applications. However, that's not 
to say eINIT wouldn't work fine (and swiftly) on regular desktops, laptops 
or servers.

%package devel
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{name} = %{version}-%{release}
Requires:	expat-devel

%description devel
Development files and headers for %{name}.

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1

%build
%define _disable_ld_no_undefined 1

%setup_compile_flags
%scons libdir=%{_lib}

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%scons_install destdir=%{buildroot} libdir=%{_lib}

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc
%{_sysconfdir}/einit
/sbin/*
/%{_lib}/*

%files devel
%defattr(-,root,root)
%{_includedir}/*


%changelog
* Thu Dec 09 2010 Oden Eriksson <oeriksson@mandriva.com> 0.40.0-3mdv2011.0
+ Revision: 618033
- the mass rebuild of 2010.0 packages

* Thu Sep 10 2009 Thierry Vignaud <tv@mandriva.org> 0.40.0-2mdv2010.0
+ Revision: 437405
- rebuild

* Thu Jan 29 2009 Tomasz Pawel Gajc <tpg@mandriva.org> 0.40.0-1mdv2009.1
+ Revision: 335354
- add buildrequires on ncurses-devel
- fix license
- Patch1: fix build with -Werror=format-security
- Patch2: compile with %%ldflags
- use _disable_ld_no_undefined
- import einit