]>
Commit | Line | Data |
---|---|---|
c98f7e6a AG |
1 | Summary: The Open Source Texas-Holdem Poker Engine |
2 | Summary(pl.UTF-8): Silnik gry Texas-Holdem poker | |
3 | Name: pokerth | |
2a63ac07 | 4 | Version: 1.1 |
2c528e2b | 5 | Release: 7 |
c98f7e6a AG |
6 | License: GPL v2+ |
7 | Group: X11/Applications/Games | |
0434c891 | 8 | Source0: http://downloads.sourceforge.net/pokerth/PokerTH-%{version}-src.tar.bz2 |
2a63ac07 JR |
9 | # Source0-md5: 7f577fdb04c697ac7227c1a0d4311ffc |
10 | Patch0: qt.patch | |
d89f6892 | 11 | Patch1: x32.patch |
c98f7e6a AG |
12 | URL: http://www.pokerth.net/ |
13 | BuildRequires: QtCore-devel >= 4.3.1 | |
14 | BuildRequires: QtGui-devel >= 4.3.1 | |
0434c891 | 15 | BuildRequires: QtNetwork-devel |
16 | BuildRequires: QtSql-devel | |
c98f7e6a AG |
17 | BuildRequires: SDL_mixer-devel |
18 | BuildRequires: boost-devel >= 1.37.0-3 | |
19 | BuildRequires: curl-devel >= 7.16 | |
20 | BuildRequires: gnutls-devel | |
0434c891 | 21 | BuildRequires: gsasl-devel |
a0049471 | 22 | BuildRequires: libircclient-devel |
2a63ac07 | 23 | BuildRequires: protobuf-devel |
c98f7e6a AG |
24 | BuildRequires: qt4-build >= 4.3.1 |
25 | BuildRequires: qt4-qmake >= 4.3.1 | |
4a178bf3 | 26 | BuildRequires: sed >= 4.0 |
8482ca5a | 27 | BuildRequires: tinyxml-devel |
c98f7e6a AG |
28 | BuildRequires: zlib-devel >= 1.2.3 |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
30 | ||
31 | %description | |
4a178bf3 | 32 | PokerTH is a poker game written in C++/Qt4. You can play the popular |
c98f7e6a AG |
33 | "Texas Hold'em" poker variant against up to six computer-opponents or |
34 | play network games with people all over the world. This poker engine | |
4a178bf3 | 35 | is available for Linux, Windows, and MacOS X. |
c98f7e6a AG |
36 | |
37 | %description -l pl.UTF-8 | |
4a178bf3 | 38 | PokerTH to komputerowa gra w pokera napisana w C++/Qt4. Umożliwia ona |
c98f7e6a AG |
39 | grę w popularny wariant "Texas Hold'em" przeciwko maksymalnie sześciu |
40 | komputerowym przeciwnikom lub sieciową grę z innymi zawodnikami. | |
4a178bf3 | 41 | Silnik gry dostępny jest na platformy Linux, Windows oraz MacOS X. |
c98f7e6a AG |
42 | |
43 | %prep | |
44 | %setup -q -n PokerTH-%{version}-src | |
2a63ac07 | 45 | %patch0 -p1 |
d89f6892 | 46 | %patch1 -p1 |
4a178bf3 | 47 | |
c98f7e6a | 48 | %build |
4a178bf3 JB |
49 | qmake-qt4 pokerth.pro \ |
50 | QMAKE_CXX="%{__cxx}" \ | |
1c266793 | 51 | QMAKE_CXXFLAGS_RELEASE="%{rpmcxxflags}" |
4a178bf3 | 52 | QMAKE_LFLAGS_RELEASE="%{rpmldflags}" |
c98f7e6a AG |
53 | %{__make} |
54 | ||
55 | %install | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | install -d $RPM_BUILD_ROOT%{_bindir} | |
58 | %{__make} install \ | |
59 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
60 | ||
61 | install pokerth bin/pokerth_server $RPM_BUILD_ROOT%{_bindir} | |
62 | ||
63 | %clean | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
66 | %files | |
67 | %defattr(644,root,root,755) | |
68 | %doc COPYING ChangeLog TODO | |
69 | %attr(755,root,root) %{_bindir}/pokerth* | |
70 | %{_desktopdir}/%{name}.desktop | |
71 | %{_pixmapsdir}/%{name}.png | |
72 | %{_datadir}/%{name} |