Blame 7kaa.spec

Bernhard M. Wiedemann fc6563
#
Bernhard M. Wiedemann fc6563
# spec file for package 7kaa
Bernhard M. Wiedemann fc6563
#
9b1cbb
# Copyright (c) 2022 SUSE LLC
Bernhard M. Wiedemann fc6563
#
Bernhard M. Wiedemann fc6563
# All modifications and additions to the file contributed by third parties
Bernhard M. Wiedemann fc6563
# remain the property of their copyright owners, unless otherwise agreed
Bernhard M. Wiedemann fc6563
# upon. The license for this file, and modifications and additions to the
Bernhard M. Wiedemann fc6563
# file, is the same license as for the pristine package itself (unless the
Bernhard M. Wiedemann fc6563
# license for the pristine package is not an Open Source License, in which
Bernhard M. Wiedemann fc6563
# case the license is the MIT License). An "Open Source License" is a
Bernhard M. Wiedemann fc6563
# license that conforms to the Open Source Definition (Version 1.9)
Bernhard M. Wiedemann fc6563
# published by the Open Source Initiative.
Bernhard M. Wiedemann fc6563
Bernhard M. Wiedemann fc6563
# Please submit bugfixes or comments via https://bugs.opensuse.org/
Bernhard M. Wiedemann fc6563
#
Bernhard M. Wiedemann fc6563
Bernhard M. Wiedemann fc6563
5dfcbf
%define base_version 2.15
Bernhard M. Wiedemann fc6563
Name:           7kaa
9b1cbb
Version:        %{base_version}.5
Bernhard M. Wiedemann fc6563
Release:        0
Bernhard M. Wiedemann fc6563
Summary:        Seven Kingdoms: Ancient Adversaries
Bernhard M. Wiedemann fc6563
License:        GPL-2.0-only
Bernhard M. Wiedemann fc6563
Group:          Amusements/Games/Strategy/Real Time
Bernhard M. Wiedemann fc6563
URL:            https://7kfans.com/
Bernhard M. Wiedemann fc6563
Source0:        https://github.com/the3dfxdude/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.xz
Bernhard M. Wiedemann fc6563
Source1:        %{name}.png
Bernhard M. Wiedemann fc6563
Source2:        %{name}.desktop
Bernhard M. Wiedemann fc6563
BuildRequires:  curl-devel
Bernhard M. Wiedemann fc6563
BuildRequires:  fdupes
Bernhard M. Wiedemann fc6563
BuildRequires:  gcc-c++
Bernhard M. Wiedemann fc6563
BuildRequires:  pkgconfig
Bernhard M. Wiedemann fc6563
BuildRequires:  update-desktop-files
Bernhard M. Wiedemann fc6563
BuildRequires:  pkgconfig(libenet)
Bernhard M. Wiedemann fc6563
BuildRequires:  pkgconfig(openal)
Bernhard M. Wiedemann fc6563
BuildRequires:  pkgconfig(sdl2)
5dfcbf
Recommends:     %{name}-music >= %{base_version}
Bernhard M. Wiedemann fc6563
Bernhard M. Wiedemann fc6563
%description
Bernhard M. Wiedemann fc6563
Seven Kingdoms made departures from the traditional real-time strategy models
Bernhard M. Wiedemann fc6563
of "gather resources, build a base and army, and attack". The economic model
Bernhard M. Wiedemann fc6563
bears more resemblance to a turn-based strategy game. It features an espionage
Bernhard M. Wiedemann fc6563
system that allows players to train and control spies individually, who each
Bernhard M. Wiedemann fc6563
have a spying skill that increases over time. The player is also responsible
Bernhard M. Wiedemann fc6563
for catching spies in their own kingdom. Inns built within the game allow
Bernhard M. Wiedemann fc6563
players to hire mercenaries of various occupations, skill levels, and races.
Bernhard M. Wiedemann fc6563
Skilled spies of enemy races are essential to a well-conducted espionage
Bernhard M. Wiedemann fc6563
program, and the player can bolster his forces by grabbing a skilled fighter
Bernhard M. Wiedemann fc6563
or give ones own factories, mines, and towers of science, a boost by hiring a
Bernhard M. Wiedemann fc6563
skilled professional.
Bernhard M. Wiedemann fc6563
Bernhard M. Wiedemann fc6563
Enlight Software decided to release the game to the Open Source community
Bernhard M. Wiedemann fc6563
in August 2009. At that time everything, but the music, was released under
Bernhard M. Wiedemann fc6563
the GPL v2.
Bernhard M. Wiedemann fc6563
Bernhard M. Wiedemann fc6563
%prep
Bernhard M. Wiedemann fc6563
%setup -q
Bernhard M. Wiedemann fc6563
Bernhard M. Wiedemann fc6563
%build
Bernhard M. Wiedemann fc6563
export CXXFLAGS="%{optflags} -fno-strict-aliasing"
Bernhard M. Wiedemann fc6563
%configure --docdir=%{_docdir}/%{name}
Bernhard M. Wiedemann fc6563
%make_build
Bernhard M. Wiedemann fc6563
Bernhard M. Wiedemann fc6563
%install
Bernhard M. Wiedemann fc6563
%make_install
Bernhard M. Wiedemann fc6563
Bernhard M. Wiedemann fc6563
# install icon
Bernhard M. Wiedemann fc6563
install -Dm 0644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/%{name}.png
Bernhard M. Wiedemann fc6563
Bernhard M. Wiedemann fc6563
# install Desktop file
Bernhard M. Wiedemann fc6563
install -Dm 0644 %{SOURCE2} %{buildroot}%{_datadir}/applications/%{name}.desktop
Bernhard M. Wiedemann fc6563
Bernhard M. Wiedemann fc6563
%suse_update_desktop_file %{name}
Bernhard M. Wiedemann fc6563
%fdupes -s %{buildroot}%{_prefix}
Bernhard M. Wiedemann fc6563
%find_lang %{name}
Bernhard M. Wiedemann fc6563
Bernhard M. Wiedemann fc6563
# remove duplicate COPYING file
Bernhard M. Wiedemann fc6563
rm -f %{buildroot}%{_docdir}/7kaa/COPYING
Bernhard M. Wiedemann fc6563
Bernhard M. Wiedemann fc6563
%files -f %{name}.lang
Bernhard M. Wiedemann fc6563
%license COPYING
Bernhard M. Wiedemann fc6563
%doc README
Bernhard M. Wiedemann fc6563
%{_bindir}/%{name}
Bernhard M. Wiedemann fc6563
%{_datadir}/applications/%{name}.desktop
Bernhard M. Wiedemann fc6563
%{_datadir}/pixmaps/%{name}.png
Bernhard M. Wiedemann fc6563
%{_datadir}/%{name}
Bernhard M. Wiedemann fc6563
Bernhard M. Wiedemann fc6563
%changelog