[packages/jemalloc] - updated to 4.1.0 (note: new soname) - removed outdated no_pprof patch, now modified version of ppr

qboosh qboosh at pld-linux.org
Fri Apr 8 22:18:06 CEST 2016


commit aa2a1178af528437768c160191839743dfa62c71
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Apr 8 22:18:04 2016 +0200

    - updated to 4.1.0 (note: new soname)
    - removed outdated no_pprof patch, now modified version of pprof called jeprof is included

 jemalloc.spec  | 23 +++++++++++++----------
 no_pprof.patch | 11 -----------
 2 files changed, 13 insertions(+), 21 deletions(-)
---
diff --git a/jemalloc.spec b/jemalloc.spec
index be678a4..d176678 100644
--- a/jemalloc.spec
+++ b/jemalloc.spec
@@ -1,19 +1,18 @@
 Summary:	General-purpose scalable concurrent malloc implementation
 Summary(pl.UTF-8):	Ogólnego przeznaczenia, skalowalna, współbieżna implementacja funkcji malloc
 Name:		jemalloc
-Version:	3.6.0
-Release:	3
+Version:	4.1.0
+Release:	1
 License:	BSD
 Group:		Libraries
 Source0:	http://www.canonware.com/download/jemalloc/%{name}-%{version}.tar.bz2
-# Source0-md5:	e76665b63a8fddf4c9f26d2fa67afdf2
-# Remove pprof, as it already exists in google-perftools
-Patch0:		no_pprof.patch
+# Source0-md5:	c4e53c947905a533d5899e5cc3da1f94
 URL:		http://www.canonware.com/jemalloc/
 BuildRequires:	libxslt-progs
+BuildRequires:	sed >= 4.0
 # list from include/jemalloc/internal/jemalloc_internal.h.in
 # https://github.com/jemalloc/jemalloc/blob/3.6.0/include/jemalloc/internal/jemalloc_internal.h.in#L239
-ExclusiveArch:	%{ix86} %{x8664} alpha arm ia64 mips ppc s390x sh4 sparc64 tile x32
+ExclusiveArch:	%{ix86} %{x8664} x32 alpha arm aarch64 hppa ia64 mips ppc s390x sh4 sparc64 tile
 # broken for us
 # alpha: Missing implementation for 64-bit atomic operations"
 # alpha: Missing implementation for 32-bit atomic operations"
@@ -57,11 +56,12 @@ Statyczna biblioteka jemalloc.
 
 %prep
 %setup -q
-%patch0 -p1
 
 # This is truncated during build. Seems interesting to save.
 cp -p VERSION version
 
+%{__sed} -i '1s, /usr/bin/env perl,%{__perl},' bin/jeprof.in
+
 %build
 # enable GNU+C99 standard (C99 for restrict keyword, GNU for asm)
 CFLAGS="%{rpmcflags} -std=gnu99"
@@ -79,9 +79,9 @@ rm -rf $RPM_BUILD_ROOT
 cp -pf version VERSION
 
 # soname improperly made, use fake main name (just use our current version)
-mv $RPM_BUILD_ROOT%{_libdir}/libjemalloc.so.{1,%{version}}
+%{__mv} $RPM_BUILD_ROOT%{_libdir}/libjemalloc.so.{2,%{version}}
 ln -s $(basename $RPM_BUILD_ROOT%{_libdir}/libjemalloc.so.*.*.*) \
-	$RPM_BUILD_ROOT%{_libdir}/libjemalloc.so.1
+	$RPM_BUILD_ROOT%{_libdir}/libjemalloc.so.2
 
 # Install this with doc macro instead
 %{__rm} $RPM_BUILD_ROOT%{_docdir}/%{name}/jemalloc.html
@@ -97,12 +97,15 @@ rm -rf $RPM_BUILD_ROOT
 %doc COPYING README VERSION doc/jemalloc.html
 %attr(755,root,root) %{_bindir}/jemalloc.sh
 %attr(755,root,root) %{_libdir}/libjemalloc.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libjemalloc.so.1
+%attr(755,root,root) %ghost %{_libdir}/libjemalloc.so.2
 
 %files devel
 %defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/jemalloc-config
+%attr(755,root,root) %{_bindir}/jeprof
 %attr(755,root,root) %{_libdir}/libjemalloc.so
 %{_includedir}/jemalloc
+%{_pkgconfigdir}/jemalloc.pc
 %{_mandir}/man3/jemalloc.3*
 
 %files static
diff --git a/no_pprof.patch b/no_pprof.patch
deleted file mode 100644
index fea23c5..0000000
--- a/no_pprof.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- jemalloc-3.5.0/Makefile.in.orig	2014-01-27 16:56:57.474782211 +0100
-+++ jemalloc-3.5.0/Makefile.in	2014-01-27 16:58:18.348112118 +0100
-@@ -73,7 +73,7 @@
- LIBJEMALLOC := $(LIBPREFIX)jemalloc$(install_suffix)
- 
- # Lists of files.
--BINS := $(srcroot)bin/pprof $(objroot)bin/jemalloc.sh
-+BINS := $(objroot)bin/jemalloc.sh
- C_HDRS := $(objroot)include/jemalloc/jemalloc$(install_suffix).h
- C_SRCS := $(srcroot)src/jemalloc.c $(srcroot)src/arena.c \
- 	$(srcroot)src/atomic.c $(srcroot)src/base.c $(srcroot)src/bitmap.c \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/jemalloc.git/commitdiff/aa2a1178af528437768c160191839743dfa62c71



More information about the pld-cvs-commit mailing list