%global libname libdwarves %global libver 1 Name: dwarves Version: 1.31 Release: 1%{?dist} Summary: Debugging information manipulation tools License: GPL-2.0-only URL: https://git.kernel.org/pub/scm/devel/pahole/pahole.git Source0: https://fedorapeople.org/~acme/dwarves/%{name}-%{version}.tar.xz BuildRequires: cmake BuildRequires: gcc BuildRequires: elfutils-devel >= 0.130 BuildRequires: zlib-devel Requires: %{libname}%{libver}%{?_isa} = %{version}-%{release} %description Dwarves is a set of tools for inspecting DWARF and BTF debugging information. It includes pahole, which the Linux kernel build uses to generate BTF metadata. %package -n %{libname}%{libver} Summary: Debugging information processing libraries %description -n %{libname}%{libver} Libraries for processing DWARF and BTF debugging information. %package -n %{libname}%{libver}-devel Summary: Development files for %{libname} Requires: %{libname}%{libver}%{?_isa} = %{version}-%{release} %description -n %{libname}%{libver}-devel Headers and unversioned libraries for developing against %{libname}. %prep %autosetup %build %cmake -DCMAKE_BUILD_TYPE=Release %cmake_build %install %cmake_install %check LD_LIBRARY_PATH=%{buildroot}%{_libdir} \ %{buildroot}%{_bindir}/pahole --supported_btf_features | \ grep -q 'decl_tag_kfuncs' %ldconfig_scriptlets -n %{libname}%{libver} %files %license COPYING %doc NEWS README.btf README.ctracer changes-v1.31 %{_bindir}/btfdiff %{_bindir}/codiff %{_bindir}/ctracer %{_bindir}/dtagnames %{_bindir}/fullcircle %{_bindir}/ostra-cg %{_bindir}/pahole %{_bindir}/pdwtags %{_bindir}/pfunct %{_bindir}/pglobal %{_bindir}/prefcnt %{_bindir}/scncopy %{_bindir}/syscse %{_mandir}/man1/pahole.1* %dir %{_datadir}/dwarves %dir %{_datadir}/dwarves/runtime %dir %{_datadir}/dwarves/runtime/python %{_datadir}/dwarves/runtime/Makefile %{_datadir}/dwarves/runtime/linux.blacklist.cu %{_datadir}/dwarves/runtime/ctracer_relay.c %{_datadir}/dwarves/runtime/ctracer_relay.h %attr(0755,root,root) %{_datadir}/dwarves/runtime/python/ostra.py %files -n %{libname}%{libver} %license COPYING %{_libdir}/%{libname}.so.%{libver}* %{_libdir}/%{libname}_emit.so.%{libver}* %{_libdir}/%{libname}_reorganize.so.%{libver}* %files -n %{libname}%{libver}-devel %license COPYING %doc MANIFEST README %{_includedir}/dwarves %{_libdir}/%{libname}.so %{_libdir}/%{libname}_emit.so %{_libdir}/%{libname}_reorganize.so %changelog * Mon Sep 07 2026 sachesi - 1.31-1 - Package dwarves 1.31 for Linux kernel BTF generation.