%define major 0 %define libname %mklibname hoard %{major} %define develname %mklibname hoard -d Summary: The Hoard Memory Allocator Name: libhoard Version: 3.9.0 Release: %mkrel 5 Group: System/Libraries License: GPL URL: http://www.hoard.org/ Source0: http://www.cs.umass.edu/~emery/hoard/hoard-%{version}/libhoard-3.9.tar.gz Patch0: libhoard-3.9-glibc-2.14+fix.diff Patch1: libhoard-3.9-soname.diff %description The Hoard memory allocator is a fast, scalable, and memory-efficient memory allocator for Linux, Solaris, Mac OS X, and Windows. Hoard is a drop-in replacement for malloc that can dramatically improve application performance, especially for multithreaded programs running on multiprocessors and multicore CPUs. %package -n %{libname} Summary: A fast, scalable, and memory-efficient memory allocator Group: System/Libraries %description -n %{libname} The Hoard memory allocator is a fast, scalable, and memory-efficient memory allocator for Linux, Solaris, Mac OS X, and Windows. Hoard is a drop-in replacement for malloc that can dramatically improve application performance, especially for multithreaded programs running on multiprocessors and multicore CPUs. %package -n %{develname} Summary: Development files for libhoard Group: Development/C++ Requires: %{libname} >= %{version} Provides: hoard-devel = %{version} %description -n %{develname} This package contains development files for libhoard. %prep %setup -q -n emeryberger-Hoard-d065953 find -type f | xargs chmod 644 %patch0 -p0 %patch1 -p0 cp -pf src/Makefile{,.orig} perl -pi -e 's/-O/-fPIC -O/g;s/-static//g;s/-pipe//g' src/Makefile # on non-i586 we assume that the default arch is sufficient %ifnarch i586 perl -pi -e 's/-march=pentiumpro //g;s/ -malign-double//g' src/Makefile %endif %build pushd src make generic-gcc %install install -d %{buildroot}%{_libdir} install -m0755 src/libhoard.so.%{major} %{buildroot}%{_libdir} ln -s libhoard.so.%{major} %{buildroot}%{_libdir}/libhoard.so %files -n %{libname} %doc doc NEWS README THANKS %{_libdir}/libhoard.so.%{major}* %files -n %{develname} %{_libdir}/libhoard.so %changelog * Wed Oct 15 2014 umeabot <umeabot> 3.9.0-5.mga5 + Revision: 749832 - Second Mageia 5 Mass Rebuild * Tue Sep 16 2014 umeabot <umeabot> 3.9.0-4.mga5 + Revision: 681522 - Mageia 5 Mass Rebuild * Fri Oct 18 2013 umeabot <umeabot> 3.9.0-3.mga4 + Revision: 507066 - Mageia 4 Mass Rebuild * Sat Jan 12 2013 umeabot <umeabot> 3.9.0-2.mga3 + Revision: 357461 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Tue Sep 25 2012 oden <oden> 3.9.0-1.mga3 + Revision: 297531 - imported package libhoard * Tue Sep 25 2012 Oden Eriksson <oeriksson@mandriva.com> 3.9.0-1.mga2 - imported and adapted from Mandriva