]> git.pld-linux.org Git - packages/jemalloc.git/blame - jemalloc.spec
- prefix symbols with je_ (for redis 2.4, feel free to do it otherwise so it would...
[packages/jemalloc.git] / jemalloc.spec
CommitLineData
2bbbeb5f
ER
1Summary: General-purpose scalable concurrent malloc implementation
2Name: jemalloc
0f6e49a9 3Version: 2.2.3
f72bc093 4Release: 2
2bbbeb5f
ER
5License: BSD
6Group: Libraries
7URL: http://www.canonware.com/jemalloc/
8Source0: 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
11Patch0: no_pprof.patch
12BuildRequires: /usr/bin/xsltproc
13BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15%description
16General-purpose scalable concurrent malloc(3) implementation. This
17distribution is the stand-alone "portable" implementation of jemalloc.
18
19%package devel
20Summary: Development files for jemalloc
21Group: Development/Libraries
22Requires: %{name} = %{version}-%{release}
23
24%description devel
25This package contains libraries and header files for developing
26applications that use jemalloc library.
27
28%package static
29Summary: Static jemalloc library
30Summary(pl.UTF-8): Statyczna biblioteka jemalloc
31Group: Development/Libraries
32Requires: %{name}-devel = %{version}-%{release}
33
34%description static
35Static jemalloc library.
36
37%description static -l pl.UTF-8
38Statyczna biblioteka jemalloc.
39
40
41%prep
42%setup -q
43%patch0 -p0
44
45# This is truncated during build. Seems interesting to save.
46cp -p VERSION version
47
48%build
f72bc093
ER
49%configure \
50 --with-jemalloc-prefix=je_
51
2bbbeb5f
ER
52%{__make}
53
54%install
55rm -rf $RPM_BUILD_ROOT
56%{__make} install \
57 DESTDIR=$RPM_BUILD_ROOT
58
59# restore
60cp -pf version VERSION
61
62# soname improperly made, use fake main name (just use our current version)
63mv $RPM_BUILD_ROOT%{_libdir}/libjemalloc.so.{?,%{version}}
64ln -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
71rm -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
This page took 0.07647 seconds and 4 git commands to generate.