Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > by-pkgid > cbdb25b3efa177b0b7d59893efccfc86 > files > 3

d2x-rebirth-0.57.1-1mdv2010.2.src.rpm

# Copyright (c) 2006-2008 oc2pus
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments to toni@links2linux.de

# norootforbuild

%define _prefix	/usr

Summary:		The port of Descent 2 for Linux
Name:			d2x-rebirth
Version:		0.57.1
Release:		%mkrel 1
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.tar.gz
Source1:		%{name}.png
Source2:		D2XBDE01.zip
BuildRoot:		%{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires:	dos2unix
BuildRequires:	gcc-c++
BuildRequires:	GL-devel
BuildRequires:	nasm
BuildRequires:	scons
BuildRequires:	SDL-devel
BuildRequires:	SDL_image-devel
BuildRequires:	SDL_mixer-devel
BuildRequires:	physfs-devel
BuildRequires:	unzip
Requires:	physfs

%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
/usr/share/games/descent2. See dxx-readme.txt.

%package sdl
Group:		Games/Arcade
Summary:	Descent 2 for Linux, SDL version
Requires:	d2x-rebirth = %{version}
Requires:	SDL
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.

%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.


%prep
%setup -q -n %{name}_v%{version}-src -a2
dos2unix     d2x.ini *.txt
%__chmod 644 d2x.ini *.txt
dos2unix CHANGELOG.txt

%build
# d2x-sdl
scons %{?jobs:-j%{jobs}} \
	sharepath=%{_gamesdatadir}/descent2 \
	sdl_only=1 \
	sdlmixer=1 \
	no_asm=1
mv d2x-rebirth d2x-rebirth-sdl

# d2x-gl
scons -c
scons %{?jobs:-j%{jobs}} \
	sharepath=%{_gamesdatadir}/descent2 \
	sdlmixer=1 \
	PREFIX=%{buildroot}%{_prefix}
cp d2x-rebirth d2x-rebirth-gl

%install
rm -rf %{buildroot}
# binaries
%__install -dm 755 %{buildroot}%{_prefix}/games/
%__install -m 755 d2x-rebirth  \
	%{buildroot}%{_prefix}/games/d2x-rebirth-gl
%__install -m 755 d2x-rebirth-sdl \
	%{buildroot}%{_prefix}/games/

%__install -dm 755 %{buildroot}%{_datadir}/games/descent2
# german translations
%__install -m 644 D2XBDE01/D2XbDE01/*.txb \
	%{buildroot}%{_datadir}/games/descent2
%__install -m 644 D2XBDE01/*.txt \
	%{buildroot}%{_datadir}/games/descent2
# directory for original descent data
%__install -dm 755 %{buildroot}%{_datadir}/games/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}%{_datadir}/applications
%__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=%{_prefix}/games/d2x-rebirth-sdl
Icon=%{name}
Categories=Game;ActionGame;
EOF
%__install -m 644 %{name}-sdl.desktop \
	%{buildroot}%{_datadir}/applications

%__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=%{_prefix}/games/d2x-rebirth-gl
Icon=%{name}
Categories=Game;ArcadeGame;
EOF
%__install -m 644 %{name}-gl.desktop \
	%{buildroot}%{_datadir}/applications

%clean
[ -d %{buildroot} -a "%{buildroot}" != "" ] && %__rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc *.txt *.plist *.ini
%dir %{_datadir}/games/descent2
%{_datadir}/games/descent2/*.txb
%{_datadir}/games/descent2/*.txt
%dir %{_datadir}/games/descent2/missions
%{_mandir}/man1/*
%{_datadir}/pixmaps/%{name}.png

%files sdl
%defattr(-,root,root)
%doc COPYING*
%{_prefix}/games/d2x-rebirth-sdl
%{_datadir}/applications/%{name}-sdl.desktop

%files gl
%defattr(-,root,root)
%doc COPYING*
%{_prefix}/games/d2x-rebirth-gl
%{_datadir}/applications/%{name}-gl.desktop



%changelog
* Sun Oct 02 2011 Zombie Ryushu <ryushu@mandriva.org> 0.57.1-1mdv2010.1
+ Revision: 702413
- Upgrade to 0.57.1

* Tue Jun 21 2011 Zombie Ryushu <ryushu@mandriva.org> 0.57-1
+ Revision: 686399
- Upgrade to 0.57

* Wed Dec 01 2010 Tomas Kindl <supp@mandriva.org> 0.56-1mdv2011.0
+ Revision: 604220
- bump to latest release (0.56)

* Fri Oct 02 2009 Guillaume Rousse <guillomovitch@mandriva.org> 0.55.1-3mdv2010.0
+ Revision: 452475
- rebuild for new libphysfs

* Thu Apr 02 2009 Zombie Ryushu <ryushu@mandriva.org> 0.55.1-2mdv2009.1
+ Revision: 363465
- Make d2x categories consistent

* Wed Feb 04 2009 Zombie Ryushu <ryushu@mandriva.org> 0.55.1-1mdv2009.1
+ Revision: 337260
- Fix Build paths
- Bugfix Release
- Bugfix Release

* Fri Jan 02 2009 Zombie Ryushu <ryushu@mandriva.org> 0.55-1mdv2009.1
+ Revision: 323244
- New version 0.55
- New version 0.55

* Tue Dec 30 2008 Zombie Ryushu <ryushu@mandriva.org> 0.54-3mdv2009.1
+ Revision: 321377
- Fix Requires again

* Thu Dec 25 2008 Zombie Ryushu <ryushu@mandriva.org> 0.54-2mdv2009.1
+ Revision: 318850
- Fix Dependancies

* Wed Dec 24 2008 Zombie Ryushu <ryushu@mandriva.org> 0.54-1mdv2009.1
+ Revision: 318148
- import d2x-rebirth


* Sun Jun 29 2008 Toni Graffy <toni@links2linux.de> - 0.54-0.pm.1
- update to 0.54
* Mon Dec 03 2007 Toni Graffy <toni@links2linux.de> - 0.53-0.pm.2
- rebuild with new physfs(-devel) 1.1.1
* Thu Oct 25 2007 Toni Graffy <toni@links2linux.de> - 0.53-0.pm.1
- update to 0.53
* Sun May 06 2007 Toni Graffy <toni@links2linux.de> - 0.52-0.pm.1
- update to 0.52
* Fri Feb 16 2007 Toni Graffy <toni@links2linux.de> - 0.51-0.pm.1
- update to 0.51
* Sat Nov 11 2006 Toni Graffy <toni@links2linux.de> - 0.50-0.pm.1
- initial package 0.50