jemalloc/jemalloc.spec

114 lines
2.7 KiB
RPMSpec
Raw Normal View History

2019-12-13 18:21:41 +08:00
%ifarch x86_64
%define lg_page --with-lg-page=12
%endif
%ifarch aarch64
%define lg_page --with-lg-page=16
%endif
%ifarch aarch64
%define disable_thp --disable-thp
%endif
Name: jemalloc
2023-03-01 11:30:10 +08:00
Version: 5.3.0
Release: 2
2019-12-13 18:21:41 +08:00
Summary: General-purpose scalable concurrent malloc implementation
2022-05-10 17:21:30 +08:00
License: BSD-2-Clause
2019-12-13 18:21:41 +08:00
URL: http://www.canonware.com/jemalloc/
Source0: https://github.com/jemalloc/%{name}/releases/download/%{version}/%{name}-%{version}.tar.bz2
2023-03-01 11:30:10 +08:00
BuildRequires: perl-generators gcc /usr/bin/xsltproc
2019-12-13 18:21:41 +08:00
%description
Implemented by malloc (3), is an independent implementation of jemalloc.
%package devel
Summary: Devel files for jemalloc
Requires: %{name} = %{version}-%{release}
%description devel
The devel contains libraries and header files for use in jemalloc applications.
%package_help
2019-12-13 18:21:41 +08:00
%prep
2022-11-15 09:43:10 +08:00
%setup -q
2019-12-13 18:21:41 +08:00
%build
export LDFLAGS="%{?__global_ldflags} -lrt"
getconf PAGESIZE
uname -a
%configure %{?disable_thp} %{?lg_page}
%make_build
%check
LD_LIBRARY_PATH=%{buildroot}%{_libdir} make test %{?_smp_mflags}
make check
%install
%make_install
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%doc COPYING
%{_libdir}/libjemalloc.so.*
%{_bindir}/jemalloc.sh
%{_bindir}/jemalloc-config
%{_libdir}/pkgconfig/jemalloc.pc
%files devel
%{_includedir}/jemalloc
%{_bindir}/jeprof
%{_libdir}/libjemalloc.so
%exclude %{_libdir}/libjemalloc.a
%exclude %{_libdir}/libjemalloc_pic.a
%exclude %{_datadir}/doc/%{name}/jemalloc.html
%files help
%doc README VERSION doc/jemalloc.html
%{_mandir}/man3/jemalloc.3*
%changelog
* Mon Aug 19 2024 guochaofan <guochaofan@cqsoftware.com.cn> - 5.3.0-2
- Replaces declaration of help subpackage with the 'package_help' marco.
2023-03-01 11:30:10 +08:00
* Wed Mar 01 2023 li-long315 <lilong@kylinos.cn> - 5.3.0-1
- Upgrade to 5.3.0
* Mon Jan 9 2023 mengwenhua <mengwenhua@xfusion.com> - 5.2.1-8
- Correct tsd layout graph
2022-11-15 09:43:10 +08:00
* Tue Nov 15 2022 doupengda <doupengda@loongson.cn> - 5.2.1-7
- add loongarch64 support
2022-05-10 17:21:30 +08:00
* Tue May 10 2022 Ge Wang <wangge@h-partner.com> - 5.2.1-6
- License compliance rectification
2021-12-02 10:06:33 +08:00
* Thu Dec 2 2021 guominghong <guominghong@huawei.com> - 5.2.1-5
- Fix spec check
* Tue Nov 16 2021 guominghong <guominghong@huawei.com> - 5.2.1-4
- Fix tcaches mutex pre-post fork handling
2021-11-16 11:52:12 +08:00
* Tue Nov 16 2021 guominghong <guominghong@huawei.com> - 5.2.1-3
- Fix Undefined Behavior in hash.h
* Wed Nov 3 2021 guominghong <guominghong@huawei.com> - 5.2.1-2
- Fix large bin index accessed through cache bin descriptor
2021-07-20 16:53:51 +08:00
* Tue Jul 20 2021 weidong <weidong@uniontech.com> - 5.2.1-1
- Update jemlloc
* Wed Jun 02 2021 wulei <wulei80@huawei.com> - 5.1.0-4
- fixes failed: no acceptable C compiler found in $PATH
2019-12-13 18:21:41 +08:00
* Thu Nov 14 2019 wangye<wangye54@huawei.com> - 5.1.0-3
- Package init