david_david

pokerth.spec

Jan 8th, 2016
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.30 KB | None | 0 0
  1. Name: pokerth
  2. Summary: Play Texas Holdem Poker alone or online
  3. Version: 1.1.1
  4. Release: %mkrel 9
  5. License: GPLv2+
  6. Group: Games/Cards
  7. URL: http://www.pokerth.net/
  8. Source0: http://downloads.sourceforge.net/pokerth/PokerTH-%{version}-src.tar.bz2
  9. Patch0: PokerTH-1.0.1-libircclient-dir.patch
  10. Patch1: PokerTH-0.9.1-link.patch
  11. Patch2: pokerth-1.1.1-Qualify-std-ifstream-and-std-ofstream.patch
  12. Patch3: 0001-Qt-5.5.0-patch-for-qtsingleapplication.patch
  13. BuildRequires: pkgconfig(protobuf)
  14. BuildRequires: pkgconfig(Qt5Core)
  15. BuildRequires: pkgconfig(Qt5Gui)
  16. BuildRequires: pkgconfig(Qt5Network)
  17. BuildRequires: pkgconfig(gnutls)
  18. BuildRequires: pkgconfig(libcurl)
  19. BuildRequires: pkgconfig(libgsasl)
  20. BuildRequires: pkgconfig(sqlite3)
  21. BuildRequires: libgcrypt-devel
  22. BuildRequires: boost-devel
  23. BuildRequires: SDL_mixer1.2-devel
  24. BuildRequires: tinyxml-devel
  25. BuildRequires: libircclient-static-devel
  26. BuildRequires: qttools5
  27.  
  28. %description
  29. PokerTH is a multi-platform poker game.
  30. It allows you to play the popular "Texas Hold'em" poker variant against up to
  31. six computer-opponents or play network games with people all over the world.
  32.  
  33. %package server
  34. Summary: PokerTH server
  35. Group: Games/Cards
  36.  
  37. %description server
  38. PokerTH server.
  39.  
  40. %prep
  41. %setup -q -n PokerTH-%{version}-src
  42. %patch0 -p0
  43. %patch1 -p0
  44. %patch2 -p1
  45. %patch3 -p1
  46.  
  47. %build
  48. %qmake_qt5 pokerth.pro
  49. make
  50.  
  51. %install
  52. #data
  53. %make_install INSTALL_ROOT=%{buildroot}
  54. #binaries
  55. install -d -m 755 %{buildroot}%{_bindir}
  56. install -m 755 %{name} %{buildroot}%{_bindir}/
  57. install -m 755 bin/%{name}_server %{buildroot}%{_bindir}/
  58. #man page
  59. install -d -m 755 %{buildroot}%{_mandir}/man1
  60. install -m 644 docs/%{name}.1 %{buildroot}%{_mandir}/man1/
  61. #icon
  62. install -d -m 755 %{buildroot}%{_iconsdir}
  63. install -m 644 %{name}.png %{buildroot}%{_iconsdir}/%{name}.png
  64. #menu
  65. install -d -m 755 %{buildroot}%{_datadir}/applications/
  66. install -m 644 %{name}.desktop %{buildroot}%{_datadir}/applications/
  67.  
  68. %files
  69. %doc ChangeLog docs/gui_styling_howto.txt
  70. %attr(0755,root,root) %{_bindir}/%{name}
  71. %{_mandir}/man1/%{name}.1*
  72. %{_datadir}/%{name}
  73. %{_datadir}/pixmaps/%{name}.png
  74. %{_datadir}/applications/%{name}.desktop
  75. %{_iconsdir}/%{name}.png
  76.  
  77. %files server
  78. %doc ChangeLog COPYING docs/server_setup_howto.txt
  79. %attr(0755,root,root) %{_bindir}/%{name}_server
Advertisement
Add Comment
Please, Sign In to add comment