]>
Commit | Line | Data |
---|---|---|
2bbbeb5f ER |
1 | Summary: General-purpose scalable concurrent malloc implementation |
2 | Name: jemalloc | |
0f6e49a9 | 3 | Version: 2.2.3 |
f72bc093 | 4 | Release: 2 |
2bbbeb5f ER |
5 | License: BSD |
6 | Group: Libraries | |
7 | URL: http://www.canonware.com/jemalloc/ | |
8 | Source0: http://www.canonware.com/download/jemalloc/%{name}-%{version}.tar.bz2 | |
0f6e49a9 | 9 | # Source0-md5: 9da87786f2cb399913daa01f95ad6b91 |
2bbbeb5f ER |
10 | # Remove pprof, as it already exists in google-perftools |
11 | Patch0: no_pprof.patch | |
12 | BuildRequires: /usr/bin/xsltproc | |
13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
14 | ||
15 | %description | |
16 | General-purpose scalable concurrent malloc(3) implementation. This | |
17 | distribution is the stand-alone "portable" implementation of jemalloc. | |
18 | ||
19 | %package devel | |
20 | Summary: Development files for jemalloc | |
21 | Group: Development/Libraries | |
22 | Requires: %{name} = %{version}-%{release} | |
23 | ||
24 | %description devel | |
25 | This package contains libraries and header files for developing | |
26 | applications that use jemalloc library. | |
27 | ||
28 | %package static | |
29 | Summary: Static jemalloc library | |
30 | Summary(pl.UTF-8): Statyczna biblioteka jemalloc | |
31 | Group: Development/Libraries | |
32 | Requires: %{name}-devel = %{version}-%{release} | |
33 | ||
34 | %description static | |
35 | Static jemalloc library. | |
36 | ||
37 | %description static -l pl.UTF-8 | |
38 | Statyczna biblioteka jemalloc. | |
39 | ||
40 | ||
41 | %prep | |
42 | %setup -q | |
43 | %patch0 -p0 | |
44 | ||
45 | # This is truncated during build. Seems interesting to save. | |
46 | cp -p VERSION version | |
47 | ||
48 | %build | |
f72bc093 ER |
49 | %configure \ |
50 | --with-jemalloc-prefix=je_ | |
51 | ||
2bbbeb5f ER |
52 | %{__make} |
53 | ||
54 | %install | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | %{__make} install \ | |
57 | DESTDIR=$RPM_BUILD_ROOT | |
58 | ||
59 | # restore | |
60 | cp -pf version VERSION | |
61 | ||
62 | # soname improperly made, use fake main name (just use our current version) | |
63 | mv $RPM_BUILD_ROOT%{_libdir}/libjemalloc.so.{?,%{version}} | |
64 | ln -s $(basename $RPM_BUILD_ROOT%{_libdir}/libjemalloc.so.*.*.*) \ | |
65 | $RPM_BUILD_ROOT%{_libdir}/libjemalloc.so.1 | |
66 | ||
67 | # Install this with doc macro instead | |
68 | %{__rm} $RPM_BUILD_ROOT%{_docdir}/%{name}/jemalloc.html | |
69 | ||
70 | %clean | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %post -p /sbin/ldconfig | |
74 | %postun -p /sbin/ldconfig | |
75 | ||
76 | %files | |
77 | %defattr(644,root,root,755) | |
78 | %doc COPYING README VERSION | |
79 | %doc doc/jemalloc.html | |
80 | %attr(755,root,root) %{_libdir}/libjemalloc.so.*.*.* | |
81 | %ghost %{_libdir}/libjemalloc.so.1 | |
82 | ||
83 | %files devel | |
84 | %defattr(644,root,root,755) | |
85 | %{_includedir}/jemalloc | |
86 | %{_libdir}/libjemalloc.so | |
87 | %{_mandir}/man3/jemalloc.3* | |
88 | ||
89 | %files static | |
90 | %defattr(644,root,root,755) | |
91 | %{_libdir}/libjemalloc.a | |
92 | %{_libdir}/libjemalloc_pic.a |