Name: pokerth Version: 1.0 Release: 1%{?dist} Summary: A Texas-Holdem poker game Group: Amusements/Games License: GPLv2+ URL: http://www.pokerth.net Source0: http://downloads.sourceforge.net/%{name}/PokerTH-%{version}-src.tar.bz2 Patch0: fix-libircclient-include.patch Patch1: pokerth-0.8.3-gnutls-only.patch BuildRequires: desktop-file-utils BuildRequires: qt4-devel BuildRequires: zlib-devel BuildRequires: libcurl-devel BuildRequires: gnutls-devel BuildRequires: boost-devel >= 1.37 BuildRequires: SDL_mixer-devel BuildRequires: libgsasl-devel BuildRequires: sqlite-devel BuildRequires: libircclient-devel BuildRequires: tinyxml-devel # src/third_party/protobuf/pokerth.pb.h includes google/protobuf/stubs/common.h BuildRequires: protobuf-devel # Removed bundled fonts Requires: dejavu-sans-fonts Requires: urw-fonts %description PokerTH is a poker game written in C++/Qt4. You can play the popular "Texas Hold'em" poker variant against up to six computer-opponents or play network games with people all over the world. This poker engine is available for Linux, Windows, and MacOSX. %prep %setup -q -n PokerTH-%{version}-src %patch0 -p2 #%patch1 -p1 # Fix permissions chmod 644 ChangeLog find . -name *.h -exec chmod 644 {} \; find . -name *.cpp -exec chmod 644 {} \; # Remove option that breaks build from qmake files for file in *.pro; do sed -i "s|-no_dead_strip_inits_and_terms||g" $file done %build export CXXFLAGS="%{optflags} -DBOOST_FILESYSTEM_VERSION=2" %{_qt4_qmake} pokerth.pro make %{?_smp_mflags} %install rm -rf %{buildroot} make install INSTALL_ROOT=%{buildroot} COPY="cp -p -f" # Ugh, binary isn't automatically installed install -D -p -m 755 %{name} %{buildroot}%{_bindir}/%{name} install -D -p -m 755 bin/%{name}_server %{buildroot}%{_bindir}/%{name}_server # and replace them with symlinks ln -s %{_datadir}/fonts/default/Type1/c059013l.pfb %{buildroot}%{_datadir}/%{name}/data/fonts/ #ln -s %{_datadir}/fonts/default/Type1/n019003l.pfb %{buildroot}%{_datadir}/%{name}/data/fonts/ ln -s %{_datadir}/fonts/dejavu/DejaVuSans-Bold.ttf %{buildroot}%{_datadir}/%{name}/data/fonts/VeraBd.ttf # Install desktop file desktop-file-install --remove-category="Qt" --dir=%{buildroot}%{_datadir}/applications %{name}.desktop %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc COPYING ChangeLog TODO %{_bindir}/%{name} %{_bindir}/%{name}_server %{_datadir}/%{name}/ %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/%{name}.png %changelog * Mon Feb 18 2013 Adam Williamson <awilliam@redhat.com> - 1.0-1 - new release 1.0 * Sun Feb 10 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 0.9.5-6 - Rebuild for Boost-1.53.0 * Sat Feb 09 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 0.9.5-5 - Rebuild for Boost-1.53.0 * Sun Aug 12 2012 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 0.9.5-4 - rebuilt for new boost * Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Thu Jul 19 2012 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 0.9.5-2 - add missing BR tinyxml-devel * Tue Jul 17 2012 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 0.9.5-1 - new version * Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.3-13 - Rebuilt for c++ ABI breakage * Mon Jan 30 2012 Bruno Wolff III <bruno@wolff.to> - 0.8.3-12 - Fix for gcc 4.7 * Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.3-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Sat Nov 26 2011 Bruno Wolff III <bruno@wolff.to> - 0.8.3-10 - Rebuild for boost 1.48 soname bump * Sun Oct 9 2011 Ryan Rix <ry@n.rix.si> - 0.8.3-9 - Grammar and update to personal specifications - Apply patch to fix GNUTLS issues from Paul Frields <pfrields at fedoraproject dot org> * Fri Jul 29 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.8.3-8 - Bump spec due to new gnutls. * Fri Jul 22 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.8.3-7 - Bump spec due to new boost. * Tue Apr 26 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.8.3-6 - Bump due to libgnutls update. * Wed Apr 06 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.8.3-5 - Bump spec due to boost upgrade. * Sun Feb 20 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.8.3-4 - Fix build against new boost. * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Mon Feb 07 2011 Thomas Spura <tomspur@fedoraproject.org> - 0.8.3-2 - rebuild for new boost * Tue Jan 18 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.8.3-1 - Update to 0.8.3. * Wed Jan 05 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.8.2-1 - Update to 0.8.2. * Sun Oct 17 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.8.1-1 - Update to 0.8.1. * Tue Sep 07 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.8-0.1.beta3 - Upgrade to 0.8 series due to boost incompatibility. * Mon Aug 02 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.7.1-5 - Bump spec due to boost upgrade. * Thu Jun 03 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.7.1-4 - Fix FTBFS caused by implicit DSO linking in rawhide. * Thu Jan 21 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.7.1-3 - Bump spec due to change of boost soname. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed Jul 01 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.7.1-1 - Update to upstream 0.7.1. * Sun Jun 21 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.7-5 - Use bold style instead of book style. * Sun Jun 21 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.7-4 - Fix BZ #507131. * Sun Jun 14 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.7-3 - Removed BR: asio-devel. - Changed BR on boost to >= 1.37. * Sat Jun 13 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.7-2 - Fix spelling error in font symlink, conserve time stamps. * Wed May 27 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.7-1 - First release.