Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37901754
en ru br
ALT Linux repositórios
5.0: 0.54-alt1

Group :: Jogos/Arcade
RPM: d2x-rebirth

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Summary: The port of Descent 2 for Linux
Name: d2x-rebirth
Version: 0.54
Release: alt1
License: GPL
Group: Games/Arcade
Url: http://www.dxx-rebirth.de/
Source: http://www.dxx-rebirth.de/download/dxx/oss/src/%{name}_v%version-src-20080629.tar.gz
Source1: %name.png
Source2: D2XBDE01.zip
Packager: Fr. Br. George <george at altlinux.ru>

# Automatically added by buildreq on Mon Nov 03 2008

BuildRequires: dos2unix gcc-c++ libGL-devel libSDL-devel libSDL_mixer-devel physfs-devel scons unzip

BuildRequires: desktop-file-utils

%description
This is the port of Descent 2, the famous 3D game for PC.

D2X is based on source code that was released the 14 December 1999 by
Parallax Software Corporation.

To use this package you'll need some datafiles installed in
%_gamesdatadir/descent2 See dxx-readme.txt.

%package sdl
Group: Games/Arcade
Summary: Descent 2 for Linux, SDL version
Requires: d2x-rebirth = %version
Conflicts: d2x-rebirth-gl

%description sdl
This is the port of Descent 2, the famous 3D game for PC.

D2X is based on source code that was released the 14 December 1999
by Parallax Software Corporation.

To use this package you'll need some datafiles installed in
/usr/share/games/descent2. See dxx-readme.txt.

This version uses SDL for Audio, Input/Output and graphics
rendering.

You may use SHAREWARE version of descent with d2x
You can get it from here:
http://download.descent-network.com/shareware1/descent2/playable/d2shar10.exe
and unrar like this:
unrar x -cl d2shar10.exe /usr/share/games/descent2

%package gl
Group: Games/Arcade
Summary: Descent 2 for Linux, OpenGL version
Requires: d2x-rebirth = %version
Conflicts: d2x-rebirth-sdl

%description gl
This is the port of Descent 2, the famous 3D game for PC.

D2X is based on source code that was released the 14 December 1999 by
Parallax Software Corporation.

To use this package you'll need some datafiles installed in
/usr/share/games/descent2.  See dxx-readme.txt.

This version uses SDL for Audio and Input/Output and OpenGL for
graphics rendering.

You may use SHAREWARE version of descent with d2x
You can get it from here:
http://download.descent-network.com/shareware1/descent2/playable/d2shar10.exe
and unrar like this:
unrar x -cl d2shar10.exe /usr/share/games/descent2


%prep
%setup -q -n %name -a2
dos2unix     d2x.ini *.txt
chmod 644 d2x.ini *.txt

%build
# d2x-sdl
scons -j%__nprocs \
sharepath=%_gamesdatadir/descent2 \
sdl_only=1 \
sdlmixer=1 \
no_asm=1

# d2x-gl

scons -c
scons -j%__nprocs \
sharepath=%_gamesdatadir/descent2 \
sdlmixer=1 \
PREFIX=%buildroot%prefix

%install
# binaries
install -dm 755 %buildroot%_gamesbindir/
install -m 755 d2x-rebirth-gl %buildroot%_gamesbindir/
install -m 755 d2x-rebirth-sdl %buildroot%_gamesbindir/

install -dm 755 %buildroot%_gamesdatadir/descent2
# german translations
install -m 644 D2XBDE01/D2XbDE01/*.txb %buildroot%_gamesdatadir/descent2
install -m 644 D2XBDE01/*.txt %buildroot%_gamesdatadir/descent2
# directory for original descent data
install -dm 755 %buildroot%_gamesdatadir/descent2/missions

# man-pages

install -dm 755 %buildroot%_mandir/man1/
install  -m 644 libmve/*.1 %buildroot%_mandir/man1/

# icon

install -dm 755 %buildroot%_datadir/pixmaps
install -m 644 %SOURCE1 %buildroot%_datadir/pixmaps

# menu

install -dm 755 %buildroot%_desktopdir
cat > %name-sdl.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=D2x (SDL version)
Comment=The port of Descent 2 for Linux
Exec=%_gamesbindir/d2x-rebirth-sdl
Icon=%name
Categories=Game;ActionGame;
EOF
install -m 644 %name-sdl.desktop %buildroot%_desktopdir

cat > %name-gl.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=D2x (OpenGL version)
Comment=The port of Descent 2 for Linux
Exec=%_gamesbindir/d2x-rebirth-gl
Icon=%name
Categories=Game;ActionGame;
EOF
install -m 644 %name-gl.desktop %buildroot%_desktopdir

%files
%doc *.txt *.plist *.ini
%dir %_gamesdatadir/descent2
%_gamesdatadir/descent2/*.txb
%_gamesdatadir/descent2/*.txt
%dir %_gamesdatadir/descent2/missions
%_man1dir/*
%_datadir/pixmaps/%name.png

%files sdl
%doc COPYING*
%_gamesbindir/d2x-rebirth-sdl
%_desktopdir/%name-sdl.desktop

%files gl
%doc COPYING*
%_gamesbindir/d2x-rebirth-gl
%_desktopdir/%name-gl.desktop

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009