File iqpuzzle.spec of Package iqpuzzle

#
# spec file for package iqpuzzle
#
# Copyright (c) 2024 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/
#


%define  _name  com.github.elth0r0.iqpuzzle
Name:           iqpuzzle
Version:        @SERVICE@
Release:        0
Summary:        A challenging pentomino puzzle
License:        GPL-3.0-or-later
Group:          Amusements/Games/Logic
URL:            https://github.com/ElTh0r0/iqpuzzle
Source0:        %{name}-%{version}.tar.xz
BuildRequires:  cmake >= 3.16
BuildRequires:  cmake(Qt6Core)
BuildRequires:  cmake(Qt6Gui)
BuildRequires:  cmake(Qt6LinguistTools)
BuildRequires:  cmake(Qt6Widgets)
BuildRequires:  gcc-c++
BuildRequires:  hicolor-icon-theme
BuildRequires:  update-desktop-files

%description
iQPuzzle is a diverting I.Q. challenging pentomino puzzle. Pentominos are
used as puzzle pieces and more than 300 different board shapes are
available, which have to be filled with them.

%prep
%autosetup

%build
%cmake_qt6
%qt6_build

%install
%qt6_install

%files
%doc README.md
%{_bindir}/%{name}
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/boards/
%{_datadir}/applications/%{_name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{_name}.??g
%{_datadir}/metainfo/%{_name}.metainfo.xml
%{_mandir}/man?/%{name}.?%{?ext_man}
%{_mandir}/??/man?/%{name}.?%{?ext_man}
%license COPYING

%changelog
openSUSE Build Service is sponsored by