%define name xu4 %define oname u4 %define version 0.9 %define release 1mdk Name: %{name} Version: %{version} Release: %{release} URL: http://xu4.sourceforge.net/ Source0: http://download.sourceforge.net/xu4/%{name}-%{version}.tar.bz2 Source11: %{name}-16x16.png Source12: %{name}-32x32.png Source13: %{name}-48x48.png #Patch0: %{name}-optflags.patch.bz2 Patch1: %{name}-0.9-paths.patch.bz2 Patch2: %{name}-missingflags-fix.patch.bz2 License: GPL Group: Games/Adventure Summary: Ultima IV Recreated BuildRequires: SDL_mixer-devel libogg-devel XFree86-devel BuildRequires: libxml2-devel smpeg-devel zlib-devel png-devel kdelibs-common BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot Epoch: 1 %description XU4 is a recreation of the classic computer game Ultima IV. The purpose of the project is to make it easy and convenient to play on modern operating systems. xu4 is primarily inspired by the much more ambitious project Exult. Linux is the primary development platform, but it should be trivial to port to any system with SDL support. XU4 isn't a new game based on the Ultima IV story -- it is a faithful recreation of the old game, right up to the crappy graphics. If you are looking for a game with modern gameplay and graphics, this is not it -- yet. New features that improve the gameplay and keep with the spirit of the original game will be added. The actual data files from Ultima 4 are loaded at runtime, which means that a copy of Ultima 4 for DOS must be present at runtime. Fortunately, Ultima IV is available as closed-source freeware on the internet (legally). A copy is mirrored at xu4.sourceforge.net. It is also available from http://plf.zarb.org, http://www.zip.com.au/~mfleming/ultima/u4download.html, http://members.tripod.com/~hardwire1/ultima4.zip, http://www.members.aol.com/tommage/UltimaPage/ultima4.zip, or http://www.nightfall.org/~deep/ultima/main.html among many other sites. Once downloaded, it must be unzipped in %{_gamesdatadir}/%{oname}/ultima4 %prep %setup -n %{oname} -q #%patch0 -p0 %patch1 -p1 -b .paths %patch2 -p0 -b .flags %build cd src && %make DEBUGCFLAGS="$RPM_OPT_FLAGS" %install %{__rm} -rf $RPM_BUILD_ROOT cd src && %makeinstall bindir=$RPM_BUILD_ROOT%{_gamesbindir} desktopdir=$RPM_BUILD_ROOT%{_datadir}/applnk %{__install} -d $RPM_BUILD_ROOT%{_menudir} %{__perl} -pi -e "s#Exec=u4#Exec=%{_gamesbindir}/u4#g" $RPM_BUILD_ROOT/%{_datadir}/applications/%{oname}.desktop kdedesktop2mdkmenu.pl %{name} "Amusement/Adventure" $RPM_BUILD_ROOT/%{_datadir}/applications/%{oname}.desktop $RPM_BUILD_ROOT/%{_menudir}/%{name} kde %{__install} -d $RPM_BUILD_ROOT%{_gamesdatadir}/%{oname}/ultima4 %{__install} -m644 %{SOURCE11} -D ${RPM_BUILD_ROOT}%{_miconsdir}/%{oname}.png %{__install} -m644 %{SOURCE12} -D ${RPM_BUILD_ROOT}%{_iconsdir}/%{oname}.png %{__install} -m644 %{SOURCE13} -D ${RPM_BUILD_ROOT}%{_liconsdir}/%{oname}.png %post %update_menus %postun %clean_menus %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc README AUTHORS COPYING doc/*.txt %{_gamesbindir}/* %{_datadir}/pixmaps/%{oname}.bmp %{_datadir}/pixmaps/%{oname}.png %dir %{_gamesdatadir}/%{oname} %{_gamesdatadir}/%{oname}/* %{_datadir}/applications/%{oname}.desktop %{_iconsdir}/%{oname}.png %{_liconsdir}/%{oname}.png %{_miconsdir}/%{oname}.png %{_menudir}/%{name} %changelog * Fri Apr 02 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 0.9-1mdk - 0.9 - regenerate P0 * Wed Nov 26 2003 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 0.8-1mdk - 0.8 - don't bzip2 icons in src.rpm - fix buildrequires (lib64..) - regenerate P0 * Fri May 23 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 0.6-2mdk - fixed buildrequires (thx to stefans bot) * Fri Apr 25 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 0.6-2mdk - fixed buildrequires * Fri Apr 11 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 0.6-1mdk - 0.6 - drop Patch0, might as well just override the DEBUGCFLAGS with our optflags since we don't want to compile with the default DEBUGCFLAGS anyways - added a few new files - fix missing sdl flags(Patch2) - fix BuildRequires - corrected group - updated Patch1 * Tue Mar 11 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 0.5-2mdk - Updated BuildRequires * Sat Feb 22 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 0.5-1mdk - 0.5 - Updated Patch #0 and #1 - Epoch tag to deal with different versioning * Sat Feb 01 2003 Lenny Cartier <lenny@mandrakesoft.com 0.08-3mdk - rebuild * Tue Nov 19 2002 Lenny Cartier <lenny@mandrakesoft.com> 0.08-2mdk - from Per Øyvind Karlsen <peroyvind@delonic.no> : - Fixed a typo in Patch #1 (from Andrew Taylor <andrewtaylor@users.sourceforge.net>) * Thu Nov 14 2002 Lenny Cartier <lenny@mandrakesoft.com> 0.08-1mdk - from Per Øyvind Karlsen <peroyvind@delonic.no> : - First mdk release * Mon Sep 25 2002 Andrew Taylor <andrewtaylor@users.sourceforge.net> - added quiet flag (-q) to %setup rule to reduce visual clutter * Mon Jun 4 2002 Andrew Taylor <andrewtaylor@users.sourceforge.net> - added dumpsavegame binary * Mon Jun 4 2002 Andrew Taylor <andrewtaylor@users.sourceforge.net> - added music files * Mon May 13 2002 Andrew Taylor <andrewtaylor@users.sourceforge.net> - added new doc files * Mon May 6 2002 Andrew Taylor <andrewtaylor@users.sourceforge.net> - added pixmaps, desktop entry * Mon Apr 23 2002 Andrew Taylor <andrewtaylor@users.sourceforge.net> - updated description * Mon Apr 8 2002 Andrew Taylor <andrewtaylor@users.sourceforge.net> - initial revision