File LibreMines.spec of Package LibreMines
#
# spec file for package LibreMines
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# 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/
#
%if 0%{?sle_version} && 0%{?sle_version} < 160000
%global force_gcc_version 13
%endif
Name: LibreMines
Version: 2.2.0
Release: 0
Summary: Qt6 based Minesweeper game
License: GPL-3.0-or-later
URL: https://github.com/Bollos00/LibreMines
Source: https://github.com/Bollos00/LibreMines/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: gcc%{?force_gcc_version}-c++
BuildRequires: hicolor-icon-theme
BuildRequires: cmake(Qt6Core)
BuildRequires: cmake(Qt6Multimedia)
BuildRequires: cmake(Qt6Svg)
BuildRequires: cmake(Qt6Widgets)
%description
A Qt6 based Minesweeper game with options to create customized fields,
dark mode, keyboard controller gameplay and more.
%prep
%autosetup
%build
%if 0%{?force_gcc_version}
export CXX="g++-%{force_gcc_version}"
%endif
%cmake
%cmake_build
%install
%cmake_install
%check
%files
%doc README.md
%license LICENSE
%{_bindir}/libremines
%{_datadir}/libremines
%{_datadir}/applications/io.github.Bollos00.LibreMines.desktop
%{_datadir}/icons/hicolor/scalable/apps/libremines.svg
%dir %{_datadir}/metainfo/
%{_datadir}/metainfo/io.github.Bollos00.LibreMines.appdata.xml
%changelog