Skip to content

Instantly share code, notes, and snippets.

@Rudd-O
Created July 17, 2012 01:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Rudd-O/3126484 to your computer and use it in GitHub Desktop.
Save Rudd-O/3126484 to your computer and use it in GitHub Desktop.
libeatmydata spec file
Name: libeatmydata
Version: 59
Release: 1%{?dist}
Summary: Disable fsync() and friends
Group: System Environment/Libraries
License: GPLv3+
Url: http://flamingspork.com/projects/libeatmydata/
Source0: http://flamingspork.com/projects/libeatmydata/libeatmydata-59.tar.gz
%description
LD_PRELOAD library that disables all forms of writing data safely to
disk. fsync() becomes a NO-OP, O_SYNC is removed etc. The idea is to
use in testing to get faster test runs where real durability is not
required.
DO NOT use libeatmydata on software where you care about what it stores.
It's called libEAT-MY-DATA for a reason.
%prep
%setup -q
%build
%configure
make %{?_smp_mflags}
%install
%makeinstall
rm "$RPM_BUILD_ROOT"%{_libdir}/*.la
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc README COPYING AUTHORS
%{_libdir}/*.so*
%{_bindir}/*
%{_libexecdir}/*.sh
%changelog
* Mon Jul 16 2012 Manuel Amador (Rudd-O) <rudd-o@rudd-o.com> - 59-1
- Initial RPM release.
* Fri May 14 2010 Zing <zing@fastmail.fm> - 15-1
- Initial RPM release.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment