freeciv-vl.spec 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428
  1. # include fallback defs for _ggz_config, _ggz_datadir macros
  2. # feel free to drop when ggz-client-lib including these is deployed everywhere
  3. %{!?_ggz_config:%define _ggz_config %{_bindir}/ggz-config}
  4. %{!?_ggz_datadir:%define _ggz_datadir %(%{_ggz_config} --datadir >& /dev/null ||:)}
  5. Name: freeciv
  6. Version: 2.2.3
  7. Release: 1%{?_dist_release}
  8. Summary: A multi-player strategy game
  9. Group: Amusements/Games
  10. License: GPLv2+
  11. URL: http://freeciv.wikia.com/index.php/Freeciv
  12. Source0: http://download.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
  13. Source1: freeciv-ja_2.2.3-fixed.po
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  15. ##Fix DSO patch
  16. Patch10: freeciv-client-fix-DSO.patch
  17. BuildRequires: gtk2-devel
  18. BuildRequires: readline-devel
  19. BuildRequires: zlib-devel
  20. BuildRequires: SDL_mixer-devel
  21. BuildRequires: esound-devel
  22. BuildRequires: ncurses-devel
  23. BuildRequires: ggz-client-libs-devel
  24. BuildRequires: desktop-file-utils
  25. BuildRequires: gettext
  26. Requires(post): ggz-client-libs
  27. Requires(preun): ggz-client-libs
  28. Vendor: Project Vine
  29. Distribution: Vine Linux
  30. Packager: iwaim
  31. %description
  32. Freeciv is a turn-based, multi-player, X based strategy game. Freeciv
  33. is generally comparable to, and has compatible rules with, the
  34. Civilization II(R) game by Microprose(R). In Freeciv, each player is
  35. the leader of a civilization, and is competing with the other players
  36. in order to become the leader of the greatest civilization.
  37. %prep
  38. %setup -q -n %{name}-%{version}
  39. %patch10 -p0
  40. %__rm -f po/ja.{po,gmo}
  41. %__cp -p %{SOURCE1} po/ja.po
  42. %build
  43. %configure --enable-client=gtk --disable-static
  44. make %{?_smp_mflags}
  45. %install
  46. rm -rf $RPM_BUILD_ROOT
  47. make install DESTDIR=$RPM_BUILD_ROOT
  48. %find_lang %{name}
  49. desktop-file-install --vendor vine --delete-original \
  50. --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  51. $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
  52. desktop-file-install --vendor vine --delete-original \
  53. --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  54. $RPM_BUILD_ROOT%{_datadir}/applications/%{name}-server.desktop
  55. # Remove civmanual
  56. rm $RPM_BUILD_ROOT%{_bindir}/civmanual
  57. # ggz config
  58. # omit ggz.modules, to register at install, not build, time.
  59. if [ -e $RPM_BUILD_ROOT%{_sysconfdir}/ggz.modules ]; then
  60. rm $RPM_BUILD_ROOT%{_sysconfdir}/ggz.modules
  61. fi
  62. # include .dsc files
  63. install -p -D -m644 data/civclient.dsc $RPM_BUILD_ROOT%{_ggz_datadir}/civclient.dsc
  64. find $RPM_BUILD_ROOT -name '*.la' -delete
  65. find $RPM_BUILD_ROOT -name '*.a' -delete
  66. %clean
  67. rm -rf $RPM_BUILD_ROOT
  68. %post
  69. %{_ggz_config} --install --force --modfile=%{_ggz_datadir}/civclient.dsc || :
  70. touch --no-create %{_datadir}/icons/hicolor
  71. if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  72. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  73. fi
  74. %preun
  75. if [ $1 -eq 0 ]; then
  76. %{_ggz_config} --remove --modfile=%{_ggz_datadir}/civclient.dsc || :
  77. fi
  78. %postun
  79. touch --no-create %{_datadir}/icons/hicolor
  80. if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  81. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  82. fi
  83. %files -f %{name}.lang
  84. %defattr(-,root,root)
  85. %doc COPYING NEWS doc/BUGS doc/HOWTOPLAY doc/README
  86. %doc doc/README.AI doc/README.agents doc/README.attributes doc/README.cma
  87. %doc doc/README.delta doc/README.effects doc/README.ftwl doc/HACKING
  88. %doc doc/README.scorelog doc/TODO
  89. %doc doc/README.graphics doc/README.sound
  90. %{_bindir}/freeciv-server
  91. %{_bindir}/freeciv-gtk2
  92. %{_datadir}/%{name}/
  93. %{_datadir}/applications/vine-*.desktop
  94. %{_datadir}/icons/hicolor/*/apps/*.png
  95. %{_datadir}/pixmaps/%{name}-client.png
  96. %{_mandir}/man6/freeciv*6*
  97. %{_ggz_datadir}/civclient.dsc
  98. %changelog
  99. * Fri Sep 17 2010 IWAI, Masaharu <iwai@alib.jp> 2.2.3-1
  100. - new upstream release
  101. - update ja.po (Source1): fixed upstream ja.po
  102. * Wed Sep 1 2010 IWAI, Masaharu <iwai@alib.jp> 2.2.2-1
  103. - build for Vine Linux: from Fedora 2.2.2-1
  104. - change BuildRequires: ggz-gtk-client-devel to gz-client-libs-devel
  105. - add ja.po (Source1) from http://loda.jp/freeciv/?id=81
  106. * Mon Aug 02 2010 Thomas Janssen <thomasj@fedoraproject.org> 2.2.2-1
  107. - security fix https://www.redhat.com/security/data/cve/CVE-2010-2445.html
  108. - fixes #612296
  109. * Sun Jun 06 2010 Thomas Janssen <thomasj@fedoraproject.org> 2.2.0-2
  110. - security fix http://gna.org/bugs/?15624
  111. - #600742 #600743 #600744
  112. * Tue Mar 02 2010 Thomas Janssen <thomasj@fedoraproject.org> 2.2.0-1
  113. - New upstream source 2.2.0
  114. * Fri Jan 29 2010 Brian Pepple <bpepple@fedoraproject.org> - 2.1.11-1
  115. - Update to 2.1.11.
  116. * Fri Dec 11 2009 Brian Pepple <bpepple@fedoraproject.org> - 2.1.10-1
  117. - Update to 2.1.10.
  118. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.9-2
  119. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  120. * Sun Apr 5 2009 Brian Pepple <bpepple@fedoraproject.org> - 2.1.9-1
  121. - Update to 2.1.9.
  122. * Mon Mar 09 2009 Adam Tkac <atkac redhat com> - 2.1.8-3
  123. - drop bind-devel BuildReq, it is not needed
  124. * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.8-2
  125. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  126. * Thu Dec 4 2008 Brian Pepple <bpepple@fedoraproject.org> - 2.1.8-1
  127. - Update to 2.1.8.
  128. * Wed Nov 26 2008 Brian Pepple <bpepple@fedoraproject.org> - 2.1.7-1
  129. - Update to 2.1.7.
  130. * Sat Nov 22 2008 Brian Pepple <bpepple@fedoraproject.org> - 2.1.6-2
  131. - Simplify summary.
  132. * Sat Aug 23 2008 Brian Pepple <bpepple@fedoraproject.org> - 2.1.6-1
  133. - Update to 2.1.6.
  134. * Thu Jun 19 2008 Brian Pepple <bpepple@fedoraproject.org> - 2.1.5-1
  135. - Update to 2.1.5.
  136. * Tue Apr 29 2008 Brian Pepple <bpepple@fedoraproject.org> - 2.1.4-1
  137. - Update to 2.1.4.
  138. * Sat Feb 9 2008 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> 2.1.3-4
  139. - Fix up typo.
  140. * Fri Feb 8 2008 Rex Dieter <rdieter@fedoraproject.org> 2.1.3-3
  141. - fixup ggz integration (#431726)
  142. * Mon Feb 4 2008 Brian Pepple <bpepple@fedoraproject.org> - 2.1.3-2
  143. - Add ggz gaming support.
  144. * Sat Jan 26 2008 Brian Pepple <bpepple@fedoraproject.org> - 2.1.3-1
  145. - Update to 2.1.3.
  146. * Tue Dec 25 2007 Brian Pepple <bpepple@fedoraproject.org> - 2.1.2-1
  147. - Update to 2.1.2.
  148. * Thu Nov 29 2007 Brian Pepple <bpepple@fedoraproject.org> - 2.1.1-1
  149. - Update to 2.1.1.
  150. - Drop buffer overflow patch. fixed upstream.
  151. - Drop open file patch. fixed upstream.
  152. * Sat Nov 24 2007 Brian Pepple <bpepple@fedoraproject.org> - 2.1.0-2
  153. - Add patch to fix buffer overflow. (#397531)
  154. * Sun Oct 28 2007 Brian Pepple <bpepple@fedoraproject.org> - 2.1.0-1
  155. - Update to 2.1.0.
  156. - Update urls.
  157. - Update aifill & open patches.
  158. - Remove old freeciv pixmap.
  159. - Remove desktop patch.
  160. * Sun Sep 16 2007 Brian Pepple <bpepple@fedoraproject.org> - 2.0.9-4
  161. - Add patch to fix open function build bug.
  162. * Tue Aug 21 2007 Brian Pepple <bpepple@fedoraproject.org> - 2.0.9-3
  163. - Rebuild.
  164. * Thu Aug 2 2007 Brian Pepple <bpepple@fedoraproject.org> - 2.0.9-2
  165. - Update license tag.
  166. * Tue Feb 13 2007 Brian Pepple <bpepple@fedoraproject.org> - 2.0.9-1
  167. - Update to 2.0.9.
  168. - Drop button patch, fixed upstream.
  169. - Drop security patch, fixed upstream.
  170. - Drop X-Fedora category from desktop files.
  171. * Thu Sep 7 2006 Brian Pepple <bpepple@fedoraproject.org> - 2.0.8-7
  172. - Rebuild for FC6.
  173. * Wed Aug 2 2006 Brian Pepple <bpepple@fedoraproject.org> - 2.0.8-6
  174. - Update security patch.
  175. - Add patch to fix turn done buttons style.
  176. * Tue Aug 1 2006 Brian Pepple <bpepple@fedoraproject.org> - 2.0.8-5
  177. - Add patch to fix CVE-2006-3913 vulnerability. (#200545)
  178. - Replace desktop file category 'Strategy' with 'StrategyGame'. (#198086)
  179. * Mon Mar 6 2006 Brian Pepple <bdpepple@ameritech.net> - 2.0.8-2
  180. - Update to 2.0.8.
  181. * Thu Feb 16 2006 Brian Pepple <bdpepple@ameritech.net> - 2.0.7-6
  182. - Remove unnecessary BR (alsa-lib-devel & SDL-devel).
  183. * Mon Feb 13 2006 Brian Pepple <bdpepple@ameritech.net> - 2.0.7-5
  184. - rebuilt for new gcc4.1 snapshot and glibc changes
  185. * Sun Dec 4 2005 Brian Pepple <bdpepple@ameritech.net> - 2.0.7-4
  186. - Rebuild for new bind.
  187. * Sun Nov 6 2005 Brian Pepple <bdpepple@ameritech.net> - 2.0.7-3
  188. - Update to 2.0.7.
  189. - Modify desktop patch for upstream fixes.
  190. - Drop the %%config from .desktop files.
  191. * Mon Sep 26 2005 Brian Pepple <bdpepple@ameritech.net> - 2.0.6-3
  192. - Update to 2.0.6.
  193. * Fri Sep 2 2005 Brian Pepple <bdpepple@ameritech.net> - 2.0.5-3
  194. - Update to 2.0.5.
  195. - Enable debug info.
  196. * Tue Aug 16 2005 Brian Pepple <bdpepple@ameritech.net> - 2.0.4-4
  197. - Rebuild for cairo dep.
  198. * Thu Jul 28 2005 Brian Pepple <bdpepple@ameritech.net> - 2.0.4-2
  199. - Update to 2.0.4.
  200. - Use new stdsounds.
  201. * Fri Jul 15 2005 Brian Pepple <bdpepple@ameritech.net> - 2.0.3-2
  202. - Bump release.
  203. * Thu Jul 14 2005 Brian Pepple <bdpepple@ameritech.net> - 2.0.3-1
  204. - Update to 2.0.3.
  205. * Tue Jun 14 2005 Brian Pepple <bdpepple@ameritech.net> - 2.0.2-1
  206. - Update to 2.0.2.
  207. - Add dist tag.
  208. * Tue Apr 26 2005 Brian Pepple <bdpepple@ameritech.net> - 2.0.1-1.fc4
  209. - Update to 2.0.1.
  210. * Mon Apr 18 2005 Brian Pepple <bdpepple@ameritech.net> - 2.0.0-3.fc4
  211. - Re-add patch to set aifill to 5 on new servers to get some opponents.
  212. * Mon Apr 18 2005 Brian Pepple <bdpepple@ameritech.net> - 2.0.0-2.fc4
  213. - remove redundant --dir* options in %%configure & %%makeinstall.
  214. * Mon Apr 18 2005 Brian Pepple <bdpepple@ameritech.net> - 2.0.0-1.fc4
  215. - Update to 2.0.0.
  216. - Drop 1.14 patches.
  217. - Add new BR's for 2.0.0.
  218. * Sat Mar 26 2005 Brian Pepple <bdpepple@ameritech.net> - 1.14.2-7
  219. - Fixed typos.
  220. * Sat Mar 26 2005 Brian Pepple <bdpepple@ameritech.net> - 1.14.2-6
  221. - Added more macros.
  222. - Replaced BuildPrereq with BuildRequires.
  223. - Drop version of gtk2-devel, since FC3 & later meet minimum needed.
  224. * Wed Mar 23 2005 Brian Pepple <bdpepple@ameritech.net> - 1.14.2-5
  225. - Changed X-Red-Hat-Extra to X-Fedora.
  226. - Added URL.
  227. - Changed BuildRoot to preferred value.
  228. - Removed period from summary.
  229. * Wed Jan 12 2005 Tim Waugh <twaugh@redhat.com> 1.14.2-4
  230. - Rebuilt for new readline.
  231. * Tue Oct 26 2004 Daniel Reed <djr@redhat.com> 1.14.2-3
  232. - [136921] Try a little harder to run as nobody
  233. * Mon Oct 25 2004 Daniel Reed <djr@redhat.com> 1.14.2-2
  234. - [136921] Provide the user with the opportunity to run FreeCiv as root if unable to su to nobody, and throw up an error message if everything fails
  235. * Mon Sep 13 2004 Karsten Hopp <karsten@redhat.de> 1.14.2-1
  236. - update to latest stable version
  237. * Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
  238. - rebuilt
  239. * Mon Feb 23 2004 Karsten Hopp <karsten@redhat.de> 1.14.1-3
  240. - rebuild with new chown syntax
  241. * Mon Feb 23 2004 Tim Waugh <twaugh@redhat.com>
  242. - Use ':' instead of '.' as separator for chown.
  243. * Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
  244. - rebuilt
  245. * Wed Dec 03 2003 Karsten Hopp <karsten@redhat.de> 1.14.1-1
  246. - update to bugfix release 1.14.1
  247. * Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
  248. - rebuilt
  249. * Thu May 08 2003 Karsten Hopp <karsten@redhat.de> 1.14.0-1
  250. - update
  251. * Thu Feb 20 2003 Karsten Hopp <karsten@redhat.de> 1.13.0-6
  252. - remove last patch (obsolete)
  253. * Wed Feb 19 2003 Karsten Hopp <karsten@redhat.de>
  254. - fix message translation (#84599)
  255. * Wed Jan 22 2003 Tim Powers <timp@redhat.com>
  256. - rebuilt
  257. * Thu Nov 07 2002 Karsten Hopp <karsten@redhat.de>
  258. - spelling fix (#75021)
  259. - set aifill to 5 on new servers to get some opponents (#72586)
  260. * Thu Aug 01 2002 Karsten Hopp <karsten@redhat.de>
  261. - desktop fixes (#69391)
  262. * Wed Jul 24 2002 Karsten Hopp <karsten@redhat.de>
  263. - 0.1.13
  264. - s/Games/Game in desktop-file-install
  265. - fix URL
  266. - add standard sounds
  267. * Wed Jul 17 2002 Karsten Hopp <karsten@redhat.de> 1.12.0-6
  268. - fix path to datafiles if FREECIV_PATH is not set (#67922)
  269. - fix desktop files (#67920)
  270. - use desktop-file-install
  271. * Fri Jun 21 2002 Tim Powers <timp@redhat.com>
  272. - automated rebuild
  273. * Thu May 23 2002 Tim Powers <timp@redhat.com>
  274. - automated rebuild
  275. * Thu Jan 24 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.12.0-2
  276. - Rebuild in current environment
  277. * Thu Aug 23 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.12.0-1
  278. - 1.12.0 (non-beta)
  279. * Tue Jul 31 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.11.4-9
  280. - Rebuild - the fix for #49442 didn't seem to get in last time.
  281. * Mon Jul 30 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.11.4-8
  282. - Fix up demographics (#50119)
  283. * Wed Jun 27 2001 Than Ngo <than@redhat.com>
  284. - support new gettext
  285. - add patch to build against new libtool
  286. * Tue Mar 20 2001 Florian La Roche <Florian.LaRoche@redhat.de>
  287. - use gtk-config instead of glib-config
  288. * Sun Feb 25 2001 Bernhard Rosenkraenzer <bero@redhat.com>
  289. - Fix up civclient-wrapper so it doesn't fail silently when started as
  290. potentially harmful user (Bug #28928)
  291. * Tue Aug 1 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  292. - Fix warning in civclient-wrapper (Bug 14860)
  293. * Fri Jul 21 2000 Trond Eivind Glomsrød <teg@redhat.com>
  294. - 1.11.4
  295. - move to /usr/bin and /usr/share/freeciv (no more /usr/games)
  296. * Wed Jul 12 2000 Trond Eivind Glomsrød <teg@redhat.com>
  297. - remove icon, glint is obsoleted
  298. - don't use find to build file lists, it claimed to own
  299. lots of directories
  300. - use %%{_tmppath}
  301. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  302. - automatic rebuild
  303. * Mon Jul 10 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  304. - 1.11.0 (Bug #13610)
  305. - Add .desktop files (Bug #13610)
  306. - Add BuildPrereq: lines
  307. - fix build
  308. * Thu Jun 8 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  309. - move to dist
  310. - update
  311. - clean up the spec file
  312. - fix build with gcc 2.96
  313. - make the gtk client default; it's better than the Xaw one by now.
  314. * Thu Feb 24 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  315. - 1.10.0
  316. * Fri Feb 4 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  317. - 1.9.2
  318. - use the configure macro
  319. * Sun Nov 7 1999 Bernhard Rosenkraenzer <bero@redhat.com>
  320. - redo RPM for 1.9.0 (many changes to build/install procedure)