Name: openbsd-malloc Version: 0 Release: 4%{?dist} Summary: Alternative malloc() implementation License: Beerware (Distributable) Group: System Environment/Libraries Url: http://mr.himki.net/index-alloc.html Source0: http://mr.himki.net/OpenBSD_malloc_Linux.c Source1: LICENSE Source2: %name BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description This package contains experimental alternative to glibc implementation of malloc() which is prone to heap fragmentation due to use of deprecated brk() syscall; one might find it useful to reduce e.g. Firefox memory consumption (though reportedly won't work with e.g. Emacs). Use openbsd-malloc some-program to run some-program this way. %prep %setup -c -T %build gcc -shared -fPIC %{optflags} %{SOURCE0} -o openbsd-malloc.so %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%_bindir mkdir -p $RPM_BUILD_ROOT%_libdir install -pD -m755 openbsd-malloc.so $RPM_BUILD_ROOT%_libdir/ install -pD -m644 %{SOURCE1} . install -pD -m755 %{SOURCE2} $RPM_BUILD_ROOT%_bindir/%name %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{_libdir}/openbsd-malloc.so %{_bindir}/* %doc LICENSE %changelog * Sat May 12 2007 Peter Lemenkov 0-4 - Added prep-section - Renamed to less general name * Wed Apr 11 2007 Peter Lemenkov 0-3 - Removed patch0 because its accepted upstream. * Tue Apr 10 2007 Peter Lemenkov 0-2 - Added optflags - Added patch for powerpc-arch * Mon Apr 9 2007 Peter Lemenkov 0-1 - initial build for Fedora Extras * Mon Jan 15 2007 Michael Shigorin 0-alt1 - built for ALT Linux