Sisyphus repositório
Última atualização: 24 setembro 2020 | SRPMs: 17698 | Visitas: 19278505
en ru br
ALT Linux repositórios

Group :: Sistema/Bibliotecas
RPM: libjemalloc2

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%def_disable static
%define title jemalloc
%define sorev 2
Name: libjemalloc2
Version: 5.1.0
Release: alt3
Summary: A general-purpose scalable concurrent malloc(3) implementation
Group: System/Libraries
License: BSD
Source: jemalloc-%version.tar.bz2

# Automatically added by buildreq on Mon May 14 2018

# optimized out: glibc-kernheaders-generic glibc-kernheaders-x86 gnu-config libstdc++-devel python-base
BuildRequires: gcc-c++ git-core xsltproc

jemalloc is a general-purpose scalable concurrent malloc(3)
implementation. There are several divergent versions of jemalloc in
active use, including:

* FreeBSD's default system allocator (malloc.c, manual page). This was
   the first public use of jemalloc, and it is still author-maintained.
* NetBSD's default system allocator (jemalloc.c).
* Mozilla Firefox's allocator (source code), specifically for
  Microsoft Windows-related platforms, Solaris, and Linux. There is
  Apple Mac OS X support code as well, but it has never been used in a
* The stand-alone jemalloc, which currently targets only Linux.
  Thus far I have had no driving need to integrate support for other
  operating systems into this version of jemalloc, but it is probable
  that the stand-alone jemalloc library's platform support will
   broaden over time.

%package -n libjemalloc-devel
Summary: Development files, debugging and profiling version of %title
Group: System/Libraries
License: BSD
Requires: google-perftools

%description -n libjemalloc-devel
Development files, debugging and profiling version of %title

%setup -n %title-%version
# XXX hack out "restrict keyword"
##for f in `fgrep -rl '*restrict ' .`; do sed -i 's/\*restrict /\*/g' $f; done

CONF="--enable-swap --enable-xmalloc --enable-dss --enable-sysv --enable-autogen --enable-log --enable-utrace --with-xslroot=/usr/share/xml/docbook/xsl-stylesheets"
%configure $CONF --enable-debug
%make doc
mkdir -p debug
cp -a lib/lib* debug
%configure $CONF --enable-prof --enable-stats
%make_build install_suffix=_profiler
mkdir -p prof
cp -a lib/lib* prof
%configure $CONF

%makeinstall DESTDIR=%buildroot
mkdir -p %buildroot%_libdir/debug %buildroot%_libdir/prof
cp -a debug/* %buildroot%_libdir/debug
cp -a prof/* %buildroot%_libdir/

#mv %buildroot%_bindir/pprof %buildroot%_bindir/pprof.%title

mv %buildroot%_defaultdocdir/jemalloc %buildroot%_defaultdocdir/jemalloc%sorev

# add so.2 -> so.2.0

mv %buildroot%_libdir/ %buildroot%_libdir/
ln -s %buildroot%_libdir/
mv %buildroot%_libdir/ %buildroot%_libdir/
ln -s %buildroot%_libdir/

%if_disabled static
rm -rf %buildroot%_libdir/debug/*.a %buildroot%_libdir/*.a

%doc %_defaultdocdir/jemalloc2

%files -n libjemalloc-devel
%if_enabled static


Todas as alterações você pod ver aqui

projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009