Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37531019
en ru br
Репозитории ALT
S:2.1.2-alt2
5.1: 0.5-alt1
www.altlinux.org/Changes

Группа :: Игры/Аркады
Пакет: warsow

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

%define _unpackaged_files_terminate_build 1

%set_verify_elf_method textrel=relaxed

ExclusiveArch: %ix86 x86_64

%define _user _warsow
%define _group _warsow
%define _home %_localstatedir/%name

%if %_arch == x86_64
%define _barch x86_64
%else
%define _barch i386
%endif

Name: warsow
Version: 2.1.2
Release: alt2

Summary: Free online multiplayer competitive FPS based on the Qfusion engine.
License: GPLv2
Group: Games/Arcade
Url: http://warsow.net

Source0: %{name}_21_sdk.tar

Source1: %name.desktop
Source2: %name.png
Source3: %{name}48.png

Patch1: %name-fedora-build.patch
Patch2: %name-fedora-paths.patch
Patch3: %name-alt-fno-common.patch

Requires: warsow-data = %version

BuildRequires: gcc-c++ hd2u libSDL2-devel libXext-devel libXinerama-devel libXrandr-devel libXxf86dga-devel libXxf86vm-devel libopenal-devel
BuildRequires: libcurl-devel libfreetype-devel libjpeg-devel libpng-devel libtheora-devel libvorbis-devel
BuildRequires: libGL-devel
BuildRequires: cmake /usr/bin/dos2unix

%description
Warsow is a completely free fast-paced first-person shooter (FPS) for
Windows, Linux and Mac OS X set in a futuristic cartoon-like world where
rocketlauncher-wielding pigs and lasergun-carrying cyberpunks roam
the streets.

%prep
%setup -q -n %{name}_21_sdk
%patch1 -p2
%patch2 -p2
%patch3 -p2

sed -i -e "/fs_basepath =/ s:\.:%_libdir/%name:" source/qcommon/files.c

# Remove bundled libs

pushd libsrcs
rm -rf libcurl libfreetype libjpeg libogg libpng libtheora libvorbis OpenAL-MOB openssl SDL2 zlib
popd

dos2unix docs/license.txt
dos2unix docs/sourcecode_quickstart.txt

%build
pushd source

%cmake \
-DQFUSION_GAME=Warsow \
-DUSE_SDL2=YES \
-DCMAKE_BUILD_TYPE=Debug \
%nil

%cmake_build

popd

%install
pushd source/build

# Install executables to bindir

install -Dm 755 warsow.* %buildroot%_bindir/warsow
install -Dm 755 wsw_server.* %buildroot%_bindir/warsow-server
install -Dm 755 wswtv_server.* %buildroot%_bindir/warsow-tv-server

# Install private libraries to a private directory

install -d %buildroot%_libdir/%name/libs
install -m 755 libs/*.so %buildroot%_libdir/%name/libs/

popd

# Install icons and the desktop file

install -D -m 0644 %SOURCE1 %buildroot%_desktopdir/warsow.desktop
install -D -m 644 %SOURCE2 %buildroot%_iconsdir/hicolor/256x256/apps/warsow.png
install -D -m 644 %SOURCE3 %buildroot%_liconsdir/warsow.png

ln -sf %_datadir/warsow/basewsw %buildroot%_libdir/warsow/basewsw

%files
%doc docs/*
%_bindir/*
%_libdir/warsow
%_desktopdir/warsow.desktop
%_iconsdir/hicolor/*/apps/warsow.png

%changelog

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

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