packages: hoard/hoard.spec (NEW) - new, based on mandriva spec

glen glen at pld-linux.org
Fri Jan 1 23:16:35 CET 2010


Author: glen                         Date: Fri Jan  1 22:16:35 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new, based on mandriva spec

---- Files affected:
packages/hoard:
   hoard.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/hoard/hoard.spec
diff -u /dev/null packages/hoard/hoard.spec:1.1
--- /dev/null	Fri Jan  1 23:16:35 2010
+++ packages/hoard/hoard.spec	Fri Jan  1 23:16:30 2010
@@ -0,0 +1,63 @@
+# $Revision$, $Date$
+%define		ver	%(echo %{version} | tr -d .)
+Summary:	A fast, scalable, and memory-efficient memory allocator
+Name:		hoard
+Version:	3.8
+Release:	1
+License:	GPL
+Group:		Libraries
+URL:		http://www.hoard.org/
+BuildRequires:	sed >= 4.0
+Source0:	http://www.cs.umass.edu/~emery/hoard/hoard-%{version}/source/%{name}-%{ver}.tar.gz
+# Source0-md5:	f2d8ec3a13d4d9ba7b1c48c777707ef5
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The Hoard memory allocator is a fast, scalable, and memory-efficient
+memory allocator. It runs on a variety of platforms, including Linux,
+Solaris, and Windows. Hoard is a drop-in replacement for malloc() that
+can dramatically improve application performance, especially for
+multithreaded programs running on multiprocessors. No change to your
+source is necessary. Just link it in or set just one environment
+variable, e.g.:
+
+LD_PRELOAD=%{_libdir}/libhoard.so:%{_libdir}/libdl.so
+
+%prep
+%setup -q -n %{name}-%{ver}
+sed -i -e '
+	s/-O/-fPIC -O/g;
+	s/-static//g;
+	s/-pipe//g;
+	s/-march=pentiumpro //g;
+	s/ -malign-double//g;
+	s/g++/$(CXX)/;
+	s/-O3/$(CXXFLAGS)/;
+' src/Makefile
+
+%build
+%{__make} -C src generic-gcc \
+	CXX="%{__cxx}" \
+	CXXFLAGS="%{rpmcxxflags}"
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_libdir}
+install -p src/libhoard.so $RPM_BUILD_ROOT%{_libdir}
+
+%files
+%defattr(644,root,root,755)
+%doc doc NEWS README THANKS
+%{_libdir}/libhoard.so
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2010/01/01 22:16:30  glen
+- new, based on mandriva spec
================================================================


More information about the pld-cvs-commit mailing list