Name: ghidra Version: 20260827 Release: 1%{?dist} Summary: A software reverse engineering (SRE) suite of tools License: Apache-2.0 URL: https://github.com/NationalSecurityAgency/ghidra Source0: https://github.com/NationalSecurityAgency/ghidra/archive/refs/heads/master.zip Source1: ghidra.desktop BuildRequires: java-25-openjdk-devel BuildRequires: python3 BuildRequires: python3-pip BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: make BuildRequires: clang BuildRequires: unzip BuildRequires: zip BuildRequires: git BuildRequires: desktop-file-utils Requires: java-25-openjdk Requires: python3 %description Ghidra is a software reverse engineering (SRE) framework created and maintained by the National Security Agency Research Directorate. This framework includes a suite of full-featured, high-end software analysis tools that enable users to analyze compiled code on a variety of platforms including Windows, macOS, and Linux. Capabilities include disassembly, assembly, decompilation, graphing, and scripting, along with hundreds of other features. Ghidra supports a wide variety of processor instruction sets and executable formats and can be run in both user-interactive and automated modes. Users may also develop their own Ghidra extension components and/or scripts using Java or Python. %prep %autosetup -n ghidra-master %build chmod +x gradlew ./gradlew -I gradle/support/fetchDependencies.gradle ./gradlew buildGhidra %install mkdir -p %{buildroot}/opt unzip build/dist/ghidra_*_DEV_*.zip -d %{buildroot}/opt/ mv %{buildroot}/opt/ghidra_*_DEV_* %{buildroot}/opt/ghidra mkdir -p %{buildroot}%{_bindir} ln -s /opt/ghidra/ghidraRun %{buildroot}%{_bindir}/ghidra mkdir -p %{buildroot}%{_datadir}/applications desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1} mkdir -p %{buildroot}%{_datadir}/pixmaps cp $(find . -name "GhidraIcon256.png" | head -n 1) %{buildroot}%{_datadir}/pixmaps/ghidra.png %files /opt/ghidra %{_bindir}/ghidra %{_datadir}/applications/ghidra.desktop %{_datadir}/pixmaps/ghidra.png %changelog * Thu Aug 27 2026 - 20260827-1 - Initial build from source using Gradle wrapper