diff --git a/autofdo-0.19.tar.xz b/autofdo-0.19.tar.xz new file mode 100644 index 0000000..0876166 Binary files /dev/null and b/autofdo-0.19.tar.xz differ diff --git a/autofdo.spec b/autofdo.spec new file mode 100644 index 0000000..a0ecbb7 --- /dev/null +++ b/autofdo.spec @@ -0,0 +1,44 @@ +Name: autofdo +Version: 0.19 +Release: 0 +Summary: A tool to convert perf.data profile to AutoFDO profile +License: Apache-2.0 +URL: https://github.com/google/autofdo +Source: %{name}-%{version}.tar.xz +BuildRequires: gcc gcc-c++ libtool autoconf automake git elfutils-libelf-devel openssl-devel pkg-config +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 +autoreconf -fiv +%configure +make -j 1 + +%install +%make_install + +%files +%license COPYING +%doc README +%{_bindir}/create_gcov +%{_bindir}/dump_gcov +%{_bindir}/sample_merger +%{_bindir}/profile_merger +%{_bindir}/profile_diff +%{_bindir}/profile_update +# autofdo toolchain has been integrated into LLVM, so exclude it. +%exclude %{_bindir}/create_llvm_prof + +%changelog +* Tue Nov 30 2021 liyancheng <412998149@qq.com> +- Type:Init +- ID:NA +- SUG:NA +- DESC:Init autofdo repository +