%define svnversion svn20071014 %define _localedir %_datadir/locale %define origname ufoai #define maps 1 Name: %origname-data Version: 2.3 Release: alt1.%svnversion License: GPL Packager: Alexey Shentzev Url: https://ufoai.svn.sourceforge.net/svnroot/ufoai/ufoai/trunk/ Source0: %origname-%svnversion.tar.bz2 Summary: This is the Data Pack to strategy game UFO2 :Alien Invasion Source1: 0maps.pk3 Source2: ufoai-data-Makefile.tar.bz2 Group: Games/Strategy ExclusiveArch: %ix86 x86_64 BuildArch: noarch Patch2: ufoai-svn20070726-rootdir.patch Patch4: ufoai-svn20070730-nice.patch %ifdef maps BuildPreReq: libarts-devel libjpeg-devel libmesa-devel BuildPreReq: libcurl-devel libSDL-devel libSDL_ttf-devel libSDL_mixer-devel BuildRequires: libjpeg-devel libmesa-devel libncurses-devel libpng-devel libvorbis-devel %endifs # Automatically added by buildreq on Sun Oct 14 2007 BuildRequires: latex2html zip %description This is the Data Pack to UFO:AI %description -l ru_RU.UTF-8 Данные для игры UFO:AI %package -n %origname-music Summary: This is the Music Pack to strategy game UFO2 :Alien Invasion Group: Games/Strategy BuildArch: noarch ExclusiveArch: %ix86 %package -n %origname-maps Summary: This is the Maps Pack to strategy game UFO2 :Alien Invasion Group: Games/Strategy BuildArch: noarch ExclusiveArch: %ix86 %ifdef maps BuildPreReq: %origname-tools %endif %description -n %origname-maps This is the Map-Pack to UFO:AI. It is mandatory to play. %description -n %origname-maps -l ru_RU.UTF-8 Maps-файлы для UFO:AI. %description -n %origname-music This is the Music Pack to UFO:AI %description -n %origname-music -l ru_RU.UTF-8 Музыка для игры UFO:AI %prep %setup -a2 -n %origname %patch2 -p1 %patch4 -p1 %build # Create Makefile #configure --build=%_arch-alt-linux --host=%_arch-alt-linux # replace ufoai-data-Makefile.tar.bz2 %ifdef maps %make_build maps %endif pushd src/docs/tex %make_build pushd pushd base ./archives.sh popd %install #make_build install ROOTDIR=%buildroot DATADIR=%_gamesdatadir/%origname BINDIR=%_gamesbindir/ install -d -m 755 %buildroot%_gamesdatadir/%origname/base install -d -m 755 %buildroot%_gamesbindir install -d -m 755 %buildroot%_bindir install -d -m 755 %buildroot%_localedir install -D -m 0644 base/*.{pk3,txt} %buildroot%_gamesdatadir/%origname/base %ifndef maps install -D -m 0644 %SOURCE1 %buildroot%_gamesdatadir/%origname/base %endif %files %doc README CONTRIBUTORS src/docs/tex/ufo-manual_EN.pdf %dir %_gamesdatadir/%origname %_gamesdatadir/%origname/base/0base.pk3 %_gamesdatadir/%origname/base/0models.pk3 %_gamesdatadir/%origname/base/0pics.pk3 %_gamesdatadir/%origname/base/0ufos.pk3 %_gamesdatadir/%origname/base/0media.pk3 %_gamesdatadir/%origname/base/*.txt %files -n %origname-maps %_gamesdatadir/%origname/base/0maps.pk3 %files -n %origname-music %_gamesdatadir/%origname/base/0music.pk3 %_gamesdatadir/%origname/base/0snd.pk3 %changelog * Sun Oct 14 2007 Hihin Ruslan 2.3-alt1.svn20071014 - 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