root/trunk/umem.spec

Revision 12, 1.5 kB (checked in by richdawe, 8 years ago)

Beginnings of rpm build (currently broken)

  • Property svn:eol-style set to native
Line 
1 Name:           umem
2 Version:        1.0
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.gz
10 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
11
12 # XXX
13 #BuildRequires: 
14 #Requires:       
15
16 %description
17 This a port of Solaris's slab allocator, libumem, to Linux.
18
19 "A slab allocator is a cache management structure for efficient use
20 of [...] memory. [...] It is targeted for use of many small pieces
21 of memory chunks. By managing small memory chunks in the units
22 called slabs, this mechanism enables lower fragmentation, fast allocation,
23 and reclaming memory." (Description sourced from Wikipedia.)
24
25 %prep
26 %setup -q
27
28
29 %build
30 %configure
31 %{__make}
32 %{__make} check
33
34
35 %install
36 rm -rf $RPM_BUILD_ROOT
37 %makeinstall
38
39
40 %clean
41 rm -rf $RPM_BUILD_ROOT
42
43
44 %files
45 %defattr(-,root,root,-)
46 %doc AUTHORS COPYING COPYRIGHT INSTALL NEWS OPENSOLARIS.LICENSE README TODO
47 %{_libdir}/*.so
48
49
50 %package devel
51
52 Summary: Port of Solaris's slab allocator.
53
54 Group: Development/Libraries
55
56
57 %description devel
58
59 This contains the libraries and header files for using this port
60 of Solaris's slab allocator, libumem, to Linux.
61
62
63 %files devel
64 %defattr(-,root,root,-)
65 %{_includedir}/*.h
66 %{_includedir}/sys/*.h
67 %{_libdir}/*.so.*
68
69
70 %changelog
71 * Sun Mar 12 2006 Richard Dawe <rich@phekda.gotadsl.co.uk> - 1.0-1
72 - Initial packaging.
Note: See TracBrowser for help on using the browser.