Jan Engelhardt 2020-11-23 14:13:37 +00:00 committed by Git OBS Bridge
parent 656347803c
commit 493b52dcfd
2 changed files with 24 additions and 29 deletions

View File

@ -1,8 +1,3 @@
-------------------------------------------------------------------
Mon Nov 23 12:34:16 UTC 2020 - Martin Liška <mliska@suse.cz>
- Use spec-cleaner.
-------------------------------------------------------------------
Mon Nov 23 10:23:39 UTC 2020 - Martin Liška <mliska@suse.cz>

View File

@ -24,76 +24,76 @@ 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
Source: https://github.com/jemalloc/jemalloc/releases/download/%version/jemalloc-%version.tar.bz2
BuildRequires: docbook-xsl-stylesheets
BuildRequires: libxslt
BuildRequires: pkgconfig
Requires: %{lname} = %{version}
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}
%package -n %lname
Summary: General-purpose scalable concurrent malloc implementation
Group: System/Libraries
%description -n %{lname}
%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}
Requires: %lname = %version
%description devel
Headers for jemalloc, general-purpose scalable concurrent malloc(3)
implementation.
%prep
%setup -q
%autosetup -p1
%build
export EXTRA_CFLAGS="%{optflags} -std=gnu99"
export EXTRA_CFLAGS="%optflags -std=gnu99"
%configure --disable-static --enable-prof \
%ifarch %{arm}
%ifarch %arm
--disable-thp
%endif
%make_build
%install
b=%{buildroot}
b=%buildroot
%make_install
if [ "%{_docdir}" != "%{_datadir}/doc" ]; then
if [ "%_docdir" != "%_datadir/doc" ]; then
# Makefile apparently ignored the --docdir in %%configure
mkdir -p "$b/%{_docdir}"
mv "$b/%{_datadir}/doc/jemalloc" "$b/%{_docdir}/%{name}"
mkdir -p "$b/%_docdir"
mv "$b/%_datadir/doc/jemalloc" "$b/%_docdir/%name"
fi
%check
export LD_LIBRARY_PATH="$PWD/lib:$LD_LIBRARY_PATH"
%make_build check
%post -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%files
%{_bindir}/jemalloc.sh
%{_bindir}/jemalloc-config
%{_bindir}/jeprof
%{_mandir}/man*/*
%{_docdir}/%{name}
%_bindir/jemalloc.sh
%_bindir/jemalloc-config
%_bindir/jeprof
%_mandir/man*/*
%_docdir/%name
%files -n %{lname}
%files -n %lname
%license COPYING
%doc ChangeLog README
%{_libdir}/libjemalloc.so.2*
%_libdir/libjemalloc.so.2*
%files devel
%{_includedir}/jemalloc
%{_libdir}/libjemalloc.so
%{_libdir}/pkgconfig/jemalloc.pc
%_includedir/jemalloc
%_libdir/libjemalloc.so
%_libdir/pkgconfig/jemalloc.pc
%changelog