File alchemyquest.spec of Package alchemyquest

#
# spec file for package alchemyquest
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2021, 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:           alchemyquest
Version:        0.5.2
Release:        0
Summary:        A match three game
# Open Alchemist Graphics are under Creative Commons By-SA 2.0 License.
# Alchemy Quest Graphics are under Creative Commons By-SA 3.0 License.
License:        CC-BY-SA-2.0 AND GPL-2.0-or-later AND CC-BY-SA-3.0
Group:          Amusements/Games/Strategy/Other
URL:            http://identicalsoftware.com/alchemyquest/
Source:         https://gitlab.com/dulsi/alchemyquest/-/archive/release-%{version}/%{name}-release-%{version}.tar.bz2
BuildRequires:  boost-devel
BuildRequires:  cmake
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  hicolor-icon-theme
BuildRequires:  libboost_filesystem-devel
BuildRequires:  libboost_system-devel
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(SDL2_image)
BuildRequires:  pkgconfig(SDL2_mixer)
BuildRequires:  pkgconfig(expat)
BuildRequires:  pkgconfig(gamerzilla)
BuildRequires:  pkgconfig(libzip)
BuildRequires:  pkgconfig(sdl2)

%description
Alchemy Quest is a new reflection game which looks like classic falling block
games but where you can take your time. Be a crazy alchemist and try to make
new objects from those you get from the sky.

%prep
%setup -q -n %{name}-release-%{version}

%build
%cmake
%make_jobs

%install
%cmake_install
install -Dm 0644 alchemyquest.appdata.xml %{buildroot}%{_datadir}/appdata/alchemyquest.appdata.xml
install -Dm 0644 openalchemist.appdata.xml %{buildroot}%{_datadir}/appdata/openalchemist.appdata.xml
%suse_update_desktop_file -i alchemyquest
%suse_update_desktop_file -i openalchemist
%fdupes %{buildroot}/%{_datadir}
ln -s %{_bindir}/alchemyquest %{buildroot}%{_bindir}/openalchemist

%files
%license CODE-LICENSE GRAPHICS-LICENSE
%doc ChangeLog README.md
%{_bindir}/alchemyquest
%{_bindir}/openalchemist
%{_datadir}/alchemyquest/
%exclude %{_datadir}/alchemyquest/{COPYING,CODE-LICENSE,GRAPHICS-LICENSE}
%{_datadir}/icons/hicolor/*/apps/alchemyquest.png
%{_datadir}/icons/hicolor/scalable/apps/openalchemist.svg
%{_datadir}/applications/alchemyquest.desktop
%{_datadir}/applications/openalchemist.desktop
%{_datadir}/appdata/alchemyquest.appdata.xml
%{_datadir}/appdata/openalchemist.appdata.xml

%changelog
openSUSE Build Service is sponsored by