Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37044580
en ru br
Репозитории ALT
S:4.2.6-alt2
5.1: 2.2.2-alt1
4.1: 2.0.10-alt1
4.0: 2.0.7-alt1
3.0: 0.2.2-alt1
www.altlinux.org/Changes

Группа :: Игры/Стратегия
Пакет: warzone2100

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1
%define _stripped_files_terminate_build 1
%set_verify_elf_method strict

Name: warzone2100
Version: 4.2.6
Release: alt2
Summary: Warzone 2100 Resurrection Project (RTS 3D game)
License: GPLv2+ and CC-BY-SA-3.0
Group: Games/Strategy
Url: https://wz2100.net

# https://github.com/Warzone2100/warzone2100.git

Source: %name-%version.tar

#Source1: http://www.deviantart.com/download/92153956/Warzone_2100_Tango_Icon_by_Unit66.zip

Source1: Warzone_2100_Tango_Icon_by_Unit66.tar

# Upstream now generates cache via cmake.

# Use following command on clean full upstream copy of repository while master branch is updated and current release tag is checked out:
# cmake -DOUTPUT_TYPE=sh -DOUTPUT_FILE=autorevision.cache -P build_tools/autorevision.cmake
# ATTENTION: this must be done on pristine full clone of upstream repository, which must include all upstream tags
# and NO downstream tags.
# It counts tags, and resulting information may be used as identificator in multiplayer games to check if client
# has compatible version.
# Thus, generated file must be identical to one included in upstream source tarball, maybe with an exception of VCS_BASENAME and VCS_BRANCH values.
# Failing to follow doing so won't lead to build failure, but may lead to inability to play multiplayer mode with other builds of game.
Source2: autorevision-%version.cache

# submodules

Source3: %name-%version-3rdparty-date.tar
Source4: %name-%version-3rdparty-discord-rpc.tar
Source5: %name-%version-3rdparty-EmbeddedJSONSignature.tar
Source6: %name-%version-3rdparty-launchinfo.tar
Source7: %name-%version-3rdparty-readerwriterqueue.tar
Source8: %name-%version-3rdparty-SQLiteCpp.tar
Source9: %name-%version-3rdparty-SQLiteCpp-googletest.tar
Source10: %name-%version-data-base-texpages.tar
Source11: %name-%version-data-music.tar

Source1000: %name.watch

Patch1: %name-alt-unbundle-libs.patch
Patch2: %name-alt-dont-install-portable-marker.patch
Patch3: 0001-Fix-build-on-GCC13.patch

BuildRequires: /proc
BuildRequires: qt5-base-devel qt5-3d-devel qt5-script-devel qt5-x11extras-devel openssl-devel
BuildRequires: elfutils fontconfig-devel libGL-devel libGLU-devel libX11-devel libXrandr-devel libXrender-devel libfreetype-devel libogg-devel libpng-devel libstdc++-devel pkg-config texlive-latex-base xorg-randrproto-devel xorg-renderproto-devel xorg-xproto-devel zlib-devel
BuildRequires: asciidoc-a2x flex gcc-c++ libSDL2-devel libfribidi-devel libglew-devel libopenal-devel libphysfs-devel libtheora-devel libvorbis-devel unzip xorg-cf-files zip
BuildRequires: libglm-devel
BuildRequires: python2-base
BuildRequires: cmake
BuildRequires: libminiupnpc-devel
BuildRequires: libutfcpp-devel
BuildRequires: libutf8proc-devel
BuildRequires: libre2-devel
BuildRequires: libsodium-devel
BuildRequires: libcurl-devel
BuildRequires: libsqlite3-devel
BuildRequires: libfmt-devel

# 'zip -T' called in build process needs unzip to work...


Requires: %name-gamedata = %EVR

%description
Warzone 2100 is a real-time strategy game. Although comparable to Earth 2150
in many significant respects, it does contain aspects that are unique. These
include various radar technologies and a greater focus on artillery and
counter-battery technologies.

%package gamedata
Summary: Game data for warzone2100
Group: Games/Strategy
# We split game data to separate package to make it noarch and thus save
# bandwidth and space on distribution media.
BuildArch: noarch

%description gamedata
Game data for warzone2100.

%prep
%setup -a1 -a3 -a4 -a5 -a6 -a7 -a8 -a9 -a10 -a11
%patch1 -p1
%patch2 -p1
%patch3 -p1

install -m644 %SOURCE2 build_tools/autorevision.cache

%build
%add_optflags -D_FILE_OFFSET_BITS=64

%cmake \
-DWZ_DISTRIBUTOR="ALT Linux" \
-DWZ_FINDSDL2_NOCONFIG:BOOL=OFF \
-DWZ_ENABLE_WARNINGS_AS_ERRORS:BOOL=OFF \
%nil

%cmake_build

%install
%cmakeinstall_std
install -d %buildroot%_pixmapsdir
install -m644 icons/warzone2100.png %buildroot%_pixmapsdir
install -pD -m644 warzone2100_48x48.png %buildroot%_liconsdir/warzone2100.png
install -pD -m644 warzone2100_32x32.png %buildroot%_niconsdir/warzone2100.png
install -pD -m644 warzone2100_16x16.png %buildroot%_miconsdir/warzone2100.png

rm -rf %buildroot%_datadir/fonts
rm -rf %buildroot%_datadir/doc
rm -rf %buildroot%_iconsdir/warzone2100.png

%find_lang warzone2100

%files -f warzone2100.lang
%doc COPYING* README.md
%_bindir/*
%_miconsdir/*
%_niconsdir/*
%_liconsdir/*
%_pixmapsdir/*
%_desktopdir/*
%_man6dir/*
%_datadir/metainfo/*

%files gamedata
%_datadir/warzone2100

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin