1 Summary: The Open Source Texas-Holdem Poker Engine
2 Summary(pl.UTF-8): Silnik gry Texas-Holdem poker
7 Group: X11/Applications/Games
8 #Source0Download: https://github.com/pokerth/pokerth/releases
9 #future releases: https://github.com/pokerth/pokerth/archive/%{version}/%{name}-%{version}.tar.gz
10 Source0: http://downloads.sourceforge.net/pokerth/pokerth-%{version}.tar.gz
11 # Source0-md5: 8fd7d7fc7ece17315e58aa3240dd4586
13 Patch1: system-qtsingleapp.patch
15 Patch3: %{name}-protobuf.patch
16 Patch4: %{name}-boost.patch
17 # from https://github.com/zaphoyd/websocketpp/pull/814/commits/c769c9238ad62178f506038178714a1c35aa2769.patch
18 Patch5: %{name}-websocketpp-boost.patch
19 URL: https://pokerth.net/
20 BuildRequires: QtCore-devel >= 4.4.3
21 BuildRequires: QtGui-devel >= 4.4.3
22 BuildRequires: QtNetwork-devel >= 4.4.3
23 BuildRequires: QtSingleApplication-devel
24 BuildRequires: QtSql-devel >= 4.4.3
25 BuildRequires: SDL-devel
26 BuildRequires: SDL_mixer-devel
27 BuildRequires: boost-devel >= 1.49
28 BuildRequires: curl-devel >= 7.16
29 BuildRequires: gnutls-devel
30 BuildRequires: gsasl-devel >= 1.4
31 BuildRequires: libircclient-devel >= 1.3
32 BuildRequires: libstdc++-devel >= 6:4.7
33 BuildRequires: protobuf-devel >= 2.3.0
34 BuildRequires: qt4-build >= 4.3.1
35 BuildRequires: qt4-qmake >= 4.3.1
36 BuildRequires: sed >= 4.0
37 BuildRequires: sqlite3-devel >= 3
38 BuildRequires: tinyxml-devel
39 BuildRequires: zlib-devel >= 1.2.3
40 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43 PokerTH is a poker game written in C++/Qt4. You can play the popular
44 "Texas Hold'em" poker variant against up to six computer-opponents or
45 play network games with people all over the world. This poker engine
46 is available for Linux, Windows, and MacOS X.
48 %description -l pl.UTF-8
49 PokerTH to komputerowa gra w pokera napisana w C++/Qt4. Umożliwia ona
50 grę w popularny wariant "Texas Hold'em" przeciwko maksymalnie sześciu
51 komputerowym przeciwnikom lub sieciową grę z innymi zawodnikami.
52 Silnik gry dostępny jest na platformy Linux, Windows oraz MacOS X.
55 %setup -q -n pokerth-%{version}-rc
63 %{__rm} -r src/third_party/qtsingleapplication
66 install -d build-client build-server
68 qmake-qt4 ../pokerth.pro \
69 QMAKE_CXX="%{__cxx}" \
70 QMAKE_CXXFLAGS_RELEASE="%{rpmcxxflags}" \
71 QMAKE_LFLAGS_RELEASE="%{rpmldflags}"
75 qmake-qt4 ../pokerth.pro \
77 QMAKE_CXX="%{__cxx}" \
78 QMAKE_CXXFLAGS_RELEASE="%{rpmcxxflags}" \
79 QMAKE_LFLAGS_RELEASE="%{rpmldflags}"
83 rm -rf $RPM_BUILD_ROOT
84 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
86 %{__make} -C build-client install \
87 INSTALL_ROOT=$RPM_BUILD_ROOT
89 install build-client/pokerth build-server/bin/pokerth_server $RPM_BUILD_ROOT%{_bindir}
90 cp -p docs/pokerth.1 $RPM_BUILD_ROOT%{_mandir}/man1
93 rm -rf $RPM_BUILD_ROOT
96 %defattr(644,root,root,755)
97 %doc COPYING ChangeLog TODO
98 %attr(755,root,root) %{_bindir}/pokerth
99 %attr(755,root,root) %{_bindir}/pokerth_server
100 %{_desktopdir}/pokerth.desktop
101 %{_pixmapsdir}/pokerth.png
103 %{_mandir}/man1/pokerth.1*