root/trunk/umem.spec.in

Revision 19, 1.9 kB (checked in by richdawe, 8 years ago)

Relax libtool version requirement; builds OK with libtool 1.4.2 on RH8.0

  • Property svn:eol-style set to native
Line 
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.gz
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
20
21 %description
22 This a port of Solaris's slab allocator, libumem, to Linux.
23
24 "A slab allocator is a cache management structure for efficient use
25 of [...] memory. [...] It is targeted for use of many small pieces
26 of memory chunks. By managing small memory chunks in the units
27 called slabs, this mechanism enables lower fragmentation, fast allocation,
28 and reclaming memory." (Description sourced from Wikipedia.)
29
30
31 %prep
32 %setup -q
33
34
35 %build
36 %configure
37 %{__make}
38 %{__make} check
39 %{__make} html
40
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44 %makeinstall
45
46 # Remove the libtool files -- we don't want them.
47 find $RPM_BUILD_ROOT%{_libdir} -name '*.la' | xargs rm -fv
48
49 # Remove the symlink to the SONAME. Let ldconfig manage that.
50 rm -fv $RPM_BUILD_ROOT%{_libdir}/*.so.[0-9]
51
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56
57 %pre
58 /sbin/ldconfig
59
60
61 %post
62 /sbin/ldconfig
63
64
65 %files
66 %defattr(-,root,root,-)
67 %doc AUTHORS COPYING COPYRIGHT INSTALL NEWS OPENSOLARIS.LICENSE README
68 %{_libdir}/*.so.*
69
70
71 %package devel
72
73 Summary: Port of Solaris's slab allocator.
74
75 Group: Development/Libraries
76
77
78 %description devel
79
80 This contains the libraries and header files for using this port
81 of Solaris's slab allocator, libumem, to Linux.
82
83
84 %files devel
85 %defattr(-,root,root,-)
86 %doc AUTHORS COPYING COPYRIGHT INSTALL NEWS OPENSOLARIS.LICENSE README TODO
87 %doc docs/html
88 %{_includedir}/*.h
89 %{_includedir}/sys/*.h
90 %{_libdir}/*.so
91 %{_libdir}/*.a
Note: See TracBrowser for help on using the browser.