eteran / edb-debugger

edb is a cross-platform AArch32/x86/x86-64 debugger.
GNU General Public License v2.0
2.66k stars 321 forks source link

Add Fedora RPM specfile #814

Closed brndd closed 2 years ago

brndd commented 2 years ago

This is a specfile for packaging edb into an RPM for Fedora. Other distros (eg. OpenSUSE) are untested; it certainly won't build on OpenSUSE due to missing dependencies.

I've used this to package edb on COPR (the Fedora user repository) for personal use, but figured I might as well put it here too in case it interests you. With this it should be relatively simple to eg. set up a COPR that automatically builds every GitHub release as soon as you push them, using COPR's webhook functionality.

Building the RPM locally using this is relatively simple:

  1. Run rpmdev-setuptree to set up the rpmbuild directory in your ~/.
  2. Move edb.spec to ~/rpmbuild/SPECS/
  3. Build the RPM with cd ~/rpmbuild && rpmbuild -ba SPECS/edb.spec
eteran commented 2 years ago

Thanks!

brndd commented 2 years ago

Oh, I should mention: currently this only builds on x86_64 because of this line: ExclusiveArch: %{ix86} x86_64. AArch32 and 32-bit x86 aren't supported by Fedora, but if edb ever gets AArch64 support then this specfile should be updated to match that.

eteran commented 2 years ago

Good to know, technically edb DOES already have AArch64 support, but it probably could use a bit of improvement