2
Version: @PACKAGE_VERSION@
4
Summary: Port of Solaris's slab allocator.
6
Group: System Environment/Libraries
8
URL: https://labs.omniti.com/trac/portableumem/
9
Source0: %{name}-%{version}.tar.bz2
10
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
12
BuildRequires: autoconf >= 2.50
13
BuildRequires: automake >= 1.4
14
BuildRequires: libtool >= 1.4.2
15
BuildRequires: doxygen
17
BuildRequires: binutils
23
This a port of Solaris's slab allocator, libumem, to Linux.
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.)
44
rm -rf $RPM_BUILD_ROOT
47
# Remove the libtool files -- we don't want them.
48
find $RPM_BUILD_ROOT%{_libdir} -name '*.la' | xargs rm -fv
50
# Remove the symlink to the SONAME. Let ldconfig manage that.
51
rm -fv $RPM_BUILD_ROOT%{_libdir}/*.so.[0-9]
53
# Build the pkgconfig configurations.
54
mkdir -p $RPM_BUILD_ROOT%{_libdir}/pkgconfig
56
cat<<EOT >$RPM_BUILD_ROOT%{_libdir}/pkgconfig/%{name}-%{version}.pc
58
exec_prefix=%{_exec_prefix}
60
includedir=%{_includedir}
64
Description: Port of Solaris's slab allocator.
65
URL: https://labs.omniti.com/trac/portableumem/
67
Libs: -L\${libdir} -lumem
71
cat<<EOT >$RPM_BUILD_ROOT%{_libdir}/pkgconfig/%{name}-malloc-%{version}.pc
73
exec_prefix=%{_exec_prefix}
75
includedir=%{_includedir}
79
Description: Port of Solaris's slab allocator. Libc malloc replacement.
80
URL: https://labs.omniti.com/trac/portableumem/
82
Libs: -L\${libdir} -lumem_malloc
88
rm -rf $RPM_BUILD_ROOT
100
%defattr(-,root,root,-)
101
%doc AUTHORS COPYING COPYRIGHT INSTALL NEWS OPENSOLARIS.LICENSE README
107
Summary: Port of Solaris's slab allocator.
109
Group: Development/Libraries
116
This contains the libraries and header files for using this port
117
of Solaris's slab allocator, libumem, to Linux.
121
%defattr(-,root,root,-)
122
%doc AUTHORS COPYING COPYRIGHT INSTALL NEWS OPENSOLARIS.LICENSE README TODO
125
%{_includedir}/sys/*.h
129
%{_libdir}/pkgconfig/*.pc