2011-10-13 18:05:06 +02:00
|
|
|
#
|
|
|
|
# spec file for package jemalloc
|
|
|
|
#
|
2020-11-20 16:37:50 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2011-10-13 18:05:06 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-10-30 20:09:37 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-10-13 18:05:06 +02:00
|
|
|
#
|
|
|
|
|
2013-01-24 12:03:44 +01:00
|
|
|
|
2016-05-04 09:39:40 +02:00
|
|
|
%define lname libjemalloc2
|
2011-10-23 09:02:58 +02:00
|
|
|
Name: jemalloc
|
2019-08-06 09:14:27 +02:00
|
|
|
Version: 5.2.1
|
2011-10-23 09:02:58 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: General-purpose scalable concurrent malloc implementation
|
2013-01-24 12:03:44 +01:00
|
|
|
License: BSD-2-Clause
|
2011-10-23 09:02:58 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2019-04-04 13:53:02 +02:00
|
|
|
URL: http://jemalloc.net/
|
2020-11-23 15:13:37 +01:00
|
|
|
Source: https://github.com/jemalloc/jemalloc/releases/download/%version/jemalloc-%version.tar.bz2
|
2011-10-23 09:02:58 +02:00
|
|
|
BuildRequires: docbook-xsl-stylesheets
|
|
|
|
BuildRequires: libxslt
|
2020-11-23 13:35:59 +01:00
|
|
|
BuildRequires: pkgconfig
|
2020-11-23 15:13:37 +01:00
|
|
|
Requires: %lname = %version
|
2011-10-13 18:05:06 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
jemalloc is a general-purpose scalable concurrent malloc(3) implementation.
|
|
|
|
This package provides a shell wrapper script to run programs using jemalloc.
|
|
|
|
|
2020-11-23 15:13:37 +01:00
|
|
|
%package -n %lname
|
2011-10-23 09:02:58 +02:00
|
|
|
Summary: General-purpose scalable concurrent malloc implementation
|
|
|
|
Group: System/Libraries
|
2011-10-13 18:05:06 +02:00
|
|
|
|
2020-11-23 15:13:37 +01:00
|
|
|
%description -n %lname
|
2011-10-13 18:05:06 +02:00
|
|
|
General-purpose scalable concurrent malloc(3) implementation.
|
|
|
|
This distribution is the stand-alone "portable" version of jemalloc.
|
|
|
|
|
|
|
|
%package devel
|
2011-10-23 09:02:58 +02:00
|
|
|
Summary: Development files for jemalloc
|
|
|
|
Group: Development/Libraries/C and C++
|
2020-11-23 15:13:37 +01:00
|
|
|
Requires: %lname = %version
|
2011-10-13 18:05:06 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Headers for jemalloc, general-purpose scalable concurrent malloc(3)
|
|
|
|
implementation.
|
|
|
|
|
|
|
|
%prep
|
2020-11-23 15:13:37 +01:00
|
|
|
%autosetup -p1
|
2011-10-13 18:05:06 +02:00
|
|
|
|
|
|
|
%build
|
2020-11-23 15:13:37 +01:00
|
|
|
export EXTRA_CFLAGS="%optflags -std=gnu99"
|
2020-11-20 16:37:50 +01:00
|
|
|
%configure --disable-static --enable-prof \
|
2020-11-23 15:13:37 +01:00
|
|
|
%ifarch %arm
|
2020-11-20 16:37:50 +01:00
|
|
|
--disable-thp
|
2018-08-22 16:07:30 +02:00
|
|
|
%endif
|
2018-02-10 13:04:24 +01:00
|
|
|
|
2020-11-23 13:35:59 +01:00
|
|
|
%make_build
|
2011-10-13 18:05:06 +02:00
|
|
|
|
|
|
|
%install
|
2020-11-23 15:13:37 +01:00
|
|
|
b=%buildroot
|
2019-04-04 13:53:02 +02:00
|
|
|
%make_install
|
2020-11-23 15:13:37 +01:00
|
|
|
if [ "%_docdir" != "%_datadir/doc" ]; then
|
2016-05-04 10:52:43 +02:00
|
|
|
# Makefile apparently ignored the --docdir in %%configure
|
2020-11-23 15:13:37 +01:00
|
|
|
mkdir -p "$b/%_docdir"
|
|
|
|
mv "$b/%_datadir/doc/jemalloc" "$b/%_docdir/%name"
|
2016-04-20 14:24:08 +02:00
|
|
|
fi
|
2011-10-13 18:05:06 +02:00
|
|
|
|
2013-03-07 21:58:42 +01:00
|
|
|
%check
|
2016-04-20 14:24:08 +02:00
|
|
|
export LD_LIBRARY_PATH="$PWD/lib:$LD_LIBRARY_PATH"
|
2020-11-23 13:35:59 +01:00
|
|
|
%make_build check
|
2013-03-07 21:58:42 +01:00
|
|
|
|
2020-11-23 15:13:37 +01:00
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
2016-04-20 14:24:08 +02:00
|
|
|
|
2011-10-13 18:05:06 +02:00
|
|
|
%files
|
2020-11-23 15:13:37 +01:00
|
|
|
%_bindir/jemalloc.sh
|
|
|
|
%_bindir/jemalloc-config
|
|
|
|
%_bindir/jeprof
|
|
|
|
%_mandir/man*/*
|
|
|
|
%_docdir/%name
|
2020-11-23 13:35:59 +01:00
|
|
|
|
2020-11-23 15:13:37 +01:00
|
|
|
%files -n %lname
|
2020-11-23 13:35:59 +01:00
|
|
|
%license COPYING
|
|
|
|
%doc ChangeLog README
|
2020-11-23 15:13:37 +01:00
|
|
|
%_libdir/libjemalloc.so.2*
|
2011-10-13 18:05:06 +02:00
|
|
|
|
|
|
|
%files devel
|
2020-11-23 15:13:37 +01:00
|
|
|
%_includedir/jemalloc
|
|
|
|
%_libdir/libjemalloc.so
|
|
|
|
%_libdir/pkgconfig/jemalloc.pc
|
2011-10-13 18:05:06 +02:00
|
|
|
|
2012-09-04 10:28:27 +02:00
|
|
|
%changelog
|