Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 91bce1182ebc66952fa79ef52c67c23c > files > 6

egoboo-2.7.5-10.fc15.src.rpm

Name:           egoboo
Version:        2.7.5
Release:        10%{?dist}
Summary:        A top down graphical (3D) RPG in the spirit of Nethack
Group:          Amusements/Games
License:        GPLv3
URL:            http://egoboo.sourceforge.net/
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Source1:        %{name}.desktop
Source2:        KNOWN-BUGS.txt
Patch0:         %{name}-2.7.5-unix.patch
Patch1:         %{name}-2.4.3-opengl-wrapper.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires:  SDL_mixer-devel SDL_ttf-devel SDL_image-devel enet-devel
BuildRequires:  desktop-file-utils
Requires:       %{name}-data = %{version}, opengl-games-utils

%description
Egoboo is a top down rpg in the spirit of Nethack and other games of the
Roguelike genre. It uses OpenGL graphics and will have randomly generated
maps and customizable characters. The objective of the project is to bring the
fun and depth of roguelike gameplay, kicking and screaming, into the third
dimension.


%prep
%setup -q
%patch0 -p1
%patch1 -p1
cp -a %{SOURCE2} .
sed -i 's/\r//g' game/change.log game/Egoboodoc.txt
iconv -f ISO-8859-1 -t UTF8 game/change.log > ChangeLog


%build
# We override ENET_OBJ and LDFLAGS to use the system enet
make -C game -f Makefile.unix ENET_OBJ= \
  CFLAGS="$RPM_OPT_FLAGS `sdl-config --cflags` -DENET11" \
  LDFLAGS="`sdl-config --libs` -lSDL_ttf -lSDL_mixer -lSDL_image -lGL -lGLU -lenet -lm"


%install
rm -rf $RPM_BUILD_ROOT
make -C game -f Makefile.unix ENET_OBJ= PREFIX=$RPM_BUILD_ROOT%{_prefix} \
  install

# below is the desktop file and icon stuff.
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
desktop-file-install --vendor fedora            \
  --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  %{SOURCE1}


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
# note the end-users docs are in the -data package
%doc ChangeLog game/Egoboodoc.txt KNOWN-BUGS.txt
%{_bindir}/%{name}
%{_libexecdir}/%{name}
%{_datadir}/applications/fedora-%{name}.desktop


%changelog
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.5-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Mon Feb 15 2010 Hans de Goede <hdegoede@redhat.com> 2.7.5-9
- Switch to upstream unix tarbal release, which includes our unix patches
- Update URL to point to new upstream site (#559588)
- Fix FTBFS (#564797)

* Sat Dec 12 2009 Rakesh Pandit <rakesh@fedoraproject.org> - 2.7.5-8
- Updated to consume new libenet

* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.5-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.5-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* Sun Jan 18 2009 Rakesh Pandit <rakesh@fedoraproject.org> - 2.7.5-5
- Rebuild for new enet update.

* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.7.5-4
- Autorebuild for GCC 4.3

* Mon Dec 24 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 2.7.5-3
- Second attempt at fixing compilation on big endian archs like powerpc 

* Mon Dec 24 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 2.7.5-2
- Fix compilation on big endian archs like powerpc

* Sun Dec 23 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 2.7.5-1
- New upstream release 2.7.5

* Mon Oct 29 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 2.4.4b-1
- New upstream release 2.4.4b

* Thu Oct 25 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 2.4.3-4
- Fix yet another crash only occuring on i386 and another one only occuring
  when playing a paladin on x86_64 (bz 351171)

* Wed Oct 24 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 2.4.3-3
- Fix several hangs and crashes (bz 351171)

* Tue Oct  9 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 2.4.3-2
- Merge my unix port patches with the one found here:
  http://freegamer.schattenkind.net/index.php?t=msg&th=152
- Change license to GPLv3 after asking upstream for version clarification

* Sat Oct  6 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 2.4.3-1
- Initial Fedora package