Name: dangerdeep Version: 0.3.0 Release: alt1 Summary: Danger from the Deep - WW2 german submarine simulation License: GPL v2 Group: Games/Other Url: http://dangerdeep.sourceforge.net Source: http://dl.sourceforge.net/dangerdeep/%name-%version.tar.gz Patch1: dangerdeep-X11.patch Patch2: dangerdeep-0.2.0-alt-scons.patch Packager: Michael Shigorin Requires: dangerdeep-data = %version # Automatically added by buildreq on Mon Jan 01 2007 BuildRequires: cvs esound flex gcc-c++ ghostscript-utils ImageMagick libfftw3-devel libglut-devel libmesa-devel libSDL-devel libSDL_image-devel libSDL_mixer-devel libSDL_net-devel libX11-devel python-modules-encodings rcs scons tetex-latex %description Danger from the deep (aka dangerdeep) is a Free / Open Source World War II german submarine simulation. It is currently available for Linux/i386 and Windows, but since it uses SDL/OpenGL it should be portable to other operating systems or platforms. This game is planned as tactical simulation and will be as realistic as our time and knowledge of physics allows. It's current state is ALPHA, but it is playable. %package utils Summary: Danger from the Deep - utils Group: Games/Other Requires: %name = %version-%release %description utils Danger from the Deep - utilities %prep %setup -q %patch1 -p1 %patch2 -p1 sed -i 's@-g -O2@%optflags@' SConstruct sed -i 's@/usr/local/bin@%_gamesbindir@' SConstruct sed -i 's@/usr/local/share/dangerdeep@%_gamesdatadir/dangerdeep@' SConstruct %build scons usex86sse=-1 for i in 16 32 48; do convert -size ${i}x$i logo.xpm -resize ${i}x$i %name-${i}x$i.png done %install install -pD -m755 build/linux/%name %buildroot%_gamesbindir/%name install -pD -m644 doc/man/%name.6 %buildroot%_man6dir/%name.6 install -pD -m644 logo.xpm %buildroot%_pixmapsdir/%name.xpm install -pD -m644 %name-16x16.png %buildroot/%_miconsdir/%name.png install -pD -m644 %name-32x32.png %buildroot/%_iconsdir/%name.png install -pD -m644 %name-48x48.png %buildroot/%_liconsdir/%name.png mkdir -p %buildroot%_bindir install build/linux/{crosssection,damagemodel,oceantest,portal,viewmodel} %buildroot%_bindir/ mkdir -p %buildroot%_desktopdir cat > %buildroot%_desktopdir/alt-%name.desktop << EOF [Desktop Entry] Encoding=UTF-8 Name=Danger from the deep Comment=WW2 german submarine simulation Exec=%_gamesbindir/%name Icon=%name Terminal=false Type=Application StartupNotify=false Categories=Game; EOF %post %update_menus %postun %clean_menus %files %doc CREDITS ChangeLog README %_gamesbindir/%name %_desktopdir/*.desktop %_man6dir/%name.6* %_pixmapsdir/%name.xpm %_iconsdir/%name.png %_iconsdir/hicolor/*/*/*.png %files utils %_bindir/crosssection %_bindir/damagemodel %_bindir/oceantest %_bindir/portal %_bindir/viewmodel # TODO: # - optionally (by default for x86_64?) enable MMX/SSE %changelog * Wed Jun 13 2007 Michael Shigorin 0.3.0-alt1 - 0.3.0 * Sun Apr 22 2007 Michael Shigorin 0.2.0-alt2 - fixed #10702 (thanks raorn@ again; it would be especially pity if dangerdeep-data-0.2-alt2 -- which also fixed this even if in less logical manner -- did hit Sisyphus with its 70M due to me being careless...) * Mon Jan 01 2007 Michael Shigorin 0.2.0-alt1 - initial build for ALT Linux Sisyphus (spec based on PLD and Mandriva 2007 contrib) - data moved to separate package (different source, in theory could be updated asynchronously upstream) - massive spec cleanup - buildreq - added SConstruct patch to cope with missing /proc/cpuinfo - adjusted package Group: