File fhex.spec of Package fhex
#
# spec file for package fhex
#
# Copyright (c) 2020 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: fhex
Version: 2.3.1
Release: 0
Summary: A Full-Featured HexEditor
License: GPL-3.0-only AND MIT AND CC0-1.0
URL: https://github.com/echo-devim/fhex
Source0: https://github.com/echo-devim/fhex/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(Qt5Charts)
BuildRequires: pkgconfig(Qt5Widgets)
%description
Fhex - A Full-Featured HexEditor
This project is based on qhexedit2.
%prep
%autosetup
%build
%qmake5
%make_jobs
%install
install -Dm0755 fhex %{buildroot}%{_bindir}/%{name}
install -Dm0644 icon.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
%suse_update_desktop_file -c %{name} %{name} 'HEX editor' %{name} %{name} Development Debugger
%files
%doc README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%changelog