Blob Blame History Raw
Name:           freeciv
Version:        2.0.8
Release:        2%{?dist}
Summary:        The Freeciv multi-player strategy game

Group:          Amusements/Games
License:        GPL
URL:            http://www.freeciv.org/index.php/Freeciv
Source0:        ftp://freeciv.org/pub/%{name}/stable/%{name}-%{version}.tar.bz2
Source1:	ftp://ftp.freeciv.org/%{name}/contrib/sounds/sets/stdsounds3.tar.gz
Source2:	%{name}-server.desktop
Source3:	%{name}.xpm
Patch1:		%{name}-desktop.patch
Patch2:		%{name}-aifill.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  gtk2-devel
BuildRequires:	readline-devel
BuildRequires:	zlib-devel
BuildRequires:	bind-devel
BuildRequires:	SDL_mixer-devel
BuildRequires:	esound-devel
BuildRequires:	ncurses-devel
BuildRequires:	desktop-file-utils
BuildRequires:	gettext

%description
Freeciv is a turn-based, multi-player, X based strategy game. Freeciv
is generally comparable to, and has compatible rules with, the
Civilization II(R) game by Microprose(R). In Freeciv, each player is
the leader of a civilization, and is competing with the other players
in order to become the leader of the greatest civilization.

%prep
%setup -q -n %{name}-%{version}
%patch1 -p1 -b .desktop
%patch2 -p0 -b .aifill

%build
%configure --enable-client=gtk2
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall	

desktop-file-install --vendor fedora --delete-original	\
	--dir $RPM_BUILD_ROOT%{_datadir}/applications	\
	--add-category X-Fedora				\
	$RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop

desktop-file-install --vendor fedora			\
	--dir $RPM_BUILD_ROOT%{_datadir}/applications  	\
	--add-category X-Fedora			        \
	%{SOURCE2}

# Remove civmanual
rm $RPM_BUILD_ROOT%{_bindir}/civmanual

# Add the sound files.
tar xzf %{SOURCE1}
cp -p data/stdsounds.soundspec $RPM_BUILD_ROOT%{_datadir}/%{name}
mkdir $RPM_BUILD_ROOT%{_datadir}/%{name}/stdsounds
cp -p data/stdsounds/*.ogg $RPM_BUILD_ROOT%{_datadir}/%{name}/stdsounds

# Add pixmap.
%{__install} -D -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}.xpm

%find_lang %{name}

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lang
%defattr(-,root,root)
%doc COPYING NEWS doc/BUGS doc/HOWTOPLAY doc/PEOPLE doc/README
%doc doc/README.AI doc/README.agents doc/README.attributes doc/README.cma
%doc doc/README.delta doc/README.effects doc/README.ftwl doc/HACKING
%doc doc/README.scorelog doc/TODO
%doc doc/README.graphics doc/README.sound
%{_bindir}/civserver
%{_bindir}/civclient
%{_datadir}/%{name}/
%{_datadir}/pixmaps/%{name}.xpm
%{_datadir}/applications/fedora-*.desktop
%{_mandir}/man6/civserver.6.gz
%{_mandir}/man6/civclient.6.gz

%changelog
* Mon Mar  6 2006 Brian Pepple <bdpepple@ameritech.net> - 2.0.8-2
- Update to 2.0.8.

* Thu Feb 16 2006 Brian Pepple <bdpepple@ameritech.net> - 2.0.7-6
- Remove unnecessary BR (alsa-lib-devel & SDL-devel).

* Mon Feb 13 2006 Brian Pepple <bdpepple@ameritech.net> - 2.0.7-5
- rebuilt for new gcc4.1 snapshot and glibc changes

* Sun Dec  4 2005 Brian Pepple <bdpepple@ameritech.net> - 2.0.7-4
- Rebuild for new bind.

* Sun Nov  6 2005 Brian Pepple <bdpepple@ameritech.net> - 2.0.7-3
- Update to 2.0.7.
- Modify desktop patch for upstream fixes.
- Drop the %%config from .desktop files.

* Mon Sep 26 2005 Brian Pepple <bdpepple@ameritech.net> - 2.0.6-3
- Update to 2.0.6.

* Fri Sep  2 2005 Brian Pepple <bdpepple@ameritech.net> - 2.0.5-3
- Update to 2.0.5.
- Enable debug info.

* Tue Aug 16 2005 Brian Pepple <bdpepple@ameritech.net> - 2.0.4-4
- Rebuild for cairo dep.

* Thu Jul 28 2005 Brian Pepple <bdpepple@ameritech.net> - 2.0.4-2
- Update to 2.0.4.
- Use new stdsounds.

* Fri Jul 15 2005 Brian Pepple <bdpepple@ameritech.net> - 2.0.3-2
- Bump release.

* Thu Jul 14 2005 Brian Pepple <bdpepple@ameritech.net> - 2.0.3-1
- Update to 2.0.3.

* Tue Jun 14 2005 Brian Pepple <bdpepple@ameritech.net> - 2.0.2-1
- Update to 2.0.2.
- Add dist tag.

* Tue Apr 26 2005 Brian Pepple <bdpepple@ameritech.net> - 2.0.1-1.fc4
- Update to 2.0.1.

* Mon Apr 18 2005 Brian Pepple <bdpepple@ameritech.net> - 2.0.0-3.fc4
- Re-add patch to set aifill to 5 on new servers to get some opponents.

* Mon Apr 18 2005 Brian Pepple <bdpepple@ameritech.net> - 2.0.0-2.fc4
- remove redundant --dir* options in %%configure & %%makeinstall.

* Mon Apr 18 2005 Brian Pepple <bdpepple@ameritech.net> - 2.0.0-1.fc4
- Update to 2.0.0.
- Drop 1.14 patches.
- Add new BR's for 2.0.0.

* Sat Mar 26 2005 Brian Pepple <bdpepple@ameritech.net> - 1.14.2-7
- Fixed typos.

* Sat Mar 26 2005 Brian Pepple <bdpepple@ameritech.net> - 1.14.2-6
- Added more macros.
- Replaced BuildPrereq with BuildRequires.
- Drop version of gtk2-devel, since FC3 & later meet minimum needed.

* Wed Mar 23 2005 Brian Pepple <bdpepple@ameritech.net> - 1.14.2-5
- Changed X-Red-Hat-Extra to X-Fedora.
- Added URL.
- Changed BuildRoot to preferred value.
- Removed period from summary.

* Wed Jan 12 2005 Tim Waugh <twaugh@redhat.com> 1.14.2-4
- Rebuilt for new readline.

* Tue Oct 26 2004 Daniel Reed <djr@redhat.com> 1.14.2-3
- [136921] Try a little harder to run as nobody

* Mon Oct 25 2004 Daniel Reed <djr@redhat.com> 1.14.2-2
- [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

* Mon Sep 13 2004 Karsten Hopp <karsten@redhat.de> 1.14.2-1 
- update to latest stable version

* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
- rebuilt

* Mon Feb 23 2004 Karsten Hopp <karsten@redhat.de> 1.14.1-3
- rebuild with new chown syntax

* Mon Feb 23 2004 Tim Waugh <twaugh@redhat.com>
- Use ':' instead of '.' as separator for chown.

* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
- rebuilt

* Wed Dec 03 2003 Karsten Hopp <karsten@redhat.de> 1.14.1-1
- update to bugfix release 1.14.1

* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
- rebuilt

* Thu May 08 2003 Karsten Hopp <karsten@redhat.de> 1.14.0-1
- update

* Thu Feb 20 2003 Karsten Hopp <karsten@redhat.de> 1.13.0-6
- remove last patch (obsolete)

* Wed Feb 19 2003 Karsten Hopp <karsten@redhat.de>
- fix message translation (#84599)

* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
- rebuilt

* Thu Nov 07 2002 Karsten Hopp <karsten@redhat.de>
- spelling fix (#75021)
- set aifill to 5 on new servers to get some opponents (#72586)

* Thu Aug 01 2002 Karsten Hopp <karsten@redhat.de>
- desktop fixes (#69391)

* Wed Jul 24 2002 Karsten Hopp <karsten@redhat.de>
- 0.1.13
- s/Games/Game in desktop-file-install
- fix URL
- add standard sounds 

* Wed Jul 17 2002 Karsten Hopp <karsten@redhat.de> 1.12.0-6
- fix path to datafiles if FREECIV_PATH is not set (#67922)
- fix desktop files (#67920)
- use desktop-file-install

* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
- automated rebuild

* Thu May 23 2002 Tim Powers <timp@redhat.com>
- automated rebuild

* Thu Jan 24 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.12.0-2
- Rebuild in current environment

* Thu Aug 23 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.12.0-1
- 1.12.0 (non-beta)

* Tue Jul 31 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.11.4-9
- Rebuild - the fix for #49442 didn't seem to get in last time.

* Mon Jul 30 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.11.4-8
- Fix up demographics (#50119)

* Wed Jun 27 2001 Than Ngo <than@redhat.com>
- support new gettext
- add patch to build against new libtool

* Tue Mar 20 2001 Florian La Roche <Florian.LaRoche@redhat.de>
- use gtk-config instead of glib-config

* Sun Feb 25 2001 Bernhard Rosenkraenzer <bero@redhat.com>
- Fix up civclient-wrapper so it doesn't fail silently when started as
  potentially harmful user (Bug #28928)

* Tue Aug  1 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- Fix warning in civclient-wrapper (Bug 14860)

* Fri Jul 21 2000 Trond Eivind Glomsrød <teg@redhat.com>
- 1.11.4
- move to /usr/bin and /usr/share/freeciv (no more /usr/games)

* Wed Jul 12 2000 Trond Eivind Glomsrød <teg@redhat.com>
- remove icon, glint is obsoleted
- don't use find to build file lists, it claimed to own
  lots of directories
- use %%{_tmppath}

* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
- automatic rebuild

* Mon Jul 10 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- 1.11.0 (Bug #13610)
- Add .desktop files (Bug #13610)
- Add BuildPrereq: lines
- fix build

* Thu Jun  8 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- move to dist
- update
- clean up the spec file
- fix build with gcc 2.96
- make the gtk client default; it's better than the Xaw one by now.

* Thu Feb 24 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- 1.10.0

* Fri Feb  4 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- 1.9.2
- use the configure macro

* Sun Nov  7 1999 Bernhard Rosenkraenzer <bero@redhat.com>
- redo RPM for 1.9.0 (many changes to build/install procedure)