1 Star 0 Fork 26

吴超超/gperftools

forked from src-openEuler/gperftools 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
gperftools.spec 3.99 KB
一键复制 编辑 原始数据 按行查看 历史
HukunaMatata 提交于 2020-03-19 20:28 . fix build src.rpm error
Name: gperftools
Version: 2.7
Release: 7
Summary: high-performance malloc and performance analysis tools
License: BSD
URL: https://github.com/gperftools/gperftools
Source0: https://github.com/gperftools/gperftools/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
Patch1: Disable-large-allocation-report-by-default.patch
Patch2: Fix-uninitialized-memory-use-in-sampler_test.patch
Patch3: benchmark-use-angle-brackets-to-include-ucontext.h.patch
Patch4: Format-and-fix-out-of-bound-access-in-CpuProfilerSwi.patch
Patch5: Fix-incompatible-aliasing-warnings.patch
Patch6: Use-standard-conforming-alignof-in-debugallocation.c.patch
Patch7: Fix-page_heap_test-flakiness.patch
Patch8: Avoid-static-initialization-of-pprof-path-for-symbol.patch
Patch9: Fix-mmap-region-iteration-while-no-regions-are-recor.patch
Patch10: Drop-not-very-portable-and-not-very-useful-unwind-be.patch
Patch11: undef-mmap64-function.patch
Patch12: Use-initial-exec-TLS-model-for-all-thread-local-vari.patch
Patch13: don-t-try-to-mark-rsp-as-clobbered-in-linux-syscall-.patch
Patch9000: issue-1122-fix-bus-error-on-aarch64.patch
BuildRequires: autoconf automake gcc-c++ gdb
BuildRequires: libtool libunwind-devel perl-generators
Requires: %{name}-devel = %{version}-%{release}
Requires: pprof = %{version}-%{release}
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
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
--disable-dynamic-sized-delete-support \
%disable_rpath
make
%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
* 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
* 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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wcc_140409/gperftools.git
git@gitee.com:wcc_140409/gperftools.git
wcc_140409
gperftools
gperftools
master

搜索帮助