File lincity.spec of Package lincity
#
# spec file for package lincity (Version 1.12.0)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: lincity
BuildRequires: fdupes gcc-c++ update-desktop-files xorg-x11 xorg-x11-devel
Url: http://www.floot.demon.co.uk/lincity.html
License: GPL v2 or later
Group: Amusements/Games/Strategy/Real Time
AutoReqProv: on
Version: 1.12.0
Release: 213
Summary: SimCity Clone
Source: %{name}-%{version}.tar.bz2
Source1: %{name}.desktop
Source2: %{name}.png
Patch: %{name}-gcc-warning.patch
Patch1: %{name}-%{version}-undefined-operation.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Lincity is a well-designed and easy-to-play SimCity clone. Besides the
game itself, it provides an editor for easily creating new levels and
obstacles.
Authors:
--------
I J Peters <ijp@floot.demon.co.uk>
%prep
%setup -q -n %{name}-%{version}
%patch
%patch1
%build
export CFLAGS="$RPM_OPT_FLAGS"
%configure --with-x
make
chmod 644 README
chmod 644 COPYING
chmod 644 CHANGES
%install
make DESTDIR=$RPM_BUILD_ROOT install
mkdir -p $RPM_BUILD_ROOT/usr/share/man/man6/
ln -sf xlincity $RPM_BUILD_ROOT/usr/bin/lincity
%suse_update_desktop_file -i %name StrategyGame
%fdupes -s $RPM_BUILD_ROOT
%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(-, root, root)
%doc README CHANGES COPYING
%doc /usr/share/man/man6/lincity.6.gz
%ifnarch sparc sparc64 axp
/usr/bin/lincity
%endif
/usr/share/lincity
/usr/bin/xlincity
/usr/share/applications/lincity.desktop
/usr/share/pixmaps/lincity.png
%changelog
* Sun Feb 24 2008 crrodriguez@suse.de
- use find_lang macro properly
* Wed Feb 20 2008 pgajdos@suse.cz
- fixed executable-docs, added fdupes stuff
* Mon Jan 15 2007 anicka@suse.cz
- fix undefined operation
* Fri Feb 10 2006 rw@suse.de
- unbreak packaging on ia64 and s390
* Fri Feb 03 2006 pnemec@suse.cz
- fixed gcc warning
- added icon and desktop file
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Sep 29 2005 dmueller@suse.de
- add norootforbuild
* Mon Jan 05 2004 ltinkl@suse.cz
- updated to 1.12.0.
- threw away unused patches
- fix build due to move to autotools
* Mon Nov 12 2001 ro@suse.de
- no svgalib
- usr bin lincity is a symlink to xlincity
* Fri Oct 05 2001 tcrhak@suse.cz
- fixed to link on axp (c++ style linking required)
- by amending the noman patch to cxxnoman patch
* Fri Aug 10 2001 adostal@suse.cz
- fix to compile on arch ia64 and s390
* Tue Aug 07 2001 adostal@suse.cz
- update to version 1.11
- fixed to compile (char, noman, makefile and string patch)
* Mon Jun 18 2001 adostal@suse.cz
- fix to compile in Imakefile
* Tue Apr 10 2001 ro@suse.de
- added group tag
* Sun Jun 25 2000 kukuk@suse.de
- Compile only X11 version on SPARC
* Fri Mar 03 2000 uli@suse.de
- moved man page to /usr/share
* Thu Jan 27 2000 ro@suse.de
- fixed to compile
* Mon Sep 13 1999 bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Tue Oct 06 1998 ro@suse.de
- fixed typo in specfile
* Tue Sep 22 1998 ro@suse.de
- update to 110
* Tue Oct 21 1997 ro@suse.de
- ready for autobuild
* Fri Apr 18 1997 mb@suse.de
- new package (version 1.03)