source: projects/specs/trunk/f/freeciv/freeciv-vl.spec @ 9686

Revision 9686, 13.8 KB checked in by Takemikaduchi, 9 years ago (diff)

gnome-phone-manager: update
others: rebuild

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