SHA256
1
0
forked from pool/freeciv
freeciv/freeciv.spec

166 lines
5.1 KiB
RPMSpec
Raw Normal View History

#
# spec file for package freeciv
#
# Copyright (c) 2023 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: freeciv
Accepting request 1127950 from home:dirkmueller:Factory - update to version 3.0.9: * Generic bugfix release * Set diplomatic relations state correctly between team members osdn#48295 * Fixed assert failures when city grows to freeciv's internal max city size (255) * Sammarinese city name Borgo Maggiore corrected osdn#48316 * Cargo gets bounced when transport is lost due to terrain change * Fixed crash with recursive autoattacks in case of occupychance setting being > 0 * Fixed memory corruption when transport is not bounced, but cargo is * Corrected amount treasury gets increased by a city in some situations * Cities stop working tiles turned unworkable at turn change * Fixed clearing city border claims when player gets removed from the game osdn#48837 * see https://freeciv.fandom.com/wiki/NEWS-3.0.9 - update to bugfix release 2.0.6 - fixed build with gcc 4.1 * Fix a bug where some mapgen settings would create more continents than the server could handle. * Fix a bug that allowed free changing of techs after finding a tech other than the one currently being researched. * Fix a bug where removing and creating a new player would give the new player the old one's team. * When the player disconnects in a normal game, make a savegame and exit immediately rather than continuing to run. (This fixes the bug where savegames made after a client crash would reveal OBS-URL: https://build.opensuse.org/request/show/1127950 OBS-URL: https://build.opensuse.org/package/show/games/freeciv?expand=0&rev=85
2023-11-22 10:37:14 +00:00
Version: 3.0.9
Release: 0
Summary: Free Civilization Clone
License: GPL-2.0-or-later
Group: Amusements/Games/Strategy/Turn Based
URL: https://www.freeciv.org
Source0: https://files.freeciv.org/stable/%{name}-%{version}.tar.xz
Source1: freeciv-gtk3.desktop
Source2: freeciv-qt.desktop
Source3: freeciv.png
Source4: freeciv-manual
Source5: freeciv-manual.desktop
Source6: freeciv-manual.png
BuildRequires: audiofile-devel
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: curl-devel >= 7.9.7
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: gtk3-devel
BuildRequires: libbz2-devel
BuildRequires: libqt5-qtbase-common-devel
BuildRequires: libqt5-qtbase-devel
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: readline-devel
BuildRequires: update-desktop-files
BuildRequires: xz-devel
BuildRequires: zlib-devel
BuildRequires: pkgconfig(SDL2_mixer)
BuildRequires: pkgconfig(sdl2)
Requires: freeciv_client-%{version}
Recommends: freeciv-lang
%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!
%package qt
Summary: Qt client for freeciv
Group: Amusements/Games/Strategy/Turn Based
Requires: freeciv = %{version}
Provides: freeciv_client-%{version}
%description qt
Freeciv executable using Qt library
%package lang
Summary: Translation files for freeciv
Group: Amusements/Games/Strategy/Turn Based
Requires: freeciv = %{version}
BuildArch: noarch
%description lang
Translation files for freeciv main package and clients.
%package gtk3
Summary: Gtk3 client for freeciv
Group: Amusements/Games/Strategy/Turn Based
Requires: freeciv = %{version}
Provides: freeciv_client-%{version}
%description gtk3
Freeciv executable using Gtk3 library
%prep
%setup -q
%build
export MOCCMD="moc-qt5"
autoreconf -fi
%configure \
--enable-client=gtk3,qt \
- 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 \
--docdir=%{_docdir}/freeciv
%make_build
%install
%make_install
install -m 755 $RPM_SOURCE_DIR/freeciv-manual %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/pixmaps/
install -m 644 $RPM_SOURCE_DIR/*.png %{buildroot}%{_datadir}/pixmaps
Accepting request 870153 from home:dirkmueller:branches:games - update to 2.6.3: * see http://www.freeciv.org/wiki/NEWS-2.6.3 * Fixed trouble when a new city is founded to the ruins of a former city, and that new city establish a trade route with a player who had seen former city, and is unaware that it had been destroyed HRM#871606 * Fixed a case where shared vision did not completely update recipient's map HRM#846106 * Fixed a bug where one could paradrop to peaceful nation's territory after continuing game from an old savegame HRM#879084 * Fixed a bug causing game sometimes to tell wrong reason of why an action failed HRM#879880 * Cease fire no longer runs out with an already dead player, making his former allies to hate the alive party of the treaty HRM#879055 * Made server not to end in a infinite loop after loading savegame with too high phase number. Such a savegame was reported to be created after spaceship was launched but game was still continued HRM#815196 * Unified writing of the city name Washington-on-the-Brazos between rulesets, so it doesn't appear multiple times in the same game in a bit different form HRM#867817 * Stealth units are no longer erroneously hidden even from allies HRM#764976 * Placing initial units is now done in shuffled player order HRM#850656 * Corrupt worker tasks are cleared. Those can originate, e.g., from buggy pre-2.6.2.1 Qt-client, and live in old savegames HRM#901938 * In a ruleset, such as civ2civ3, where caravans can help building wonder in a foreign city, refresh city info of the city owner when one does HRM#907977 * Display of success probabilities for diplomats was off when targeting stack of units instead of individual unit HRM#859761 * Fixed pillaging of extras that are caused by something else than OBS-URL: https://build.opensuse.org/request/show/870153 OBS-URL: https://build.opensuse.org/package/show/games/freeciv?expand=0&rev=61
2021-02-08 14:09:38 +00:00
%suse_update_desktop_file -i org.freeciv.gtk3 Game StrategyGame
%suse_update_desktop_file -i org.freeciv.qt Game StrategyGame
%suse_update_desktop_file -i freeciv-manual Game StrategyGame
rm %{buildroot}%{_docdir}/freeciv/COPYING
%find_lang %{name}-core
%find_lang %{name}-nations
%find_lang %{name}-ruledit
%fdupes %{buildroot}/%{_datadir}/
%files
%doc %{_docdir}/freeciv
%doc README
%license COPYING
%exclude %{_docdir}/freeciv/INSTALL*
%exclude %{_libdir}/*.a
%exclude %{_libdir}/*.la
%{_mandir}/man6/freeciv.6%{?ext_man}
%{_mandir}/man6/freeciv-*.6%{?ext_man}
%dir %{_sysconfdir}/%{name}
%config %{_sysconfdir}/%{name}/database.lua
%{_bindir}/freeciv-ruledit
%{_bindir}/freeciv-ruleup
- 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
%{_bindir}/freeciv-server
%{_bindir}/freeciv-manual
%{_datadir}/applications/freeciv-manual.desktop
Accepting request 870153 from home:dirkmueller:branches:games - update to 2.6.3: * see http://www.freeciv.org/wiki/NEWS-2.6.3 * Fixed trouble when a new city is founded to the ruins of a former city, and that new city establish a trade route with a player who had seen former city, and is unaware that it had been destroyed HRM#871606 * Fixed a case where shared vision did not completely update recipient's map HRM#846106 * Fixed a bug where one could paradrop to peaceful nation's territory after continuing game from an old savegame HRM#879084 * Fixed a bug causing game sometimes to tell wrong reason of why an action failed HRM#879880 * Cease fire no longer runs out with an already dead player, making his former allies to hate the alive party of the treaty HRM#879055 * Made server not to end in a infinite loop after loading savegame with too high phase number. Such a savegame was reported to be created after spaceship was launched but game was still continued HRM#815196 * Unified writing of the city name Washington-on-the-Brazos between rulesets, so it doesn't appear multiple times in the same game in a bit different form HRM#867817 * Stealth units are no longer erroneously hidden even from allies HRM#764976 * Placing initial units is now done in shuffled player order HRM#850656 * Corrupt worker tasks are cleared. Those can originate, e.g., from buggy pre-2.6.2.1 Qt-client, and live in old savegames HRM#901938 * In a ruleset, such as civ2civ3, where caravans can help building wonder in a foreign city, refresh city info of the city owner when one does HRM#907977 * Display of success probabilities for diplomats was off when targeting stack of units instead of individual unit HRM#859761 * Fixed pillaging of extras that are caused by something else than OBS-URL: https://build.opensuse.org/request/show/870153 OBS-URL: https://build.opensuse.org/package/show/games/freeciv?expand=0&rev=61
2021-02-08 14:09:38 +00:00
%{_datadir}/applications/org.freeciv.server.desktop
%{_datadir}/applications/org.freeciv.ruledit.desktop
%{_datadir}/freeciv/
%{_datadir}/icons/hicolor/*x*/apps/freeciv-client.png
%{_datadir}/icons/hicolor/*x*/apps/freeciv-server.png
%{_datadir}/icons/hicolor/*x*/apps/freeciv-modpack.png
%{_datadir}/icons/hicolor/*x*/apps/freeciv-ruledit.png
%{_datadir}/pixmaps/freeciv-client.png
%{_datadir}/pixmaps/freeciv-manual.png
%{_datadir}/pixmaps/freeciv-modpack.png
%{_datadir}/pixmaps/freeciv-ruledit.png
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/metainfo/org.freeciv.server.appdata.xml
%{_datadir}/metainfo/org.freeciv.ruledit.appdata.xml
%files lang -f %{name}-core.lang -f %{name}-nations.lang -f %{name}-ruledit.lang
%files gtk3
%{_bindir}/freeciv-gtk3
%{_bindir}/freeciv-mp-gtk3
Accepting request 870153 from home:dirkmueller:branches:games - update to 2.6.3: * see http://www.freeciv.org/wiki/NEWS-2.6.3 * Fixed trouble when a new city is founded to the ruins of a former city, and that new city establish a trade route with a player who had seen former city, and is unaware that it had been destroyed HRM#871606 * Fixed a case where shared vision did not completely update recipient's map HRM#846106 * Fixed a bug where one could paradrop to peaceful nation's territory after continuing game from an old savegame HRM#879084 * Fixed a bug causing game sometimes to tell wrong reason of why an action failed HRM#879880 * Cease fire no longer runs out with an already dead player, making his former allies to hate the alive party of the treaty HRM#879055 * Made server not to end in a infinite loop after loading savegame with too high phase number. Such a savegame was reported to be created after spaceship was launched but game was still continued HRM#815196 * Unified writing of the city name Washington-on-the-Brazos between rulesets, so it doesn't appear multiple times in the same game in a bit different form HRM#867817 * Stealth units are no longer erroneously hidden even from allies HRM#764976 * Placing initial units is now done in shuffled player order HRM#850656 * Corrupt worker tasks are cleared. Those can originate, e.g., from buggy pre-2.6.2.1 Qt-client, and live in old savegames HRM#901938 * In a ruleset, such as civ2civ3, where caravans can help building wonder in a foreign city, refresh city info of the city owner when one does HRM#907977 * Display of success probabilities for diplomats was off when targeting stack of units instead of individual unit HRM#859761 * Fixed pillaging of extras that are caused by something else than OBS-URL: https://build.opensuse.org/request/show/870153 OBS-URL: https://build.opensuse.org/package/show/games/freeciv?expand=0&rev=61
2021-02-08 14:09:38 +00:00
%{_datadir}/applications/org.freeciv.gtk3.desktop
%{_datadir}/metainfo/org.freeciv.gtk3.appdata.xml
Accepting request 870153 from home:dirkmueller:branches:games - update to 2.6.3: * see http://www.freeciv.org/wiki/NEWS-2.6.3 * Fixed trouble when a new city is founded to the ruins of a former city, and that new city establish a trade route with a player who had seen former city, and is unaware that it had been destroyed HRM#871606 * Fixed a case where shared vision did not completely update recipient's map HRM#846106 * Fixed a bug where one could paradrop to peaceful nation's territory after continuing game from an old savegame HRM#879084 * Fixed a bug causing game sometimes to tell wrong reason of why an action failed HRM#879880 * Cease fire no longer runs out with an already dead player, making his former allies to hate the alive party of the treaty HRM#879055 * Made server not to end in a infinite loop after loading savegame with too high phase number. Such a savegame was reported to be created after spaceship was launched but game was still continued HRM#815196 * Unified writing of the city name Washington-on-the-Brazos between rulesets, so it doesn't appear multiple times in the same game in a bit different form HRM#867817 * Stealth units are no longer erroneously hidden even from allies HRM#764976 * Placing initial units is now done in shuffled player order HRM#850656 * Corrupt worker tasks are cleared. Those can originate, e.g., from buggy pre-2.6.2.1 Qt-client, and live in old savegames HRM#901938 * In a ruleset, such as civ2civ3, where caravans can help building wonder in a foreign city, refresh city info of the city owner when one does HRM#907977 * Display of success probabilities for diplomats was off when targeting stack of units instead of individual unit HRM#859761 * Fixed pillaging of extras that are caused by something else than OBS-URL: https://build.opensuse.org/request/show/870153 OBS-URL: https://build.opensuse.org/package/show/games/freeciv?expand=0&rev=61
2021-02-08 14:09:38 +00:00
%{_datadir}/applications/org.freeciv.mp.gtk3.desktop
%{_datadir}/metainfo/org.freeciv.mp.gtk3.appdata.xml
%files qt
%{_bindir}/freeciv-qt
Accepting request 870153 from home:dirkmueller:branches:games - update to 2.6.3: * see http://www.freeciv.org/wiki/NEWS-2.6.3 * Fixed trouble when a new city is founded to the ruins of a former city, and that new city establish a trade route with a player who had seen former city, and is unaware that it had been destroyed HRM#871606 * Fixed a case where shared vision did not completely update recipient's map HRM#846106 * Fixed a bug where one could paradrop to peaceful nation's territory after continuing game from an old savegame HRM#879084 * Fixed a bug causing game sometimes to tell wrong reason of why an action failed HRM#879880 * Cease fire no longer runs out with an already dead player, making his former allies to hate the alive party of the treaty HRM#879055 * Made server not to end in a infinite loop after loading savegame with too high phase number. Such a savegame was reported to be created after spaceship was launched but game was still continued HRM#815196 * Unified writing of the city name Washington-on-the-Brazos between rulesets, so it doesn't appear multiple times in the same game in a bit different form HRM#867817 * Stealth units are no longer erroneously hidden even from allies HRM#764976 * Placing initial units is now done in shuffled player order HRM#850656 * Corrupt worker tasks are cleared. Those can originate, e.g., from buggy pre-2.6.2.1 Qt-client, and live in old savegames HRM#901938 * In a ruleset, such as civ2civ3, where caravans can help building wonder in a foreign city, refresh city info of the city owner when one does HRM#907977 * Display of success probabilities for diplomats was off when targeting stack of units instead of individual unit HRM#859761 * Fixed pillaging of extras that are caused by something else than OBS-URL: https://build.opensuse.org/request/show/870153 OBS-URL: https://build.opensuse.org/package/show/games/freeciv?expand=0&rev=61
2021-02-08 14:09:38 +00:00
%{_datadir}/applications/org.freeciv.qt.desktop
%{_datadir}/metainfo/org.freeciv.qt.appdata.xml
%changelog