rehex/rehex.spec
Michael Vetter ef399379e4 - Use the default lua version (currently 5.4): buildrequire
lua-busted instead of lua53-busted, which then fails to run
  against the default lua interpreter.
  See also boo#1199151

OBS-URL: https://build.opensuse.org/package/show/editors/rehex?expand=0&rev=16
2022-11-04 13:42:01 +00:00

79 lines
2.2 KiB
RPMSpec

#
# spec file for package rehex
#
# Copyright (c) 2022 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: rehex
Version: 0.5.4
Release: 0
Summary: Reverse Engineers' Hex Editor
License: GPL-2.0-only
URL: https://github.com/solemnwarning/rehex
Source0: https://github.com/solemnwarning/rehex/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: dos2unix
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: libunistring-devel
BuildRequires: lua-busted
BuildRequires: perl-Template-GD
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: zip
BuildRequires: pkgconfig(capstone)
BuildRequires: pkgconfig(jansson)
BuildRequires: pkgconfig(lua)
%if 0%{?suse_version} > 1500
BuildRequires: wxWidgets-3_0-devel
%else
BuildRequires: wxWidgets-devel
%endif
%description
A hex heditor with a number of features for analysing and annotating
binary file formats.
Current features include:
Large file support (tested up to 1 TiB)
Decoding of integer/floating point value types
Disassembly of machine code
Highlighting and annotation of ranges of bytes
%prep
%autosetup
dos2unix README.md
%build
export CFLAGS="%{optflags}"
export CXXFLAGS="$CFLAGS"
%make_build prefix=%{_prefix} libdir=%{_libdir}
%install
%make_install prefix=%{_prefix} libdir=%{_libdir}
%suse_update_desktop_file -r %{name} "Development;Debugger;"
%files
%license LICENSE.txt
%doc README.md
%{_bindir}/%{name}
%{_libdir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%dir %{_datadir}/rehex
%{_datadir}/rehex/rehex.htb
%changelog