File darcomage.spec of Package darcomage
#
# spec file for package darcomage
#
# Copyright (c) 2014 SUSE LINUX Products 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: darcomage
Version: 1.rc.21.05
Release: 0
Summary: Tower-building card game in SDL2
License: GPL-3.0+
Group: Amusements/Games/Board/Card
Url: http://greatemerald.eu/index.php/arcomage/136-arcomage-clone
Source: https://github.com/GreatEmerald/%{name}/archive/%{version}.tar.gz
Source1: https://bitbucket.org/cybershadow/derelict/get/2e6bc9cf5f37.tar.gz
Requires: %{name}-data
Requires: SDL2 >= 2.0.3
Requires: SDL2_ttf
Requires: SDL2_image
Requires: SDL2_mixer
BuildRequires: update-desktop-files
BuildRequires: hicolor-icon-theme
BuildRequires: dmd
BuildRequires: phobos-devel
BuildRequires: libarcomage-devel
BuildRequires: LuaD-devel
BuildRequires: SDL2-devel >= 2.0.3
BuildRequires: SDL2_image-devel
BuildRequires: SDL2_mixer-devel
BuildRequires: SDL2_ttf-devel
BuildRequires: cmake
BuildRequires: cmake(sdl2)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The SDL2 and OpenGL frontend for libarcomage. This a card game where two players
compete in being the first to build their tower to the top, destroying the
opponent's tower, or accumulating a whole lot of resources, by strategically
using a variety of different cards that have different effects on the game.
The game frontend is written in the D programming language.
This package contains the executables only, the data is in a separate package.
%package data
Summary: Data files for DArcomage
Requires: %{name} >= %{version}
BuildArch: noarch
%description data
The SDL2 and OpenGL frontend for libarcomage. This a card game where two players
compete in being the first to build their tower to the top, destroying the
opponent's tower, or accumulating a whole lot of resources, by strategically
using a variety of different cards that have different effects on the game.
The game frontend is written in the D programming language.
This package contains the game data (images and sounds), not the executables.
%prep
%setup -qa 1
mv $PWD/cybershadow-derelict-2e6bc9cf5f37/* include/derelict/
%build
pushd "build"
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%{_prefix} ..
make %{?_smp_mflags}
popd
%install
pushd "build"
%make_install
popd
%suse_update_desktop_file darcomage
%files
%defattr(-,root,root)
%doc README.MD COPYING.TXT
%{_bindir}/darcomage
%{_datarootdir}/applications/darcomage.desktop
%{_datarootdir}/icons/hicolor/32x32/apps/darcomage.png
%{_mandir}/man6/darcomage.*
%files data
%defattr(-,root,root)
%{_datarootdir}/arcomage/darcomage-data/
%changelog