File hexwalk.spec of Package hexwalk
#
# spec file for package hexwalk
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: hexwalk
Version: 1.8.0
Release: 0
Summary: Hex analyzer, editor and viewer
License: GPL-3.0-only
Group: Development/Tools/Debuggers
URL: https://www.hexwalk.com
Source0: %{name}-%{version}.tar.xz
Source1: %{name}.desktop
# PATCH-FEATURE-OPENSUSE hexwalk-use_system_capstone.patch
Patch0: hexwalk-use_system_capstone.patch
BuildRequires: ImageMagick
BuildRequires: dos2unix
BuildRequires: hicolor-icon-theme
BuildRequires: pkgconfig(Qt5Charts)
BuildRequires: pkgconfig(capstone)
Requires: binwalk
%description
HexWalk is an Hex editor, viewer, analyzer based on opensource
projects like qhexedit2, binwalk and QT
It is cross platform and has plenty of features:
- Advanced find patterns in binary files based on HEX, UTF8, UTF16 and regex
- Binwalk integration
- Entropy Analysis
- Byte Map
- Hash Calculator
- Bin/Dec/Hex Converter
- Hex file editing
- Diff file analysis
- Byte Patterns to parse headers
%prep
%autosetup -p1
dos2unix README.md
%build
pushd hexwalk
%qmake5 hexwalk.pro
%make_build
popd
%install
install -Dm0755 bin/hexwalk %{buildroot}%{_bindir}/%{name}
install -Dm0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop
for s in 16 22 32 48 64 72 96 128 192; do
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps
convert -strip -resize ${s}x${s} hexwalk.png \
%{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps/%{name}.png
done
%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%changelog