Sophie

Sophie

distrib > Mandriva > 2009.0 > x86_64 > by-pkgid > 22e120a8be9dc16ede6610f9b7c8610a > files > 3

umem-1.0-3mdv2009.0.src.rpm

%define	major 0
%define libname %mklibname %{name} %{major}
%define develname %mklibname %{name} -d

Summary:	Port of Solaris's slab allocator
Name:		umem
Version:	1.0
Release:	%mkrel 3
Group:		System/Libraries
License:	CDDL
URL:		https://labs.omniti.com/trac/portableumem/
Source0:        https://labs.omniti.com/portableumem/releases/%{version}/%{name}-%{version}.tar.bz2
Patch0:		umem-no_rpath.diff
BuildRequires:	doxygen
BuildRequires:	libtool
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%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.)

%package -n	%{libname}
Summary:	Port of Solaris's slab allocator
Group:		System/Libraries

%description -n	%{libname}
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.)

%package -n	%{develname}
Summary:	Port of Solaris's slab allocator
Group:		Development/C
Requires:	%{libname} = %{version}
Provides:	lib%{name}-devel = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n	%{develname}
"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.)

This package contains the libraries and header files for using this port of
Solaris's slab allocator, libumem, to Linux.

%prep

%setup -q
%patch0 -p0

%build
rm -f configure
libtoolize --copy --force; aclocal; autoheader; autoconf; automake --add-missing --force-missing

%configure2_5x

make

make html

%check
make check || echo "tests failed"

%install
rm -rf %{buildroot}

%makeinstall_std

%clean
rm -rf %{buildroot}

%if %mdkversion < 200900
%post -n %{libname} -p /sbin/ldconfig
%endif

%if %mdkversion < 200900
%postun -n %{libname} -p /sbin/ldconfig
%endif

%files -n %{libname}
%defattr(-,root,root,-)
%doc COPYING COPYRIGHT OPENSOLARIS.LICENSE README TODO
%{_libdir}/*.so.0*

%files -n %{develname}
%defattr(-,root,root,-)
%doc docs/html/*
%{_includedir}/*.h
%{_includedir}/sys/*.h
%{_libdir}/*.so
%{_libdir}/*.la
%{_libdir}/*.a
%{_mandir}/man3/*



%changelog
* Wed Jul 30 2008 Thierry Vignaud <tvignaud@mandriva.com> 1.0-3mdv2009.0
+ Revision: 255137
- rebuild

  + Pixel <pixel@mandriva.com>
    - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers

* Thu Feb 07 2008 Oden Eriksson <oeriksson@mandriva.com> 1.0-1mdv2008.1
+ Revision: 163372
- import umem


* Thu Feb 07 2008 Oden Eriksson <oeriksson@mandriva.com> 1.0-1mdv2008.1
- initial Mandriva package (openSUSE import)