- Drop static library package, nothing seems to use it.
- Remove openSUSE 11.1 build support. OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/jemalloc?expand=0&rev=67
This commit is contained in:
parent
3e58fb6fa0
commit
3c58a4f9a9
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 4 11:20:31 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Drop static library package, nothing seems to use it.
|
||||
- Remove openSUSE 11.1 build support.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 4 09:44:44 UTC 2019 - Martin Liška <mliska@suse.cz>
|
||||
|
||||
|
@ -23,17 +23,13 @@ Release: 0
|
||||
Summary: General-purpose scalable concurrent malloc implementation
|
||||
License: BSD-2-Clause
|
||||
Group: Development/Libraries/C and C++
|
||||
Url: https://github.com/jemalloc/jemalloc
|
||||
Source: https://github.com/jemalloc/jemalloc/releases/download/%{version}/jemalloc-%{version}.tar.bz2
|
||||
URL: http://jemalloc.net/
|
||||
Source: https://github.com/jemalloc/jemalloc/releases/download/%version/jemalloc-%version.tar.bz2
|
||||
Patch0: disable-test_prof_log_many_traces-test.patch
|
||||
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.
|
||||
@ -56,33 +52,13 @@ Requires: %lname = %version
|
||||
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
|
||||
%patch0 -p1
|
||||
|
||||
%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 \
|
||||
%configure --disable-static \
|
||||
%ifarch %arm
|
||||
--disable-thp \
|
||||
--disable-prof
|
||||
@ -98,8 +74,7 @@ make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
b="%buildroot"
|
||||
make install DESTDIR="$b"
|
||||
chmod -x "%buildroot/%_libdir"/*.a
|
||||
%make_install
|
||||
if [ "%_docdir" != "%_datadir/doc" ]; then
|
||||
# Makefile apparently ignored the --docdir in %%configure
|
||||
mkdir -p "$b/%_docdir"
|
||||
@ -132,8 +107,4 @@ make %{?_smp_mflags} check
|
||||
%_libdir/libjemalloc.so
|
||||
%_libdir/pkgconfig/jemalloc.pc
|
||||
|
||||
%files devel-static
|
||||
%defattr(-,root,root)
|
||||
%_libdir/libjemalloc*.a
|
||||
|
||||
%changelog
|
||||
|
Loading…
x
Reference in New Issue
Block a user