#
# spec file for iQPuzzle
#
# Copyright (C) 2012-2020 Thorsten Roth
#
# iQPuzzle is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# iQPuzzle is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with iQPuzzle. If not, see .
Name: iqpuzzle
Summary: Challenging pentomino puzzle
Version: 1.2.6
Release: 1%{?dist}
URL: https://github.com/ElTh0r0/iqpuzzle
%if !0%{?os2_version}
Source: %{name}-%{version}.tar.gz
%else
%scm_source github https://github.com/ElTh0r0/iqpuzzle master
%endif
# Fedora, RHEL, OS2, or CentOS
#--------------------------------------------------------------------
%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version} || 0%{?os2_version}
License: GPLv3+
%if !0%{?os2_version}
BuildRequires: desktop-file-utils
%endif
BuildRequires: gcc
%if !0%{?os2_version}
BuildRequires: hicolor-icon-theme
%endif
%endif
#--------------------------------------------------------------------
# openSUSE or SLE
#--------------------------------------------------------------------
%if 0%{?suse_version}
License: GPL-3.0+
Group: Amusements/Games/Board/Puzzle
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
Requires(post): hicolor-icon-theme
Requires(post): update-desktop-files
Requires(postun): hicolor-icon-theme
Requires(postun): update-desktop-files
%endif
#--------------------------------------------------------------------
# All
#--------------------------------------------------------------------
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5UiTools)
BuildRequires: pkgconfig(Qt5Widgets)
#--------------------------------------------------------------------
%description
iQPuzzle is a diverting and challenging puzzle. Pentominos are used
as puzzle pieces and more than 300 different board shapes are available,
which have to be filled with them.
%prep
%if !0%{?os2_version}
%setup -q -n %{name}-%{version}
%else
%scm_setup
%endif
# Fedora, RHEL, or CentOS
#--------------------------------------------------------------------
%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version} || 0%{?os2_version}
%build
# Create qmake cache file to add rpm optflags.
cat > .qmake.cache < .qmake.cache < 1.2.6-1
- Updated to latest version
* Thu Jun 03 2021 Elbert Pol 1.2.5-1
- Updated to latest version
* Wed Apr 28 2021 Elbert Pol 1.2.4-1
- Updated to latest version
* Mon Mar 22 2021 Elbert Pol 1.2.3-1
- Updated to latest version
* Thu Mar 18 2021 Elbert Pol 1.2.2-2
- Add OS2 to the right definition
* Tue Mar 16 2021 Elbert Pol 1.2.2-2
- Fix a wrong def for OS/2
* Sun Mar 14 2021 Elbert Pol 1.2.2-1
- Updated to latest version
* Mon Nov 30 2020 Elbert Pol 1.2.1-1
- Updated to latest version
* Wed Mar 18 2020 Elbert Pol 1.2.0-2
- Add version to os2 define
* Mon Mar 16 2020 Elbert Pol 1.2.0-1
- First OS2 build with QT5
* Sun Mar 15 2020 elthoro@gmx.de 1.2.0
- 21 new boards.
- Option to use system window background color as board background.
- Fix restarting a saved game.
- Some Clang-Tidy and Clazy code improvements.