Package PokerTH: Specfile

# vim: set ft=spec: -*- rpm-spec -*-

Name: PokerTH
Version: 0.7.1
Release: alt1

Summary: Texas Hold'em poker game
Group: Games/Cards
License: GPL
Url: http://www.pokerth.net/

Source: %name-%version.tar
Patch: %name-%version-%release.patch

# Automatically added by buildreq on Tue May 26 2009
BuildRequires: boost-asio-devel boost-filesystem-devel boost-program_options-devel gcc-c++ libSDL-devel libSDL_mixer-devel libcurl-devel libdb4-devel libgnutls-openssl-devel libqt4-devel

%description
PokerTH is a poker game written in C++/QT4. You can play the popular
"Texas Hold'em" poker variant against up to nine computer-opponents or
play network games with people all over the world.

%prep
%setup
%patch -p1

%build
qmake-qt4 pokerth.pro
%make_build Makefile.pokerth_{lib,game,server}
sed -i 's|-pipe |%optflags -fno-strict-aliasing |g' Makefile*
%make_build

%install
%makeinstall_std INSTALL_ROOT=%buildroot
mkdir -p %buildroot%_bindir
install -pm755 pokerth bin/pokerth_server %buildroot%_bindir

%files
%_bindir/*
%_datadir/pokerth
%_desktopdir/pokerth.desktop
%_pixmapsdir/pokerth.png

%changelog
* Fri Jun 26 2009 Alexey I. Froloff <raorn@altlinux.org> 0.7.1-alt1
- [0.7.1]

* Tue May 26 2009 Alexey I. Froloff <raorn@altlinux.org> 0.7-alt1
- Built for Sisyphus