e4rat/e4rat.spec

60 lines
2.1 KiB
RPMSpec
Raw Permalink Normal View History

Name: e4rat
Version: 0.2.3
Release: 1mamba
Summary: A toolset to accelerate the boot process as well as application startups
Group: System/Tools
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://e4rat.sourceforge.net/
Source: http://downloads.sourceforge.net/project/e4rat/%{version}/e4rat_%{version}_src.tar.gz
Patch0: e4rat-0.2.3-libboost-1.50.0.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libe2fs-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
e4rat ("Ext4 - Reducing Access Times") is a toolset to accelerate the boot process as well as application startups. Through physical file realloction e4rat eliminates both seek times and rotational delays. This leads to a high disk transfer rate.
Placing files on disk in a sequentially ordered way allows to efficiently read-ahead files in parallel to the program startup. The combination of sequentially reading and a high cache hit rate may reduce the boot time by a factor of three, as the example below shows.
e4rat is based on the online defragmentation ioctl EXT4_IOC_MOVE_EXT from the Ext4 filesystem, which was introduced in Linux Kernel 2.6.31. Other filesystem types and/or earlier versions of extended filesystems are not supported.
%debug_package
%prep
%setup -q
%patch0 -p1
%build
%cmake -d build
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/e4rat.conf
%{_libdir}/libe4rat-core.so
%{_libdir}/libe4rat-core.so.0
%{_sbindir}/e4rat-collect
%{_sbindir}/e4rat-preload
%{_sbindir}/e4rat-realloc
%{_mandir}/man5/e4rat.conf.5.gz
%{_mandir}/man8/e4rat-collect.8.gz
%{_mandir}/man8/e4rat-preload.8.gz
%{_mandir}/man8/e4rat-realloc.8.gz
%doc LICENSE
%changelog
* Wed Oct 31 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.2.3-1mamba
- package created by autospec