%define	name	FreeDoko
%define	ver	0.3.6
%define	rel	1
%define	share	/usr/share/%{name}
%define	bin	/usr/bin

Summary: 	FreeDoko - The card game "Doppelkopf"
Name: 		%{name}
Version: 	%{ver}
Release: 	%{rel}
Copyright: 	GPL
Group: 		Amusemets/Games
Source: 	%{name}-%{ver}.src.zip
Source1: 	FreeDoko-addons.tgz
Patch0: 	%{name}-%{ver}.diff
Packager: 	Klaus Franken <freedoko@klaus.franken.de>
Buildroot: 	/var/tmp/%{name}-%{ver}
%description
The card game "Doppelkopf"

%prep 
%setup -a 1 -n FreeDoko_0.3.2
%patch0 -p1

%build
cd src && make

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT
DESTDIR=$RPM_BUILD_ROOT make install
mkdir -p $RPM_BUILD_ROOT/etc
cp -av addons/FreeDoko.conf $RPM_BUILD_ROOT/etc/FreeDoko.conf
mkdir -p $RPM_BUILD_ROOT/usr/share/FreeDoko/cards/63x98ul
cp -av addons/63x98ul/. $RPM_BUILD_ROOT/usr/share/FreeDoko/cards/63x98ul

%files
/usr/games/FreeDoko
%config /etc/FreeDoko.conf
/usr/share/FreeDoko
%doc RPMBUGS AUTHORS COPYING README README.de README.de.html Version doc/

%changelog
