SHA256
1
0
forked from pool/7kaa
7kaa/7kaa.spec
Ferdinand Thiessen 358abe873c Accepting request 677479 from home:elimat:branches:games
This needs to be submitted with 7kaa-music update to factory.

- Update to 2.15.1 
  * Fixed desync on mobilizing workers.
  * Fixed desync on troop sortie, by making troop sorting deterministic.
  * Fixed desync on AI attack planning, by making AI fort sorting deterministic.
  * Fixed error that caused multiplayer save files appear out of sync.
  * Changed the Button class to not block on holding down the mouse button,
    smoothing multiplayer games when alot of clicking may be happening.
  * Prevent mobilizing foreign workers from your Firms, however they may be
    fired back to their home town.
  * Only enable mobilize worker button when the firm is staffed with non-foreign
    workers.
  * Prefer IPv4 addressing for 7kfans.com match-making.
  * Fixed ambiguity in some translations.
  * Repack structures for Crc checking due to pointer sizing.
  * Improved cross-compilation and platform support.
  * Uppercased the data and user files, as they are supported in the code,
    maintaining consistency and without needing to guess case.
  * Fixed missing Fryhtan encyclopedia picture on some systems.
  * Fixed observation mode visibility when playing a replay.
  * Added support for center and right paragraph justification.
  * Packagers please note that the music files must be in upper-case now, see
    the latest download for the music.
- Clean with spec-cleaner
- Make sure we recommend new 7kaa-music version

OBS-URL: https://build.opensuse.org/request/show/677479
OBS-URL: https://build.opensuse.org/package/show/games/7kaa?expand=0&rev=20
2019-02-20 13:12:36 +00:00

93 lines
3.2 KiB
RPMSpec

#
# spec file for package 7kaa
#
# Copyright (c) 2019 SUSE LINUX 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 https://bugs.opensuse.org/
#
# See also http://en.opensuse.org/openSUSE:Specfile_guidelines
Name: 7kaa
Version: 2.15.1
Release: 0
Summary: Seven Kingdoms: Ancient Adversaries
License: GPL-2.0-only
Group: Amusements/Games/Strategy/Real Time
URL: http://7kfans.com/
Source0: https://github.com/the3dfxdude/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.xz
Source1: %{name}.png
Source2: %{name}.desktop
# PATCH-FIX-UPSTREAM - gcc6_char_cast.patch -- https://github.com/the3dfxdude/7kaa/issues/63
Patch0: gcc6_char_cast.patch
BuildRequires: curl-devel
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(libenet)
BuildRequires: pkgconfig(openal)
BuildRequires: pkgconfig(sdl2)
Recommends: %{name}-music >= 20181228
%description
Seven Kingdoms made departures from the traditional real-time strategy models
of "gather resources, build a base and army, and attack". The economic model
bears more resemblance to a turn-based strategy game. It features an espionage
system that allows players to train and control spies individually, who each
have a spying skill that increases over time. The player is also responsible
for catching spies in their own kingdom. Inns built within the game allow
players to hire mercenaries of various occupations, skill levels, and races.
Skilled spies of enemy races are essential to a well-conducted espionage
program, and the player can bolster his forces by grabbing a skilled fighter
or give ones own factories, mines, and towers of science, a boost by hiring a
skilled professional.
Enlight Software decided to release the game to the Open Source community
in August 2009. At that time everything, but the music, was released under
the GPL v2.
%prep
%setup -q
%patch0 -p1
%build
export CXXFLAGS="%{optflags} -fno-strict-aliasing"
%configure --docdir=%{_docdir}/%{name}
make %{?_smp_mflags}
%install
%make_install
# install icon
install -Dm 0644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/%{name}.png
# install Desktop file
install -Dm 0644 %{SOURCE2} %{buildroot}%{_datadir}/applications/%{name}.desktop
%suse_update_desktop_file %{name}
%fdupes -s %{buildroot}%{_prefix}
%find_lang %{name}
# remove duplicate COPYING file
rm -f %{buildroot}%{_docdir}/7kaa/COPYING
%files -f %{name}.lang
%license COPYING
%doc README
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/%{name}
%changelog