jemalloc/jemalloc.spec
Ismail Dönmez 72898463c0 - Update to version 4.3.0
New features:
  * Add "J" (JSON) support to malloc_stats_print().
  * Add Cray compiler support.
  Optimizations:
  * Add/use adaptive spinning for bootstrapping and radix tree node
    initialization.
  Bugfixes:
  * Fix large allocation to search starting in the optimal size
    class heap, which can substantially reduce virtual memory churn
    and fragmentation.  This regression was first released in 4.0.0. 
  * Fix stats.arenas.<i>.nthreads accounting.
  * Fix and simplify decay-based purging.
  * Make DSS (sbrk(2)-related) operations lockless, which resolves
    potential deadlocks during thread exit.
  * Fix over-sized allocation of radix tree leaf nodes.
  * Fix over-sized allocation of arena_t (plus associated stats) data
    structures.
  * Fix EXTRA_CFLAGS to not affect configuration.
  * Fix a Valgrind integration bug.
  * Disallow 0x5a junk filling when running in Valgrind.
  * Fix a file descriptor leak on Linux.  This regression was
    first released in 4.2.0.
  * Fix static linking of jemalloc with glibc.
  * Use syscall(2) rather than {open,read,close}(2) during boot on Linux.
    This works around other libraries' system call wrappers performing
    reentrant allocation.
  * Fix OS X default zone replacement to work with OS X 10.12.
  * Fix cached memory management to avoid needless commit/decommit
    operations during purging, which resolves permanent virtual

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/jemalloc?expand=0&rev=46
2016-11-05 05:51:33 +00:00

128 lines
3.4 KiB
RPMSpec

#
# spec file for package jemalloc
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define lname libjemalloc2
Name: jemalloc
Version: 4.3.0
Release: 0
Summary: General-purpose scalable concurrent malloc implementation
License: BSD-2-Clause
Group: Development/Libraries/C and C++
Url: http://canonware.com/jemalloc/
Source: https://github.com/jemalloc/jemalloc/releases/download/%{version}/jemalloc-%{version}.tar.bz2
BuildRequires: docbook-xsl-stylesheets
BuildRequires: libxslt
BuildRequires: pkg-config
Requires: %lname = %version
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} == 1110
BuildRequires: gcc48
%endif
%description
jemalloc is a general-purpose scalable concurrent malloc(3) implementation.
This package provides a shell wrapper script to run programs using jemalloc.
%package -n %lname
Summary: General-purpose scalable concurrent malloc implementation
Group: System/Libraries
%description -n %lname
General-purpose scalable concurrent malloc(3) implementation.
This distribution is the stand-alone "portable" version of jemalloc.
%package devel
Summary: Development files for jemalloc
Group: Development/Libraries/C and C++
Requires: %lname = %version
%description devel
Headers for jemalloc, general-purpose scalable concurrent malloc(3)
implementation.
%package devel-static
Summary: Static libraries for jemalloc
Group: Development/Libraries/C and C++
Requires: %name-devel = %version
%description devel-static
Static libraries of jemalloc, general-purpose scalable concurrent
malloc(3) implementation.
%prep
%setup -q
%build
export EXTRA_CFLAGS="%optflags -std=gnu99"
%if 0%{?suse_version} == 1110
if [ -f "%_bindir/gcc-4.6" ]; then
export CC=gcc-4.6
fi
if [ -f "%_bindir/gcc-4.7" ]; then
export CC=gcc-4.7
fi
if [ -f "%_bindir/gcc-4.8" ]; then
export CC=gcc-4.8
fi
%endif
%configure --enable-cc-silence \
--enable-prof
make %{?_smp_mflags}
%install
b="%buildroot"
make install DESTDIR="$b"
chmod -x "%buildroot/%_libdir"/*.a
if [ "%_docdir" != "%_datadir/doc" ]; then
# Makefile apparently ignored the --docdir in %%configure
mkdir -p "$b/%_docdir"
mv "$b/%_datadir/doc/jemalloc" "$b/%_docdir/%name"
fi
%check
export LD_LIBRARY_PATH="$PWD/lib:$LD_LIBRARY_PATH"
make %{?_smp_mflags} check
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%files
%defattr(-,root,root)
%_bindir/jemalloc.sh
%_bindir/jemalloc-config
%_bindir/jeprof
%_mandir/man*/*
%_docdir/%name
%files -n %lname
%defattr(-,root,root)
%doc ChangeLog COPYING README
%_libdir/libjemalloc.so.2*
%files devel
%defattr(-,root,root)
%_includedir/jemalloc
%_libdir/libjemalloc.so
%_libdir/pkgconfig/jemalloc.pc
%files devel-static
%defattr(-,root,root)
%_libdir/libjemalloc*.a
%changelog