LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File freeciv.spec of Package freeciv-2.3.1 (Project home:syntron:freeciv)

#
# spec file for package freeciv (Version 2.3.1)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           freeciv
Requires:	zlib imlib2 gtk2
BuildRequires:  audiofile-devel gtk2-devel readline-devel update-desktop-files
BuildRequires:  imlib2-devel
BuildRequires:  gcc-c++ python-devel
BuildRequires:  SDL_mixer-devel
BuildRequires:  glibc-devel
BuildRequires:  libbz2-devel
BuildRequires:  zlib-devel
BuildRequires:  automake libtool
Url:            http://www.freeciv.org
License:        GPL-2.0+
Group:          Amusements/Games/Strategy/Turn Based
AutoReqProv:    on
Summary:        Free Civilization Clone
Version:        2.3.1
Release:        1
Source0:        %{name}-%{version}.tar.bz2
Patch1:		freeciv-no-nb.diff

BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
A clone of the well known game Civilization by Microprose.

Every player is the leader of an imaginary nation. The aim of the game
can be to create a prospering civilization with commerce and knowledge
exchange or (more often) the extinction of all other civilizations.

To start a new game, first start the server 'freeciv-server,' then
start the client 'freeciv-gtk2'. Have fun!

Authors:
--------
    Allan Ove Kjeldbjerg <allan@daimi.aau.dk>
    Claus Leth Gregersen <leth@daimi.aau.dk>
    Peter Joachim Unold  <pjunold@daimi.aau.dk>

%prep
%setup -q -n %{name}-%{version}
%patch1

echo "X-SuSE-translate=false" >> bootstrap/freeciv-server.desktop.in

%build
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" ./autogen.sh \
  --prefix=/usr \
  --libdir=%{_libdir} \
  --datadir=/usr/share \
  --datarootdir=/usr/share \
  --localedir=/usr/share/locale \
  --enable-client=gtk2 \
  --with-readline \
  --mandir=%{_mandir}
make

%install
make install DESTDIR=$RPM_BUILD_ROOT
# icons
%suse_update_desktop_file -i %name Game StrategyGame
# make rpmlint happy
find doc -name "Makefile*" | xargs rm -f
find doc -name "*.orig" | xargs rm -f
%find_lang %name

%files -f %name.lang
%defattr(-,root,root)
%doc ABOUT-NLS COPYING ChangeLog NEWS doc
%{_mandir}/man6/freeciv-*.6.gz
/usr/bin/freeciv-*
/usr/share/applications/freeciv*.desktop
/usr/share/icons/hicolor/128x128/apps/freeciv*.png
/usr/share/icons/hicolor/16x16/apps/freeciv*.png
/usr/share/icons/hicolor/32x32/apps/freeciv*.png
/usr/share/icons/hicolor/48x48/apps/freeciv*.png
/usr/share/icons/hicolor/64x64/apps/freeciv*.png
/usr/share/pixmaps/freeciv*.png
/usr/share/freeciv/
%{_libdir}/*.la
%{_libdir}/*.a

%changelog