- 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>
|
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
|
Summary: General-purpose scalable concurrent malloc implementation
|
||||||
License: BSD-2-Clause
|
License: BSD-2-Clause
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Url: https://github.com/jemalloc/jemalloc
|
URL: http://jemalloc.net/
|
||||||
Source: https://github.com/jemalloc/jemalloc/releases/download/%{version}/jemalloc-%{version}.tar.bz2
|
Source: https://github.com/jemalloc/jemalloc/releases/download/%version/jemalloc-%version.tar.bz2
|
||||||
Patch0: disable-test_prof_log_many_traces-test.patch
|
Patch0: disable-test_prof_log_many_traces-test.patch
|
||||||
BuildRequires: docbook-xsl-stylesheets
|
BuildRequires: docbook-xsl-stylesheets
|
||||||
BuildRequires: libxslt
|
BuildRequires: libxslt
|
||||||
BuildRequires: pkg-config
|
BuildRequires: pkg-config
|
||||||
Requires: %lname = %version
|
Requires: %lname = %version
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
%if 0%{?suse_version} == 1110
|
|
||||||
BuildRequires: gcc48
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
jemalloc is a general-purpose scalable concurrent malloc(3) implementation.
|
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)
|
Headers for jemalloc, general-purpose scalable concurrent malloc(3)
|
||||||
implementation.
|
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
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export EXTRA_CFLAGS="%optflags -std=gnu99"
|
export EXTRA_CFLAGS="%optflags -std=gnu99"
|
||||||
%if 0%{?suse_version} == 1110
|
%configure --disable-static \
|
||||||
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 \
|
|
||||||
%ifarch %arm
|
%ifarch %arm
|
||||||
--disable-thp \
|
--disable-thp \
|
||||||
--disable-prof
|
--disable-prof
|
||||||
@ -98,8 +74,7 @@ make %{?_smp_mflags}
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
b="%buildroot"
|
b="%buildroot"
|
||||||
make install DESTDIR="$b"
|
%make_install
|
||||||
chmod -x "%buildroot/%_libdir"/*.a
|
|
||||||
if [ "%_docdir" != "%_datadir/doc" ]; then
|
if [ "%_docdir" != "%_datadir/doc" ]; then
|
||||||
# Makefile apparently ignored the --docdir in %%configure
|
# Makefile apparently ignored the --docdir in %%configure
|
||||||
mkdir -p "$b/%_docdir"
|
mkdir -p "$b/%_docdir"
|
||||||
@ -132,8 +107,4 @@ make %{?_smp_mflags} check
|
|||||||
%_libdir/libjemalloc.so
|
%_libdir/libjemalloc.so
|
||||||
%_libdir/pkgconfig/jemalloc.pc
|
%_libdir/pkgconfig/jemalloc.pc
|
||||||
|
|
||||||
%files devel-static
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%_libdir/libjemalloc*.a
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user