jemalloc/jemalloc.spec
Martin Liška 954f6ff09f Accepting request 721219 from home:marxin:branches:devel:libraries:c_c++
- Update to version 5.2.1:
  * Bug fixes:
  * Fix a severe virtual memory leak on Windows. This regression
    was first released in 5.0.0.
  * Fix size 0 handling in posix_memalign(). This regression
    was first released in 5.2.0.
  * Fix the prof_log unit test which may observe unexpected
    backtraces from compiler optimizations. The test was first added in 5.2.0.
  * Fix the declaration of the extent_avail tree.
    This regression was first released in 5.1.0.
  * Fix an incorrect reference in jeprof.
    This functionality was first released in 3.0.0.
  * Fix an assertion on the deallocation fast-path.
    This regression was first released in 5.2.0.
  * Fix the TLS_MODEL attribute in headers.
    This regression was first released in 5.0.0.
  * Optimizations and refactors:
  * Implement opt.retain on Windows and enable by default on 64-bit.
  * Optimize away a branch on the operator delete path.
  * Add format annotation to the format generator function.
  * Refactor and improve the size class header generation.
  * Remove best fit.
  * Avoid blocking on background thread locks for stats.
- Remove disable-test_prof_log_many_traces-test.patch.

OBS-URL: https://build.opensuse.org/request/show/721219
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/jemalloc?expand=0&rev=75
2019-08-06 07:14:27 +00:00

110 lines
2.9 KiB
RPMSpec

#
# spec file for package jemalloc
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#
%define lname libjemalloc2
Name: jemalloc
Version: 5.2.1
Release: 0
Summary: General-purpose scalable concurrent malloc implementation
License: BSD-2-Clause
Group: Development/Libraries/C and C++
URL: http://jemalloc.net/
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
%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.
%prep
%setup -q
%build
%define _lto_cflags %{nil}
export EXTRA_CFLAGS="%optflags -std=gnu99"
%configure --disable-static \
%ifarch %arm
--disable-thp \
--disable-prof
%else
%ifarch ppc
--disable-prof
%else
--enable-prof
%endif
%endif
make %{?_smp_mflags}
%install
b="%buildroot"
%make_install
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
%changelog