File clarcomage.spec of Package clarcomage

#
# spec file for package clarcomage
#
# 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:                   clarcomage
Version:                1.alpha.02.05
Release:                0
Summary:                Command line tower-building card game
License:                GPL-3.0+
Group:                  Amusements/Games/Board/Card
Url:                    http://greatemerald.eu/index.php/arcomage/218-clarcomage
Source:                 https://github.com/GreatEmerald/Command-Line-Arcomage/archive/%{version}.tar.gz
BuildRequires:          dmd
BuildRequires:          phobos-devel
BuildRequires:          libarcomage-devel
BuildRequires:          LuaD-devel
BuildRoot:              %{_tmppath}/%{name}-%{version}-build

%description
The command line 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 and does not require 
having a graphical server installed.

%prep
%setup -qn Command-Line-Arcomage-%{version}

%build
pushd "src"
make %{?_smp_mflags} prefix=%{_prefix}
popd

%install
pushd "src"
make install DESTDIR="%{?buildroot}" prefix=%{_prefix}
popd

%files
%defattr(-,root,root)
%doc README.TXT COPYING.TXT
%{_bindir}/clarcomage
%{_mandir}/man6/clarcomage.*

%changelog
openSUSE Build Service is sponsored by