| 1 |
Name: @PACKAGE_NAME@ |
|---|
| 2 |
Version: @PACKAGE_VERSION@ |
|---|
| 3 |
Release: 1%{?dist} |
|---|
| 4 |
Summary: Port of Solaris's slab allocator. |
|---|
| 5 |
|
|---|
| 6 |
Group: System Environment/Libraries |
|---|
| 7 |
License: CDDL |
|---|
| 8 |
URL: http://sourceforge.net/projects/umem/ |
|---|
| 9 |
Source0: %{name}-%{version}.tar.bz2 |
|---|
| 10 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
|---|
| 11 |
|
|---|
| 12 |
BuildRequires: autoconf >= 2.50 |
|---|
| 13 |
BuildRequires: automake >= 1.4 |
|---|
| 14 |
BuildRequires: libtool >= 1.4.2 |
|---|
| 15 |
BuildRequires: doxygen |
|---|
| 16 |
BuildRequires: gcc |
|---|
| 17 |
BuildRequires: binutils |
|---|
| 18 |
BuildRequires: make |
|---|
| 19 |
BuildRequires: mktemp |
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
%description |
|---|
| 23 |
This a port of Solaris's slab allocator, libumem, to Linux. |
|---|
| 24 |
|
|---|
| 25 |
"A slab allocator is a cache management structure for efficient use |
|---|
| 26 |
of [...] memory. [...] It is targeted for use of many small pieces |
|---|
| 27 |
of memory chunks. By managing small memory chunks in the units |
|---|
| 28 |
called slabs, this mechanism enables lower fragmentation, fast allocation, |
|---|
| 29 |
and reclaming memory." (Description sourced from Wikipedia.) |
|---|
| 30 |
|
|---|
| 31 |
|
|---|
| 32 |
%prep |
|---|
| 33 |
%setup -q |
|---|
| 34 |
|
|---|
| 35 |
|
|---|
| 36 |
%build |
|---|
| 37 |
%configure |
|---|
| 38 |
%{__make} |
|---|
| 39 |
%{__make} check |
|---|
| 40 |
%{__make} html |
|---|
| 41 |
|
|---|
| 42 |
|
|---|
| 43 |
%install |
|---|
| 44 |
rm -rf $RPM_BUILD_ROOT |
|---|
| 45 |
%makeinstall |
|---|
| 46 |
|
|---|
| 47 |
# Remove the libtool files -- we don't want them. |
|---|
| 48 |
find $RPM_BUILD_ROOT%{_libdir} -name '*.la' | xargs rm -fv |
|---|
| 49 |
|
|---|
| 50 |
# Remove the symlink to the SONAME. Let ldconfig manage that. |
|---|
| 51 |
rm -fv $RPM_BUILD_ROOT%{_libdir}/*.so.[0-9] |
|---|
| 52 |
|
|---|
| 53 |
|
|---|
| 54 |
%clean |
|---|
| 55 |
rm -rf $RPM_BUILD_ROOT |
|---|
| 56 |
|
|---|
| 57 |
|
|---|
| 58 |
%pre |
|---|
| 59 |
/sbin/ldconfig |
|---|
| 60 |
|
|---|
| 61 |
|
|---|
| 62 |
%post |
|---|
| 63 |
/sbin/ldconfig |
|---|
| 64 |
|
|---|
| 65 |
|
|---|
| 66 |
%files |
|---|
| 67 |
%defattr(-,root,root,-) |
|---|
| 68 |
%doc AUTHORS COPYING COPYRIGHT INSTALL NEWS OPENSOLARIS.LICENSE README |
|---|
| 69 |
%{_libdir}/*.so.* |
|---|
| 70 |
|
|---|
| 71 |
|
|---|
| 72 |
%package devel |
|---|
| 73 |
|
|---|
| 74 |
Summary: Port of Solaris's slab allocator. |
|---|
| 75 |
|
|---|
| 76 |
Group: Development/Libraries |
|---|
| 77 |
|
|---|
| 78 |
|
|---|
| 79 |
%description devel |
|---|
| 80 |
|
|---|
| 81 |
This contains the libraries and header files for using this port |
|---|
| 82 |
of Solaris's slab allocator, libumem, to Linux. |
|---|
| 83 |
|
|---|
| 84 |
|
|---|
| 85 |
%files devel |
|---|
| 86 |
%defattr(-,root,root,-) |
|---|
| 87 |
%doc AUTHORS COPYING COPYRIGHT INSTALL NEWS OPENSOLARIS.LICENSE README TODO |
|---|
| 88 |
%doc docs/html |
|---|
| 89 |
%{_includedir}/*.h |
|---|
| 90 |
%{_includedir}/sys/*.h |
|---|
| 91 |
%{_libdir}/*.so |
|---|
| 92 |
%{_libdir}/*.a |
|---|