summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrichdawe <richdawe@1665872d-e22b-0410-9e5d-a57ad4215e6d>2006-03-12 10:19:52 +0000
committerrichdawe <richdawe@1665872d-e22b-0410-9e5d-a57ad4215e6d>2006-03-12 10:19:52 +0000
commitd59cc23ddd8749ace266991f5f60284ecbdc6ec0 (patch)
treeabe080237a05c63b32774f22b61b5968ca52c6c5
parent85f82fdd6292c9f784e456e93d69d8be9912fb07 (diff)
downloadportableumem-d59cc23ddd8749ace266991f5f60284ecbdc6ec0.tar.gz
Beginnings of rpm build (currently broken)
git-svn-id: https://labs.omniti.com/portableumem/trunk@12 1665872d-e22b-0410-9e5d-a57ad4215e6d
-rw-r--r--Makefile.am4
-rw-r--r--umem.spec72
2 files changed, 75 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index cfeaa4e..762f696 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,4 +1,4 @@
-EXTRA_DIST = COPYRIGHT OPENSOLARIS.LICENSE
+EXTRA_DIST = COPYRIGHT OPENSOLARIS.LICENSE umem.spec
lib_LTLIBRARIES = libumem.la
noinst_PROGRAMS = umem_test
@@ -29,6 +29,8 @@ libumem_la_SOURCES = init_lib.c \
sys/vmem.h \
sys/vmem_impl_user.h
+include_HEADERS = umem.h sys/vmem.h
+
TESTS = umem_test
# malloc.c
diff --git a/umem.spec b/umem.spec
new file mode 100644
index 0000000..07c4a5b
--- /dev/null
+++ b/umem.spec
@@ -0,0 +1,72 @@
+Name: umem
+Version: 1.0
+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)
+
+# XXX
+#BuildRequires:
+#Requires:
+
+%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.)
+
+%prep
+%setup -q
+
+
+%build
+%configure
+%{__make}
+%{__make} check
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%makeinstall
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING COPYRIGHT INSTALL NEWS OPENSOLARIS.LICENSE README TODO
+%{_libdir}/*.so
+
+
+%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,-)
+%{_includedir}/*.h
+%{_includedir}/sys/*.h
+%{_libdir}/*.so.*
+
+
+%changelog
+* Sun Mar 12 2006 Richard Dawe <rich@phekda.gotadsl.co.uk> - 1.0-1
+- Initial packaging.