freeciv-vl.spec 13 KB

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