]> git.pld-linux.org Git - packages/jemalloc.git/blob - jemalloc.spec
- update arch list
[packages/jemalloc.git] / jemalloc.spec
1 Summary:        General-purpose scalable concurrent malloc implementation
2 Name:           jemalloc
3 Version:        2.2.3
4 Release:        2
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
9 # Source0-md5:  9da87786f2cb399913daa01f95ad6b91
10 # Remove pprof, as it already exists in google-perftools
11 Patch0:         no_pprof.patch
12 BuildRequires:  /usr/bin/xsltproc
13 # list from include/jemalloc/internal/jemalloc_internal.h.in
14 ExclusiveArch:  %{ix86} %{x8664} alpha sparc64 arm mips s390
15 # broken for us
16 # alpha: Missing implementation for 64-bit atomic operations"
17 # alpha sparc ppc: Missing implementation for 32-bit atomic operations"
18 ExcludeArch:    alpha %{ppc} sparc
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 General-purpose scalable concurrent malloc(3) implementation. This
23 distribution is the stand-alone "portable" implementation of jemalloc.
24
25 %package devel
26 Summary:        Development files for jemalloc
27 Group:          Development/Libraries
28 Requires:       %{name} = %{version}-%{release}
29
30 %description devel
31 This package contains libraries and header files for developing
32 applications that use jemalloc library.
33
34 %package static
35 Summary:        Static jemalloc library
36 Summary(pl.UTF-8):      Statyczna biblioteka jemalloc
37 Group:          Development/Libraries
38 Requires:       %{name}-devel = %{version}-%{release}
39
40 %description static
41 Static jemalloc library.
42
43 %description static -l pl.UTF-8
44 Statyczna biblioteka jemalloc.
45
46
47 %prep
48 %setup -q
49 %patch0 -p0
50
51 # This is truncated during build. Seems interesting to save.
52 cp -p VERSION version
53
54 %build
55 %configure \
56   --with-jemalloc-prefix=je_
57
58 %{__make}
59
60 %install
61 rm -rf $RPM_BUILD_ROOT
62 %{__make} install \
63         DESTDIR=$RPM_BUILD_ROOT
64
65 # restore
66 cp -pf version VERSION
67
68 # soname improperly made, use fake main name (just use our current version)
69 mv $RPM_BUILD_ROOT%{_libdir}/libjemalloc.so.{?,%{version}}
70 ln -s $(basename $RPM_BUILD_ROOT%{_libdir}/libjemalloc.so.*.*.*) \
71         $RPM_BUILD_ROOT%{_libdir}/libjemalloc.so.1
72
73 # Install this with doc macro instead
74 %{__rm} $RPM_BUILD_ROOT%{_docdir}/%{name}/jemalloc.html
75
76 %clean
77 rm -rf $RPM_BUILD_ROOT
78
79 %post   -p /sbin/ldconfig
80 %postun -p /sbin/ldconfig
81
82 %files
83 %defattr(644,root,root,755)
84 %doc COPYING README VERSION
85 %doc doc/jemalloc.html
86 %attr(755,root,root) %{_libdir}/libjemalloc.so.*.*.*
87 %ghost %{_libdir}/libjemalloc.so.1
88
89 %files devel
90 %defattr(644,root,root,755)
91 %{_includedir}/jemalloc
92 %{_libdir}/libjemalloc.so
93 %{_mandir}/man3/jemalloc.3*
94
95 %files static
96 %defattr(644,root,root,755)
97 %{_libdir}/libjemalloc.a
98 %{_libdir}/libjemalloc_pic.a
This page took 0.109264 seconds and 3 git commands to generate.