%define svnversion svn20070730 %define _localedir %_datadir/locale Name: ufoai Version: 2.2 Release: alt1.%svnversion License: GPL Packager: Alexey Shentzev Url: https://ufoai.svn.sourceforge.net/svnroot/ufoai/ufoai/trunk/ Group: Games/Strategy BuildPreReq: libarts-devel libjpeg-devel libmesa-devel BuildPreReq: libcurl-devel libSDL-devel libSDL_ttf-devel Requires: ufoai-music = %version Requires: ufoai-maps = %version Requires: ufoai-data = %version Summary: UFO: ALIEN INVASION is a strategy game Source0: %name-%svnversion.tar.bz2 Source1: %name.png Source2: ufoai_ru_po.tar.bz2 #Source3: #name ExclusiveArch: %ix86 x86_64 BuildArch: %ix86 x86_64 Patch1: ufoai-2.1.1-SDL.patch Patch2: ufoai-svn20070726-rootdir.patch Patch3: ufoai-svn20070730-locale.patch Patch4: ufoai-svn20070730-nice.patch # Automatically added by buildreq on Tue Oct 02 2007 BuildRequires: libpng-devel libvorbis-devel BuildRequires: packages-info-i18n-common tetex-context tetex-latex zip %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 пошаговая стратегия, борьба с инопланетным вторжением на матушку Землю. Вы явлеетесь участником спецкоманды по борьбе с инопланетным вторжением на планету Земля, созданной для противостояния неизвестной угрозе. Для достижения успеха Вам необходимо не только выигрывать битвы, но и изучать инопланетян, их цели, технологии, оружие. %package music Summary: This is the Music Pack to strategy game UFO2 :Alien Invasion Group: Games/Strategy BuildArch: noarch ExclusiveArch: %ix86 %package maps Summary: This is the Maps Pack to strategy game UFO2 :Alien Invasion Group: Games/Strategy BuildArch: noarch ExclusiveArch: %ix86 %package data Summary: This is the Data Pack to strategy game UFO2 :Alien Invasion Group: Games/Strategy BuildArch: noarch ExclusiveArch: %ix86 %description data This is the Data Pack to UFO:AI %description data -l ru_RU.UTF-8 Данные для игры UFO:AI %description maps This is the Map-Pack to UFO:AI. It is mandatory to play. %description maps -l ru_RU.UTF-8 Maps-файлы для UFO:AI. %description music This is the Music Pack to UFO:AI %description music -l ru_RU.UTF-8 Музыка для игры UFO:AI %prep %setup -n %name #patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %build %configure --with-alsa --localedir=%_datadir/locale --libdir=%_libdir/%name \ --datadir=%_gamesdatadir/%name --bindir=%_gamesbindir/ #configure LDFLAFS=--no-as-need %make_build %make_build lang #make_build maps pushd src/docs/tex make pushd pushd base ./archives.sh popd %install #make_build install ROOTDIR=%buildroot DATADIR=%_gamesdatadir/%name BINDIR=%_gamesbindir/ install -d -m 755 %buildroot%_gamesdatadir/%name/base install -d -m 755 %buildroot%_gamesbindir install -d -m 755 %buildroot%_bindir install -d -m 755 %buildroot%_localedir pushd base/i18n for dir in *; do install -D -m 644 $dir/LC_MESSAGES/ufoai.mo %buildroot%_localedir/$dir/LC_MESSAGES/ufoai.mo; done popd install -D -m 0755 ufo %buildroot%_gamesbindir/ufo install -D -m 0755 ufo %buildroot%_gamesbindir/ufo2map install -D -m 0755 ufo %buildroot%_gamesbindir/ufoded install -D -m 0755 ufo %buildroot%_gamesbindir/ufomaster install -D -m 0755 ufo %buildroot%_gamesbindir/qdata install -D -m 0644 %SOURCE1 %buildroot%_datadir/pixmaps/%name.png install -D -m 0644 base/game.so %buildroot%_libdir/%name/game.so install -D -m 0644 base/* %buildroot%_gamesdatadir/%name/base # .desktop install -d -m 755 %buildroot%_desktopdir/ cat > %buildroot%_desktopdir/%name.desktop << EOF [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 EOF cat > %buildroot%_bindir/%name << EOF #!/bin/sh cd /usr/share/games/ufoai /usr/games/ufo +set s_libdir /usr/share/games/ufoai +set fs_basedir /usr/share/games/ufoai +set vid_ref sdl +set fs_i18ndir /usr/share/locale EOF %find_lang %name %post %update_menus %postun %clean_menus %files -f %name.lang %doc README CONTRIBUTORS src/docs/tex/ufo-manual_EN.pdf %_gamesbindir/ufo %_gamesbindir/ufomaster %_gamesbindir/ufo2map %_gamesbindir/ufoded %_gamesbindir/qdata %_libdir/%name/game.so %attr(755,root,root) %_bindir/%name %_datadir/pixmaps/%name.png %_datadir/applications/%name.desktop %files data %dir %_gamesdatadir/%name %_gamesdatadir/%name/base/0base.pk3 %_gamesdatadir/%name/base/0models.pk3 %_gamesdatadir/%name/base/0pics.pk3 %_gamesdatadir/%name/base/0ufos.pk3 %_gamesdatadir/%name/base/0media.pk3 %files maps %_gamesdatadir/%name/base/0maps.pk3 %files music %_gamesdatadir/%name/base/0music.pk3 %_gamesdatadir/%name/base/0snd.pk3 %changelog * Tue Oct 02 2007 Hihin Ruslan 2.2-alt1.svn20070730 - SVN version * 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