File detect-it-easy.spec of Package detect-it-easy

#
# spec file for package detect-it-easy
#
# Copyright (c) 2022, Martin Hauke <mardnh@gmx.de>
#
# 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:           detect-it-easy
Version:        3.10
Release:        0
Summary:        Detect It Easy is a program for determining types of files
License:        MIT
Group:          Development/Tools/Other
URL:            https://horsicq.github.io/
Source:         %{name}-%{version}.tar.xz
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  fdupes
BuildRequires:  hicolor-icon-theme
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(Qt5Concurrent)
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  pkgconfig(Qt5OpenGL)
BuildRequires:  pkgconfig(Qt5PrintSupport)
BuildRequires:  pkgconfig(Qt5Script)
BuildRequires:  pkgconfig(Qt5Sql)
BuildRequires:  pkgconfig(Qt5Svg)
BuildRequires:  pkgconfig(Qt5Widgets)
# 3rd-party
Provides:       bundled(XArchive)
Provides:       bundled(XCapstone)
Provides:       bundled(XCppfilt)
#
ExclusiveArch:  x86_64
Recommends:     dejavu-fonts

%description
Detect It Easy, or abbreviated "DIE" is a program to analyze files you load into
the application. It detects, among other things, the compiler and linker used,
signatures, and other information about files.

The program has been designed specifically to reveal file signatures and how
they are packed.

DIE exists in three versions:
 * die:  Basic version
 * diel: Lite version
 * diec: Console version

All the three use the same signatures, which are located in the folder "db".

%prep
%setup -q

%build
%cmake
%cmake_build


%install
%cmake_install
%fdupes %{buildroot}/%{_prefix}

%files
%{_bindir}/die
%{_bindir}/diec
%{_bindir}/diel
%{_libdir}/die
%{_datadir}/applications/die.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%dir %{_datadir}/icons/hicolor/20x20/apps/
%dir %{_datadir}/icons/hicolor/20x20


%changelog
openSUSE Build Service is sponsored by