63 lines
1.8 KiB
RPMSpec
63 lines
1.8 KiB
RPMSpec
Name: autofdo
|
|
Version: 0.19
|
|
Release: 3.20231228.git0e296280
|
|
Summary: A tool to convert perf.data profile to AutoFDO profile
|
|
License: Apache-2.0
|
|
URL: https://github.com/google/autofdo
|
|
# The package in the original url below contains GIT information which is useless,
|
|
# so remove the GIT information and repackage it.
|
|
Source0: %{name}-%{version}.tar.xz
|
|
Patch0: 0001-Build-Static-Library.patch
|
|
BuildRequires: gcc gcc-c++ libtool git cmake elfutils-libelf-devel openssl-devel pkg-config ninja-build gtest libunwind-devel protobuf-devel chrpath
|
|
Requires: glibc openssl-libs elfutils libgcc libstdc++ zlib
|
|
|
|
%description
|
|
This package contains a tool to convert perf.data profile to AutoFDO
|
|
profile that can be used by GCC and LLVM.
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
cmake -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=. ./
|
|
%ninja_build
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
cd %{buildroot}%{_bindir}
|
|
cp %{_builddir}/%{name}-%{version}/create_gcov ./
|
|
cp %{_builddir}/%{name}-%{version}/dump_gcov ./
|
|
cp %{_builddir}/%{name}-%{version}/profile_merger ./
|
|
|
|
export QA_CHECK_RAPTH=0
|
|
|
|
%files
|
|
%{_bindir}/create_gcov
|
|
%{_bindir}/dump_gcov
|
|
%{_bindir}/profile_merger
|
|
|
|
%changelog
|
|
* Fri Dec 22 2023 zhaozhenyu <zhaozhenyu17@huawie.com> - 0.19-3.20231228.git0e296280
|
|
- Type:Update
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC:Update AutoFDO toolchain to 0.19-3.20231228
|
|
|
|
* Sun Feb 13 2022 liyancheng <412998149@qq.com> - 0.19-2
|
|
- Type:enhancement
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC:Support processing ARM SPE event
|
|
|
|
* Sun Feb 13 2022 liyancheng <412998149@qq.com> - 0.19-1
|
|
- Type:enhancement
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC:Support parsing multiple events and process repeat function
|
|
|
|
* Tue Nov 30 2021 liyancheng <412998149@qq.com> - 0.19-0
|
|
- Type:Init
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC:Init autofdo repository
|