- Use spec-cleaner.
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/jemalloc?expand=0&rev=81
This commit is contained in:
parent
a5c0d83bac
commit
656347803c
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
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>
|
||||
|
||||
|
@ -24,28 +24,28 @@ 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: pkg-config
|
||||
Requires: %lname = %version
|
||||
BuildRequires: pkgconfig
|
||||
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)
|
||||
@ -55,47 +55,45 @@ implementation.
|
||||
%setup -q
|
||||
|
||||
%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 %{?_smp_mflags}
|
||||
%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 %{?_smp_mflags} check
|
||||
%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
|
||||
%defattr(-,root,root)
|
||||
%_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
|
||||
%defattr(-,root,root)
|
||||
%doc ChangeLog COPYING README
|
||||
%_libdir/libjemalloc.so.2*
|
||||
%files -n %{lname}
|
||||
%license COPYING
|
||||
%doc ChangeLog README
|
||||
%{_libdir}/libjemalloc.so.2*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%_includedir/jemalloc
|
||||
%_libdir/libjemalloc.so
|
||||
%_libdir/pkgconfig/jemalloc.pc
|
||||
%{_includedir}/jemalloc
|
||||
%{_libdir}/libjemalloc.so
|
||||
%{_libdir}/pkgconfig/jemalloc.pc
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user