File simsu.spec of Package simsu
#
# spec file for package simsu
#
# Copyright (c) 2021 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: simsu
Version: 1.3.9
Release: 0
Summary: A basic Sudoku game
License: GPL-3.0+
Group: Amusements/Games/Board/Puzzle
# Git-Clone: https://github.com/gottcode/simsu
Url: https://gottcode.org/simsu
Source0: %{URL}/simsu-%{version}-src.tar.bz2
BuildRequires: hicolor-icon-theme
BuildRequires: libqt5-linguist
BuildRequires: pkgconfig(Qt5Core) >= 5.9
BuildRequires: pkgconfig(Qt5Widgets) >= 5.9
%description
Simsu is a basic Sudoku game. You can switch between filling
in notes (pencil mode), or filling in answers (pen mode). To
make it easier to see where to place numbers, you can
highlight all instances of a number. You can also check your
answers for correctness while playing. The game stores your
current notes and answers, so that you can pick up where you
left off the next time you play.
%prep
%setup -q
%build
%qmake5 \
QMAKE_STRIP="" \
PREFIX=%{_prefix} \
QMAKE_CXXFLAGS+="%{optflags}"
%make_build
%install
%make_install INSTALL_ROOT=%{buildroot}
%files
%defattr(-,root,root)
%doc ChangeLog COPYING CREDITS
%{_bindir}/%{name}
%{_mandir}/man6/simsu.6%{?ext_man}
%{_datadir}/applications/%{name}.desktop
%dir /usr/share/icons/hicolor/1024x1024/{,apps}
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%{_datadir}/metainfo/simsu.appdata.xml
%{_datadir}/pixmaps/%{name}.xpm
%{_datadir}/%{name}
%changelog