Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > f5ed53eadb719cbcbbbaf8f752eb87ca > files > 7

egoboo-2.8.1-4.mga3.src.rpm

Summary:	3D dungeon crawling game
Name:		egoboo
Version:	2.8.1
Release:	%mkrel 4
Epoch:		1
License:	GPLv3+
Group:		Games/Adventure
URL:		http://egoboo.sourceforge.net/
#Source0:	http://downloads.sourceforge.net/egoboo/%{name}-%{version}.tar.gz
#Since upstream gives both source and data in one tarball, we split it between here and egoboo-data package :
#wget http://downloads.sourceforge.net/egoboo/%{name}-%{version}.tar.gz
#tar xvf %{name}-%{version}.tar.gz
#mkdir %{name}-data-%{version}
#cd %{name}-%{version}
#mv basicdat/ doc/ modules/ egoboo*ico ../%{name}-data-%{version}/
#cd ..
#tar Jcvf %{name}-%{version}.tar.xz %{name}-%{version}/
#tar Jcvf %{name}-data-%{version}.tar.xz %{name}-data-%{version}/
Source0:	%{name}-%{version}.tar.xz
Source1:	%{name}.png
Patch1:		egoboo-2.8.1-mageia-rediff-add-destdir.patch
Patch4:		egoboo-2.8.0-create-enet-lib-directory.patch
Patch6:		egoboo-2.8.0-disable-unsupported-gl-extension.patch
Patch7:		egoboo-2.8.1-mandriva-use-datadir-for-config.patch
BuildRequires:	SDL-devel
BuildRequires:	SDL_mixer-devel
BuildRequires:	SDL_ttf-devel
BuildRequires:	SDL_image-devel
BuildRequires:	mesaglu-devel
BuildRequires:	imagemagick
BuildRequires:	physfs-devel
Requires:	egoboo-data = %{epoch}:%{version}

%description
Egoboo is an open source project, using OpenGL and SDL(Simple
DirectMedia Layer) libraries. It is a 3d dungeon role playing
game in the spirit of NetHack. Nice colorful graphics, and
detailed models(using Quake2 modeling tools) make this game
stand out in the gaming open-source community.

%prep
%setup -q
%patch1 -p1 -b .destdir~
%patch4 -p0 -b .enet_lib~
%patch6 -p1 -b .gl_ext~
%patch7 -p1 
perl -pi.add_lm -e 's/(-l)/-lm $1/ if /^LDFLAGS :=/' game/Makefile

%build
%make -C enet OPT='-Wall %{optflags}'
%make all OPT='-DPREFIX=\"%{_prefix}\" -D_NIX_PREFIX -Wall %{optflags}'

%install
%makeinstall_std

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Name=Egoboo
Comment=A top down graphical (3D) RPG in the spirit of Nethack
Exec=%{_gamesbindir}/egoboo
Icon=egoboo
Terminal=false
StartupNotify=false
Type=Application
Categories=Game;RolePlaying;AdventureGame;
EOF

mkdir -p %{buildroot}/%{_iconsdir}
cp %{SOURCE1} %{buildroot}%{_iconsdir}/%{name}.png

%clean

%files
%defattr(-,root,root)
%doc README.Linux game/change.log
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}/controls.txt
%{_gamesdatadir}/%{name}/setup.txt
%{_datadir}/applications/egoboo.desktop
%{_iconsdir}/%{name}.png




%changelog

* Fri Jan 11 2013 umeabot <umeabot> 1:2.8.1-4.mga3
+ Revision: 349540
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Tue Feb 14 2012 zezinho <zezinho> 1:2.8.1-3.mga2
+ Revision: 208977
- fix paths

* Sat Jan 21 2012 shlomif <shlomif> 1:2.8.1-2.mga2
+ Revision: 199233
- Fix regressions in gcc/ld and in ImageMagick's convert.
  Add "-lm" and handle the multi-.png output of ImageMagick's .ico->.png
  conversion.

  + zezinho <zezinho>
    - rediff patch add-destdir
    - new version

* Sat Jun 11 2011 zezinho <zezinho> 1:2.8.0-1.mga2
+ Revision: 103600
- imported package egoboo