File freegemas.spec of Package freegemas

#
# spec file for package freegemas
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2021-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:           freegemas
Version:        22.02
Release:        0
Summary:        A match 3 puzzle game
# game music is licensed under CC-BY-3.0
License:        GPL-2.0-only
URL:            https://github.com/JoseTomasTocino/freegemas
#Git-Clone:     https://github.com/JoseTomasTocino/freegemas.git
Source:         https://github.com/JoseTomasTocino/freegemas/archive/refs/tags/%{version}.tar.gz
BuildRequires:  cmake
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  hicolor-icon-theme
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(SDL2_image)
BuildRequires:  pkgconfig(SDL2_mixer)
BuildRequires:  pkgconfig(SDL2_ttf)
BuildRequires:  pkgconfig(jsoncpp)
BuildRequires:  pkgconfig(sdl2)

%description
An open source version of the well known game Bejeweled.

%prep
%setup -q

%build
%cmake
%make_build

%install
%cmake_install

%files
%license LICENSE
%doc README.md
%{_bindir}/freegemas
%{_datadir}/freegemas
%{_datadir}/applications/freegemas.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%exclude %{_datadir}/doc/freegemas/README.md

%changelog
openSUSE Build Service is sponsored by