2006-05-13 20:37:27 +00:00
|
|
|
Name: @PACKAGE_NAME@
|
|
|
|
Version: @PACKAGE_VERSION@
|
2006-03-12 10:19:52 +00:00
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Port of Solaris's slab allocator.
|
|
|
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
License: CDDL
|
|
|
|
URL: http://sourceforge.net/projects/umem/
|
|
|
|
Source0: %{name}-%{version}.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
2006-05-13 20:51:49 +00:00
|
|
|
BuildRequires: autoconf >= 2.50
|
|
|
|
BuildRequires: automake >= 1.4
|
|
|
|
BuildRequires: libtool >= 1.5.0
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: binutils
|
|
|
|
BuildRequires: make
|
|
|
|
|
2006-03-12 10:19:52 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This a port of Solaris's slab allocator, libumem, to Linux.
|
|
|
|
|
|
|
|
"A slab allocator is a cache management structure for efficient use
|
|
|
|
of [...] memory. [...] It is targeted for use of many small pieces
|
|
|
|
of memory chunks. By managing small memory chunks in the units
|
|
|
|
called slabs, this mechanism enables lower fragmentation, fast allocation,
|
|
|
|
and reclaming memory." (Description sourced from Wikipedia.)
|
|
|
|
|
2006-05-13 20:51:49 +00:00
|
|
|
|
2006-03-12 10:19:52 +00:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure
|
|
|
|
%{__make}
|
|
|
|
%{__make} check
|
2006-05-13 20:37:27 +00:00
|
|
|
%{__make} html
|
2006-03-12 10:19:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%makeinstall
|
|
|
|
|
2006-03-12 18:23:52 +00:00
|
|
|
# Remove the libtool files -- we don't want them.
|
|
|
|
find $RPM_BUILD_ROOT%{_libdir} -name '*.la' | xargs rm -fv
|
|
|
|
|
|
|
|
# Remove the symlink to the SONAME. Let ldconfig manage that.
|
|
|
|
rm -fv $RPM_BUILD_ROOT%{_libdir}/*.so.[0-9]
|
|
|
|
|
2006-03-12 10:19:52 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
2006-03-12 18:23:52 +00:00
|
|
|
%pre
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
|
2006-03-12 10:19:52 +00:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2006-05-13 20:37:27 +00:00
|
|
|
%doc AUTHORS COPYING COPYRIGHT INSTALL NEWS OPENSOLARIS.LICENSE README
|
2006-03-12 18:23:52 +00:00
|
|
|
%{_libdir}/*.so.*
|
2006-03-12 10:19:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
|
|
|
Summary: Port of Solaris's slab allocator.
|
|
|
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
|
|
|
This contains the libraries and header files for using this port
|
|
|
|
of Solaris's slab allocator, libumem, to Linux.
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
2006-05-13 20:37:27 +00:00
|
|
|
%doc AUTHORS COPYING COPYRIGHT INSTALL NEWS OPENSOLARIS.LICENSE README TODO
|
|
|
|
%doc docs/html
|
2006-03-12 10:19:52 +00:00
|
|
|
%{_includedir}/*.h
|
|
|
|
%{_includedir}/sys/*.h
|
2006-03-12 18:23:52 +00:00
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/*.a
|