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> 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 License: BSD-2-Clause
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
URL: http://jemalloc.net/ 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: docbook-xsl-stylesheets
BuildRequires: libxslt BuildRequires: libxslt
BuildRequires: pkgconfig BuildRequires: pkgconfig
Requires: %{lname} = %{version} Requires: %lname = %version
%description %description
jemalloc is a general-purpose scalable concurrent malloc(3) implementation. jemalloc is a general-purpose scalable concurrent malloc(3) implementation.
This package provides a shell wrapper script to run programs using jemalloc. 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 Summary: General-purpose scalable concurrent malloc implementation
Group: System/Libraries Group: System/Libraries
%description -n %{lname} %description -n %lname
General-purpose scalable concurrent malloc(3) implementation. General-purpose scalable concurrent malloc(3) implementation.
This distribution is the stand-alone "portable" version of jemalloc. This distribution is the stand-alone "portable" version of jemalloc.
%package devel %package devel
Summary: Development files for jemalloc Summary: Development files for jemalloc
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: %{lname} = %{version} Requires: %lname = %version
%description devel %description devel
Headers for jemalloc, general-purpose scalable concurrent malloc(3) Headers for jemalloc, general-purpose scalable concurrent malloc(3)
implementation. implementation.
%prep %prep
%setup -q %autosetup -p1
%build %build
export EXTRA_CFLAGS="%{optflags} -std=gnu99" export EXTRA_CFLAGS="%optflags -std=gnu99"
%configure --disable-static --enable-prof \ %configure --disable-static --enable-prof \
%ifarch %{arm} %ifarch %arm
--disable-thp --disable-thp
%endif %endif
%make_build %make_build
%install %install
b=%{buildroot} b=%buildroot
%make_install %make_install
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"
mv "$b/%{_datadir}/doc/jemalloc" "$b/%{_docdir}/%{name}" mv "$b/%_datadir/doc/jemalloc" "$b/%_docdir/%name"
fi fi
%check %check
export LD_LIBRARY_PATH="$PWD/lib:$LD_LIBRARY_PATH" export LD_LIBRARY_PATH="$PWD/lib:$LD_LIBRARY_PATH"
%make_build check %make_build check
%post -n %{lname} -p /sbin/ldconfig %post -n %lname -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig
%files %files
%{_bindir}/jemalloc.sh %_bindir/jemalloc.sh
%{_bindir}/jemalloc-config %_bindir/jemalloc-config
%{_bindir}/jeprof %_bindir/jeprof
%{_mandir}/man*/* %_mandir/man*/*
%{_docdir}/%{name} %_docdir/%name
%files -n %{lname} %files -n %lname
%license COPYING %license COPYING
%doc ChangeLog README %doc ChangeLog README
%{_libdir}/libjemalloc.so.2* %_libdir/libjemalloc.so.2*
%files devel %files devel
%{_includedir}/jemalloc %_includedir/jemalloc
%{_libdir}/libjemalloc.so %_libdir/libjemalloc.so
%{_libdir}/pkgconfig/jemalloc.pc %_libdir/pkgconfig/jemalloc.pc
%changelog %changelog