2008-04-30 12:30:56 +00:00
|
|
|
#
|
2011-11-22 10:25:29 +00:00
|
|
|
# spec file for package freeciv
|
2008-04-30 12:30:56 +00:00
|
|
|
#
|
2014-02-09 20:40:52 +00:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2008-04-30 12:30:56 +00:00
|
|
|
#
|
2008-09-11 14:06:12 +00:00
|
|
|
# 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.
|
|
|
|
|
2008-04-30 12:30:56 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: freeciv
|
2013-12-20 19:33:45 +00:00
|
|
|
BuildRequires: SDL_mixer-devel
|
2012-04-02 06:08:30 +00:00
|
|
|
BuildRequires: audiofile-devel
|
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2014-08-13 06:43:16 +00:00
|
|
|
BuildRequires: curl-devel >= 7.9.7
|
2012-04-02 06:08:30 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gtk2-devel
|
2013-12-20 19:33:45 +00:00
|
|
|
BuildRequires: libbz2-devel
|
|
|
|
BuildRequires: libggz2-devel
|
2012-04-02 06:08:30 +00:00
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: readline-devel
|
|
|
|
BuildRequires: update-desktop-files
|
2013-12-20 19:33:45 +00:00
|
|
|
BuildRequires: xz-devel
|
2012-02-21 20:29:35 +00:00
|
|
|
Url: http://www.freeciv.org
|
2008-04-30 12:30:56 +00:00
|
|
|
Summary: Free Civilization Clone
|
2012-04-02 06:08:30 +00:00
|
|
|
License: GPL-2.0+
|
|
|
|
Group: Amusements/Games/Strategy/Turn Based
|
2014-12-06 19:10:20 +00:00
|
|
|
Version: 2.4.4
|
2012-04-02 06:08:30 +00:00
|
|
|
Release: 0
|
2011-08-26 16:16:22 +00:00
|
|
|
Source0: http://download.gna.org/freeciv/stable/%{name}-%{version}.tar.bz2
|
2010-02-20 22:11:36 +00:00
|
|
|
Source1: freeciv.desktop
|
|
|
|
Source2: freeciv.png
|
|
|
|
Source3: freeciv-manual
|
|
|
|
Source4: freeciv-manual.desktop
|
|
|
|
Source5: freeciv-manual.png
|
2008-04-30 12:30:56 +00:00
|
|
|
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 'civserver,' then start the
|
|
|
|
client 'civclient'. Have fun!
|
|
|
|
|
|
|
|
%prep
|
2011-11-22 15:40:45 +00:00
|
|
|
%setup -q
|
2008-04-30 12:30:56 +00:00
|
|
|
echo "X-SuSE-translate=false" >> bootstrap/freeciv-server.desktop.in
|
2012-04-02 20:40:25 +00:00
|
|
|
echo "X-SuSE-translate=false" >> bootstrap/freeciv-modpack.desktop.in
|
2008-04-30 12:30:56 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -fi
|
2009-04-14 08:35:01 +00:00
|
|
|
%configure \
|
2008-04-30 12:30:56 +00:00
|
|
|
--enable-client=gtk2 \
|
2010-07-15 12:42:13 +00:00
|
|
|
--with-readline \
|
2013-12-20 19:33:45 +00:00
|
|
|
--disable-static \
|
|
|
|
--docdir=%{_docdir}/freeciv
|
2011-07-02 17:12:18 +00:00
|
|
|
make %{?_smp_mflags}
|
2008-04-30 12:30:56 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
install -m 755 $RPM_SOURCE_DIR/freeciv-manual $RPM_BUILD_ROOT/usr/bin
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps/
|
|
|
|
install -m 644 $RPM_SOURCE_DIR/*.png $RPM_BUILD_ROOT/usr/share/pixmaps
|
|
|
|
%suse_update_desktop_file -i %name Game StrategyGame
|
|
|
|
%suse_update_desktop_file -i freeciv-manual Game StrategyGame
|
2014-02-09 20:40:52 +00:00
|
|
|
%if 0%{?sles_version} == 11
|
|
|
|
%__rm -rf %{buildroot}/%{_datadir}/locale/no
|
|
|
|
%endif
|
|
|
|
|
2008-04-30 12:30:56 +00:00
|
|
|
%find_lang %name
|
2010-07-15 12:42:13 +00:00
|
|
|
%fdupes %{buildroot}/%{_datadir}/
|
2008-04-30 12:30:56 +00:00
|
|
|
|
|
|
|
%files -f %name.lang
|
|
|
|
%defattr(-,root,root)
|
2013-12-20 19:33:45 +00:00
|
|
|
%doc %{_docdir}/freeciv
|
|
|
|
%exclude %{_docdir}/freeciv/INSTALL*
|
|
|
|
%exclude %{_libdir}/*.a
|
|
|
|
%exclude %{_libdir}/*.la
|
|
|
|
%{_mandir}/man6/freeciv-*.6.gz
|
|
|
|
%dir %{_sysconfdir}/%{name}
|
|
|
|
%config %{_sysconfdir}/%{name}/database.lua
|
2010-07-15 12:42:13 +00:00
|
|
|
%{_bindir}/freeciv-gtk2
|
|
|
|
%{_bindir}/freeciv-server
|
2010-02-20 22:11:36 +00:00
|
|
|
%{_bindir}/freeciv-manual
|
2011-08-26 16:16:22 +00:00
|
|
|
%{_bindir}/freeciv-modpack
|
2010-02-20 22:11:36 +00:00
|
|
|
%{_datadir}/applications/freeciv-manual.desktop
|
|
|
|
%{_datadir}/applications/freeciv-server.desktop
|
2011-11-22 10:25:29 +00:00
|
|
|
%{_datadir}/applications/freeciv-modpack.desktop
|
2010-02-20 22:11:36 +00:00
|
|
|
%{_datadir}/applications/%name.desktop
|
|
|
|
%{_datadir}/freeciv/
|
|
|
|
%{_datadir}/icons/hicolor/128x128/apps/freeciv-client.png
|
|
|
|
%{_datadir}/icons/hicolor/128x128/apps/freeciv-server.png
|
2011-11-22 10:25:29 +00:00
|
|
|
%{_datadir}/icons/hicolor/128x128/apps/freeciv-modpack.png
|
2010-02-20 22:11:36 +00:00
|
|
|
%{_datadir}/icons/hicolor/16x16/apps/freeciv-client.png
|
|
|
|
%{_datadir}/icons/hicolor/16x16/apps/freeciv-server.png
|
2011-11-22 10:25:29 +00:00
|
|
|
%{_datadir}/icons/hicolor/16x16/apps/freeciv-modpack.png
|
2010-02-20 22:11:36 +00:00
|
|
|
%{_datadir}/icons/hicolor/32x32/apps/freeciv-client.png
|
|
|
|
%{_datadir}/icons/hicolor/32x32/apps/freeciv-server.png
|
2011-11-22 10:25:29 +00:00
|
|
|
%{_datadir}/icons/hicolor/32x32/apps/freeciv-modpack.png
|
2010-02-20 22:11:36 +00:00
|
|
|
%{_datadir}/icons/hicolor/48x48/apps/freeciv-client.png
|
|
|
|
%{_datadir}/icons/hicolor/48x48/apps/freeciv-server.png
|
2011-11-22 10:25:29 +00:00
|
|
|
%{_datadir}/icons/hicolor/48x48/apps/freeciv-modpack.png
|
2010-02-20 22:11:36 +00:00
|
|
|
%{_datadir}/icons/hicolor/64x64/apps/freeciv-client.png
|
|
|
|
%{_datadir}/icons/hicolor/64x64/apps/freeciv-server.png
|
2011-11-22 10:25:29 +00:00
|
|
|
%{_datadir}/icons/hicolor/64x64/apps/freeciv-modpack.png
|
2010-02-20 22:11:36 +00:00
|
|
|
%{_datadir}/pixmaps/freeciv-client.png
|
|
|
|
%{_datadir}/pixmaps/freeciv-manual.png
|
|
|
|
%{_datadir}/pixmaps/%name.png
|
2014-02-09 20:40:52 +00:00
|
|
|
%dir %{_datadir}/appdata
|
|
|
|
%{_datadir}/appdata/%name-*.appdata.xml
|
2008-04-30 12:30:56 +00:00
|
|
|
|
|
|
|
%changelog
|