diff options
Diffstat (limited to 'gdb-gef.spec')
-rw-r--r-- | gdb-gef.spec | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/gdb-gef.spec b/gdb-gef.spec new file mode 100644 index 0000000..6ba1358 --- /dev/null +++ b/gdb-gef.spec @@ -0,0 +1,86 @@ +%global forgeurl https://github.com/hugsy/gef + +Name: gdb-gef +Version: 2024.01 + +%forgemeta + +Release: 1%{?dist} +Summary: GEF (GDB Enhanced Features) + +License: MIT +URL: %{forgeurl} +Source0: %{forgesource} +Source1: gdb-gef +# https://github.com/hugsy/gef/pull/1094 +Patch0: gef-got-audit.patch + +Requires: gdb +Requires: file +Requires: binutils +Requires: procps-ng +Requires: python3 + +BuildRequires: gdb +BuildRequires: gdb-gdbserver +BuildRequires: file +BuildRequires: binutils +BuildRequires: procps-ng +BuildRequires: python3 +BuildRequires: python3-pylint +BuildRequires: python3-pytest +BuildRequires: python3-pytest-benchmark +BuildRequires: python3-pytest-cov +BuildRequires: python3-pytest-xdist +BuildRequires: python3-coverage +BuildRequires: python3-rpyc +BuildRequires: python3-requests +BuildRequires: gcc +BuildRequires: gcc-c++ +BuildRequires: make +BuildRequires: sed +BuildRequires: qemu-user +BuildRequires: git + + +%description +GEF (pronounced ʤɛf - "Jeff") is a set of commands for x86/64, ARM, +MIPS, PowerPC and SPARC to assist exploit developers and +reverse-engineers when using old school GDB. It provides additional +features to GDB using the Python API to assist during the process of +dynamic analysis and exploit development. Application developers will +also benefit from it, as GEF lifts a great part of regular GDB +obscurity, avoiding repeating traditional commands, or bringing out +the relevant information from the debugging runtime. + + +%prep +%forgesetup +%patch 0 -p1 + + +%install +mkdir -p %{buildroot}/%{_libdir}/gdb +cp gef.py %{buildroot}/%{_libdir}/gdb/gef.py + +sed -e "s:@libdir@:%{_libdir}:g" < %{SOURCE1} > %{SOURCE1}.sh +mkdir -p %{buildroot}/%{_bindir} +install -m 0755 %{SOURCE1}.sh %{buildroot}/%{_bindir}/gdb-gef + + +%check +make -C tests/binaries +python3 -m pytest -v -m "not benchmark" -m "not online" tests/ + + +%files +%license LICENSE +%doc docs README.md +%dir %{_libdir}/gdb +%{_libdir}/gdb/gef.py +%{_bindir}/gdb-gef + + +%changelog +* Wed Apr 24 2024 Gordon Messmer <gordon.messmer@gmail.com> +- Package gef 2024.01 |