gperftools/gperftools.spec

184 lines
5.2 KiB
RPMSpec
Raw Normal View History

2019-09-30 10:51:34 -04:00
Name: gperftools
Version: 2.15
Release: 3
2019-09-30 10:51:34 -04:00
Summary: high-performance malloc and performance analysis tools
2022-08-04 14:51:45 +08:00
License: BSD-3-Clause
2019-09-30 10:51:34 -04:00
URL: https://github.com/gperftools/gperftools
Source0: https://github.com/gperftools/gperftools/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
2020-09-22 21:57:51 +08:00
patch1: gperftools-generic-dynamic-tls.patch
#https://github.com/gperftools/gperftools/issues/1309
Patch9000: skip-arm-in-stacktrace_unittest.patch
#https://github.com/gperftools/gperftools/issues/890
2021-11-09 08:01:04 +00:00
Patch9001: skip-heapchecker-in-arm-arch.patch
Patch9002: add-sw_64-support.patch
2019-09-30 10:51:34 -04:00
2021-07-22 16:17:15 +08:00
BuildRequires: autoconf automake gcc-c++
2020-03-19 20:28:46 +08:00
BuildRequires: libtool libunwind-devel perl-generators
Requires: %{name}-libs = %{version}-%{release}
2019-09-30 10:51:34 -04:00
ExcludeArch: s390
%description
gperftools is a collection of a high-performance multi-threaded \
malloc() implementation, plus some pretty nifty performance analysis \
tools.
%package libs
Summary: Libraries for CPU profiler and tcmalloc
Provides: google-perftools-libs = %{version}-%{release}
Obsoletes: google-perftools-libs < 2.0
%description libs
This package contains libraries with CPU or heap profiling and thread-caching
malloc().
%package devel
Summary: Development header files
Requires: pkg-config
Requires: %{name}-libs = %{version}-%{release}
Provides: google-perftools-devel = %{version}-%{release}
Provides: pkg-config(gperftools-devel) = %{version}-%{release}
Obsoletes: google-perftools-devel < 2.0
%description devel
This package contains Development header files with CPU or heap profiling and
thread-caching malloc() which provides by google and gperftools.
%package -n pprof
Summary: Analyzes CPU and heap profiles tools
Requires: gv graphviz perl
Requires: %{name}-devel = %{version}-%{release}
2019-09-30 10:51:34 -04:00
BuildArch: noarch
Provides: pprof = %{version}-%{release}
Provides: google-perftools = %{version}-%{release}
Obsoletes: google-perftools < 2.0
%description -n pprof
pprof is an facility that analyzes CPU and heap profiles.
%prep
%autosetup -n %{name}-%{version} -p1
%build
autoreconf -vif
CFLAGS=`echo $RPM_OPT_FLAGS -fno-strict-aliasing -Wno-unused-local-typedefs -DTCMALLOC_LARGE_PAGES | sed -e 's|-fexceptions||g'`
CXXFLAGS=`echo $RPM_OPT_FLAGS -fno-strict-aliasing -Wno-unused-local-typedefs -DTCMALLOC_LARGE_PAGES | sed -e 's|-fexceptions||g'`
%configure \
%ifarch s390x aarch64
--disable-general-dynamic-tls \
%endif
%ifarch riscv64
--enable-frame-pointers \
2019-09-30 10:51:34 -04:00
%endif
--disable-dynamic-sized-delete-support \
%disable_rpath
make
%check
LD_LIBRARY_PATH=./.libs make check
2019-09-30 10:51:34 -04:00
%install
%make_install
%ldconfig_scriptlets libs
%files
#nothing to do
%files libs
%{_libdir}/libprofiler.so.*
%{_libdir}/libtcmalloc*.so.*
%files devel
%{_includedir}/google/*.h
%{_includedir}/gperftools/*.h
%{_libdir}/libprofiler.so
%{_libdir}/libtcmalloc*.so
%{_libdir}/pkgconfig/*.pc
%{_docdir}/%{name}/*
%{_libdir}/libprofiler.*a
%{_libdir}/libtcmalloc*.*a
%files -n pprof
%{_bindir}/*
%{_mandir}/man1/*.1.gz
%changelog
* Mon Mar 03 2025 maqi <maqi@uniontech.com> - 2.15-3
- Add sw_64 support
* Mon Apr 22 2024 laokz <zhangkai@iscas.ac.cn> - 2.15-2
- riscv64: force --enable-frame-pointers due to unsupported
-momit-leaf-frame-pointer compile option until gcc14
* Mon Feb 5 2024 nicunshu <nicunshu@huawei.com> - 2.15-1
- Upgrade tp 2.15
2023-07-12 14:35:05 +08:00
* Wed Jul 12 2023 doupengda <doupengda@loongson.cn> - 2.10-3
- Resolving loongarch64 build error
2022-08-04 14:51:45 +08:00
* Wed Aug 03 2022 liukuo <liukuo@kylinos.cn> - 2.10-2
- License compliance rectification
2022-07-19 16:07:44 +08:00
* Tue Jul 19 2022 Qingqing Li <liqingqing3@huawei.com> - 2.10-1
- upgrade to 2.10
* Mon Feb 28 2022 liusirui <liusirui@huawei.com> - 2.9.1-3
- remove the dependency of the main package and pprof
2021-12-03 16:41:55 +08:00
* Fri Dec 3 2021 zhouwenpei <zhouwenpei1@huawei.com> - 2.9.1-2
- rebuild package
2021-11-09 08:01:04 +00:00
* Mon Nov 29 2021 zhangyiru <zhangyiru3@huawei.com> - 2.9.1-1
- update to 2.9.1
* Tue Nov 9 2021 zhangyiru <zhangyiru3@huawei.com> - 2.8.1-4
- avoid exceed int range when use heapchecker
* Wed Oct 20 2021 zhangyiru <zhangyiru3@huawei.com> - 2.8.1-3
- enable make check && skip four arm testcases.
the reason is that arm do not have fully functional heap checker and
the calling of unw_step in arm stacktrace_unittest is incorrect, but the function is not affected
2021-07-22 16:17:15 +08:00
* Thu Jul 22 2021 zhangyiru <zhangyiru3@huawei.com> - 2.8.1-2
- remove invalid gdb build dependency
2021-01-30 15:45:50 +08:00
* Sat Jan 30 2021 xinghe <xinghe1@huawei.com> - 2.8.1-1
- update to 2.8.1
2020-09-22 21:57:51 +08:00
* Tue Sep 22 2020 liuzixian <liuzixian4@huawei.com> - 2.8-2
- Type: bufgix
2020-09-23 21:24:49 +08:00
- Reason: add patch gperftools-generic-dynamic-tls.patch to avoid issue #I1VAEU which is probably caused by compiler bugs.
2020-09-22 21:57:51 +08:00
2020-07-23 22:51:38 +08:00
* Thu Jul 23 2020 jinzhimin <jinzhimin2@huawei.com> - 2.8-1
- update to 2.8
2020-03-19 20:28:46 +08:00
* Thu Mar 19 2020 yuxiangyang <yuxiangyang4@huawei.com> - 2.7-7
- fix build src.rpm error
* Fri Jan 10 2020 wuxu_wu <wuxu.wu@huawei.com> - 2.7-6
- delete useless patch
2019-09-30 10:51:34 -04:00
* Thu Aug 29 2019 luochunsheng <luochunsheng@huawei.com> - 2.7-5
- fix spelling errors
* Mon Jun 17 2019 Zhipeng Xie <xiezhipeng1@huawei.com> - 2.7-4
- Type:bugfix
- ID:NA
- SUG: NA
- DESC: issue-1122: fix bus error on aarch64
* Mon Apr 15 2019 lvying <lvying6@huawei.com> - 2.7-3
- Type:enhancement
- ID:NA
- SUG: NA
- DESC: peripheral package quality reinforcement: backport bugfix patches from community
* Tue Mar 5 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.7-2
- Package init