freeciv/freeciv.spec

115 lines
3.9 KiB
RPMSpec
Raw Normal View History

#
# spec file for package freeciv (Version 2.2.5)
#
# 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
- renamed client/server binaries to freeciv-gtk2 freeciv-server - update to 2.2.0 : changes since 2.1.x * Built-in editor * Expanded ruleset format: * Unit classes * Movement restrictions * Can limit which terrains a unit can enter * River-boats * Wheeled units * Which units another unit can transport * Migration * Plague * Bases * Calendar effects * Changes to gameplay with default ruleset: * New terrains: o Deep Ocean (as Ocean but no specials and cannot be transformed) o Lake (as Ocean but no Whales special; inland water below a certain size is generated as Lake) * Triremes are not restricted to tiles next to land, but to (shallow) Ocean tiles; they now cannot even attempt to enter unsafe tiles * Triremes no longer get the +1 movement bonus from Nuclear Power that other sea units get * Triremes and Carriers can no longer attack land units * Submarine attack strength reduced from 15 to 12 (to make it easier to defend against them with escorts) * New base type buoy, which can be built by Engineers on water tiles with the Radio advance, and gives vision. * Ruins (left behind by destroyed cities, no effect on gameplay currently) * New advance Environmentalism and Solar Plant improvement, which can eliminate pollution from production * Trade route value now depends on size of cities, not on trade generated in them * New national borders system * Coastal Defense now available earlier (requires Gunpowder instead of Metallurgy) * No restrictions on specialists in small cities OBS-URL: https://build.opensuse.org/package/show/games/freeciv?expand=0&rev=10
2010-07-15 12:42:13 +00:00
BuildRequires: gcc-c++ audiofile-devel gtk2-devel readline-devel update-desktop-files fdupes
# imlib-config imlib-devel
BuildRequires: SDL_mixer-devel
Url: http://www.freeciv.org
License: GPL v2 or later
Group: Amusements/Games/Strategy/Turn Based
AutoReqProv: on
Summary: Free Civilization Clone
Version: 2.2.5
Release: 1
Source0: %{name}-%{version}.tar.bz2
Source1: freeciv.desktop
Source2: freeciv.png
Source3: freeciv-manual
Source4: freeciv-manual.desktop
Source5: freeciv-manual.png
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 'civserver,' then start the
client 'civclient'. 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 -p1
echo "X-SuSE-translate=false" >> bootstrap/freeciv-server.desktop.in
%build
autoreconf -fi
%configure \
--enable-client=gtk2 \
- renamed client/server binaries to freeciv-gtk2 freeciv-server - update to 2.2.0 : changes since 2.1.x * Built-in editor * Expanded ruleset format: * Unit classes * Movement restrictions * Can limit which terrains a unit can enter * River-boats * Wheeled units * Which units another unit can transport * Migration * Plague * Bases * Calendar effects * Changes to gameplay with default ruleset: * New terrains: o Deep Ocean (as Ocean but no specials and cannot be transformed) o Lake (as Ocean but no Whales special; inland water below a certain size is generated as Lake) * Triremes are not restricted to tiles next to land, but to (shallow) Ocean tiles; they now cannot even attempt to enter unsafe tiles * Triremes no longer get the +1 movement bonus from Nuclear Power that other sea units get * Triremes and Carriers can no longer attack land units * Submarine attack strength reduced from 15 to 12 (to make it easier to defend against them with escorts) * New base type buoy, which can be built by Engineers on water tiles with the Radio advance, and gives vision. * Ruins (left behind by destroyed cities, no effect on gameplay currently) * New advance Environmentalism and Solar Plant improvement, which can eliminate pollution from production * Trade route value now depends on size of cities, not on trade generated in them * New national borders system * Coastal Defense now available earlier (requires Gunpowder instead of Metallurgy) * No restrictions on specialists in small cities OBS-URL: https://build.opensuse.org/package/show/games/freeciv?expand=0&rev=10
2010-07-15 12:42:13 +00:00
--with-readline \
--disable-static
%{__make} %{?jobs:-j%jobs}
%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
rm -f $RPM_BUILD_ROOT/usr/share/applications/freecivserver.desktop
rm -f $RPM_BUILD_ROOT/usr/share/pixmaps/freeciv-manual
- renamed client/server binaries to freeciv-gtk2 freeciv-server - update to 2.2.0 : changes since 2.1.x * Built-in editor * Expanded ruleset format: * Unit classes * Movement restrictions * Can limit which terrains a unit can enter * River-boats * Wheeled units * Which units another unit can transport * Migration * Plague * Bases * Calendar effects * Changes to gameplay with default ruleset: * New terrains: o Deep Ocean (as Ocean but no specials and cannot be transformed) o Lake (as Ocean but no Whales special; inland water below a certain size is generated as Lake) * Triremes are not restricted to tiles next to land, but to (shallow) Ocean tiles; they now cannot even attempt to enter unsafe tiles * Triremes no longer get the +1 movement bonus from Nuclear Power that other sea units get * Triremes and Carriers can no longer attack land units * Submarine attack strength reduced from 15 to 12 (to make it easier to defend against them with escorts) * New base type buoy, which can be built by Engineers on water tiles with the Radio advance, and gives vision. * Ruins (left behind by destroyed cities, no effect on gameplay currently) * New advance Environmentalism and Solar Plant improvement, which can eliminate pollution from production * Trade route value now depends on size of cities, not on trade generated in them * New national borders system * Coastal Defense now available earlier (requires Gunpowder instead of Metallurgy) * No restrictions on specialists in small cities OBS-URL: https://build.opensuse.org/package/show/games/freeciv?expand=0&rev=10
2010-07-15 12:42:13 +00:00
#--disable-static doesn't work so work in configure phase so we drop static libs by hand :
rm -f $RPM_BUILD_ROOT/%{_libdir}/libfreeciv*.{a,la}
# make rpmlint happy
find doc -name "Makefile*" | xargs rm -f
%find_lang %name
- renamed client/server binaries to freeciv-gtk2 freeciv-server - update to 2.2.0 : changes since 2.1.x * Built-in editor * Expanded ruleset format: * Unit classes * Movement restrictions * Can limit which terrains a unit can enter * River-boats * Wheeled units * Which units another unit can transport * Migration * Plague * Bases * Calendar effects * Changes to gameplay with default ruleset: * New terrains: o Deep Ocean (as Ocean but no specials and cannot be transformed) o Lake (as Ocean but no Whales special; inland water below a certain size is generated as Lake) * Triremes are not restricted to tiles next to land, but to (shallow) Ocean tiles; they now cannot even attempt to enter unsafe tiles * Triremes no longer get the +1 movement bonus from Nuclear Power that other sea units get * Triremes and Carriers can no longer attack land units * Submarine attack strength reduced from 15 to 12 (to make it easier to defend against them with escorts) * New base type buoy, which can be built by Engineers on water tiles with the Radio advance, and gives vision. * Ruins (left behind by destroyed cities, no effect on gameplay currently) * New advance Environmentalism and Solar Plant improvement, which can eliminate pollution from production * Trade route value now depends on size of cities, not on trade generated in them * New national borders system * Coastal Defense now available earlier (requires Gunpowder instead of Metallurgy) * No restrictions on specialists in small cities OBS-URL: https://build.opensuse.org/package/show/games/freeciv?expand=0&rev=10
2010-07-15 12:42:13 +00:00
%fdupes %{buildroot}/%{_datadir}/
%files -f %name.lang
%defattr(-,root,root)
%doc ABOUT-NLS COPYING ChangeLog NEWS doc
- renamed client/server binaries to freeciv-gtk2 freeciv-server - update to 2.2.0 : changes since 2.1.x * Built-in editor * Expanded ruleset format: * Unit classes * Movement restrictions * Can limit which terrains a unit can enter * River-boats * Wheeled units * Which units another unit can transport * Migration * Plague * Bases * Calendar effects * Changes to gameplay with default ruleset: * New terrains: o Deep Ocean (as Ocean but no specials and cannot be transformed) o Lake (as Ocean but no Whales special; inland water below a certain size is generated as Lake) * Triremes are not restricted to tiles next to land, but to (shallow) Ocean tiles; they now cannot even attempt to enter unsafe tiles * Triremes no longer get the +1 movement bonus from Nuclear Power that other sea units get * Triremes and Carriers can no longer attack land units * Submarine attack strength reduced from 15 to 12 (to make it easier to defend against them with escorts) * New base type buoy, which can be built by Engineers on water tiles with the Radio advance, and gives vision. * Ruins (left behind by destroyed cities, no effect on gameplay currently) * New advance Environmentalism and Solar Plant improvement, which can eliminate pollution from production * Trade route value now depends on size of cities, not on trade generated in them * New national borders system * Coastal Defense now available earlier (requires Gunpowder instead of Metallurgy) * No restrictions on specialists in small cities OBS-URL: https://build.opensuse.org/package/show/games/freeciv?expand=0&rev=10
2010-07-15 12:42:13 +00:00
%doc %{_mandir}/man6/freeciv-*.6.gz
%{_bindir}/freeciv-gtk2
%{_bindir}/freeciv-server
%{_bindir}/civmanual
%{_bindir}/freeciv-manual
%{_datadir}/applications/freeciv-manual.desktop
%{_datadir}/applications/freeciv-server.desktop
%{_datadir}/applications/%name.desktop
%{_datadir}/freeciv/
%{_datadir}/icons/hicolor/128x128/apps/freeciv-client.png
%{_datadir}/icons/hicolor/128x128/apps/freeciv-server.png
%{_datadir}/icons/hicolor/16x16/apps/freeciv-client.png
%{_datadir}/icons/hicolor/16x16/apps/freeciv-server.png
%{_datadir}/icons/hicolor/32x32/apps/freeciv-client.png
%{_datadir}/icons/hicolor/32x32/apps/freeciv-server.png
%{_datadir}/icons/hicolor/48x48/apps/freeciv-client.png
%{_datadir}/icons/hicolor/48x48/apps/freeciv-server.png
%{_datadir}/icons/hicolor/64x64/apps/freeciv-client.png
%{_datadir}/icons/hicolor/64x64/apps/freeciv-server.png
%{_datadir}/pixmaps/freeciv-client.png
%{_datadir}/pixmaps/freeciv-manual.png
%{_datadir}/pixmaps/%name.png
%changelog