File deerportal.spec of Package deerportal
#
# spec file for package deerportal
#
# Copyright (c) 2021 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: deerportal
Version: 0.8.2
Release: 0
Summary: Strategy game driven by the classical elements
License: Zlib
Group: Amusements/Games/Board/Card
Url: https://devcarpet.net/deerportal/
Source: https://github.com/deerportal/deerportal/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: update-desktop-files
BuildRequires: cmake(SFML)
BuildRequires: fdupes
%description
Deer Portal is a hybrid board/card game for four players driven by the
four classical elements. The game takes place in an ancient world where
the Almighty Deer God is protecting all the compassionate creatures.
%prep
%setup -q
%build
%cmake
%cmake_build
%install
%cmake_install
install -Dm0644 net.devcarpet.deerportal.appdata.xml %{buildroot}%{_datadir}/metainfo/net.devcarpet.deerportal.appdata.xml
install -Dm0644 net.devcarpet.deerportal.desktop %{buildroot}%{_datadir}/applications/net.devcarpet.deerportal.desktop
install -Dm0644 assets/img/deerportal.png %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/%{name}.png
%fdupes %{buildroot}%{_datadir}
%files
%defattr(-,root,root)
%{_bindir}/DeerPortal
%{_datadir}/games/%{name}/
%{_datadir}/applications/net.devcarpet.deerportal.desktop
%{_datadir}/icons/hicolor/256x256/apps/%{name}.png
%{_datadir}/metainfo/net.devcarpet.deerportal.appdata.xml
%changelog