Name: ufoai Version: 2.1.1 Release: alt1.5 Summary: UFO:AI License: GPL Group: Games/Strategy URL: http://ufoai.ninex.info/ Source0: %name-%version-source.tar.bz2 Source1: %name.png Source2: %name.desktop Source3: %name #Patch0: ref_glx.patch Packager: Alexey Shentzev BuildRequires: libarts-devel libjpeg-devel libmesa-devel libSDL-devel libSDL_ttf-devel packages-info-i18n-common # Automatically added by buildreq on Fri Sep 14 2007 (-bi) Requires: libarts libjpeg libmesa libSDL libSDL_ttf libvorbis libalsa libjpeg libogg packages-info-i18n-common Requires: ufoai-music = %version Requires: ufoai-maps = %version %define ufo_aliases ufo2map ufoded ufomaster qdata %description UFO: ALIEN INVASION is a strategy game featuring tactical combat against hostile alien forces which are about to infiltrate earth at this very moment. You are in command of a small special unit which has been founded to face the alien strike force. To be successful on the long run, you will also have to have a research team study the aliens and their technologies in order to learn as much as possible about their technology, their goals and the aliens themselves. %description -l ru_RU.UTF-8 UFO: ALIEN INVASION пошаговая стратегия, борьба с инопланетным вторжением на матушку Землю. Вы явлеетесь участником спецкоманды по борьбе с инопланетным вторжением на планету Земля, созданной для противостояния неизвестной угрозе. Для достижения успеха Вам необходимо не только выигрывать битвы, но и изучать инопланетян, их цели, технологии, оружие. %prep %setup -n %name-%version-source #patch0 -p1 %build %configure --with-alsa make make lang for i in %ufo_aliases; do ln -s ufo $i done %install install -pD -m755 %buildroot%_bindir/ install -m755 ufo %ufo_aliases %buildroot%_bindir/ install -D -m 0644 %SOURCE1 %buildroot%_datadir/pixmaps/%name.png install -D -m 0644 %SOURCE2 %buildroot%_datadir/applications/%name.desktop install -D -m 0755 %SOURCE3 %buildroot%_bindir/%name install -D -m 0755 snd_sdl.so %buildroot%_libdir/%name/snd_sdl.so install -D -m 0755 snd_alsa.so %buildroot%_libdir/%name/snd_alsa.so install -D -m 0755 snd_oss.so %buildroot%_libdir/%name/snd_oss.so install -D -m 0755 snd_arts.so %buildroot%_libdir/%name/snd_arts.so install -D -m 0755 ref_glx.so %buildroot%_libdir/%name/ref_glx.so install -D -m 0755 ref_sdl.so %buildroot%_libdir/%name/ref_sdl.so cp -pr base %buildroot%_libdir/%name ln -s %_libdir/%name/base/i18n %buildroot%_libdir/%name/i18n # menu cat < %buildroot%_desktopdir/%name.desktop [Desktop Entry] Encoding=UTF-8 Type=Application Exec=ufo +set s_libdir %_libdir/ufoai +set fs_basedir %_libdir/ufoai +set vid_ref sdl Patch=%_libdir/%name Icon=%name Terminal=false Name=UFO: Alien Invasion Comment=Пошаговая стратегия Categories=StrategyGame;Game __MENU__ # FIXME: when .desktop file is added, remember to restore # menu-updating scripts as well #post #update_menus #postun #clean_menus %files %doc README BUGS CONTRIBUTORS COPYING %_bindir/ufo %_bindir/ufomaster %_bindir/ufo2map %_bindir/ufoded %_bindir/qdata %_bindir/%name %_datadir/pixmaps/%name.png %_datadir/applications/%name.desktop # FIXME: what package owns %_libdir/%name/ _directory_? %_libdir/%name/* %changelog * Mon Sep 24 2007 Michael Shigorin 2.1.1-alt1.5 - spec cleanup, including quite uncomfortable stuff * Thu Sep 20 2007 Alexey Shentzev 2.1.1-alt1.4 - add support non english language, add for start from commandline * Tue Sep 11 2007 Alexey Shentzev 2.1.1-alt1 - first build for Alt Linux