Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37655714
en ru br
ALT Linux repos
S:2.5-alt6
D:2.3-alt1.svn20071014.3
5.0: 2.2.1-alt1
4.0: 2.1.1-alt1.4

Group :: Games/Strategy
RPM: ufoai

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define svnversion svn20071014
%define _localedir %_datadir/locale
%define origname ufoai

Name: %origname
Version: 2.3
Release: alt1.%svnversion.3
License: GPL
Packager: Alexey Shentzev <ashen at altlinux.org>
Url: https://ufoai.svn.sourceforge.net/svnroot/ufoai/ufoai/trunk/
Source0: ufoai-%svnversion-mini.tar.bz2

# Create from SVN arhive

# with Source4
#Source4: Create_Source_arhive.sh

Source1: %origname.png
Source2: ufoai_ru_po.tar.bz2
Source3: 0maps.pk3

Summary: This is the Data Pack to strategy game UFO2 :Alien Invasion
Group: Games/Strategy
ExclusiveArch: %ix86 x86_64

Patch2: ufoai-svn20070726-rootdir.patch
Patch3: ufoai-svn20070730-locale.patch
Patch4: ufoai-svn20070730-nice.patch
Patch5: ufoai-svn20071014-libdir.patch
Patch7: ufoai-svn20071014-as-need.patch

# Automatically added by buildreq on Sun Oct 14 2007

BuildRequires: libSDL-devel libSDL_ttf-devel libcurl-devel libjpeg-devel libmesa-devel libncurses-devel libpng-devel libvorbis-devel
BuildRequires: latex2html


Group: Games/Strategy
BuildArch:  %ix86 x86_64
ExclusiveArch: %ix86 x86_64
BuildPreReq: libarts-devel libjpeg-devel libmesa-devel
BuildPreReq: libcurl-devel libSDL-devel libSDL_ttf-devel libSDL_mixer-devel
Requires: ufoai-music = %version
Requires: ufoai-maps  = %version
Requires: ufoai-data  = %version
Summary: UFO: ALIEN INVASION is a strategy game

%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 tools
Summary: This is the Music Pack to strategy game UFO2 :Alien Invasion
Group: Games/Strategy
ExclusiveArch: %ix86 x86_64

%description tools
This is the Map-Pack to UFO:AI. It is mandatory to play.

%description tools -l ru_RU.UTF-8
Maps-файлы для UFO:AI.



%prep
%setup -a2 -n ufoai-mini
#patch2 -p1
#patch3 -p1
#patch4 -p1
%patch5 -p1
%patch7 -p1

%build
autoconf
CC=c89 CFLAGS=-O2 LIBS=-lposix %configure --with-alsa

%make_build
%make_build lang



%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

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%_pixmapsdir/%origname.png

install -D -m 0644 base/game.so %buildroot%_libdir/%origname/game.so

install -D -m 0644 Makefile %buildroot%_datadir/%origname/Makefile


# .desktop

install -d -m 755 %buildroot%_desktopdir/

cat > %buildroot%_desktopdir/%origname.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Type=Application
Exec=/usr/bin/ufoai
Patch=%_libdir/%origname
Icon=%origname
Terminal=false
Name=UFO: Alien Invasion
Comment=Пошаговая стратегия
Categories=StrategyGame;Game
EOF


cat > %buildroot%_bindir/%origname << EOF
#!/bin/sh
cd %_gamesdatadir/ufoai
/usr/games/ufo +set s_libdir %_libdir/%origname +set fs_basedir %_gamesdatadir/%origname/ +set vid_ref sdl +set fs_i18ndir %_localedir
EOF

%find_lang %origname

%post
%update_menus

%postun
%clean_menus


%files -f %origname.lang
%_gamesbindir/ufo
%_libdir/%origname/game.so
%attr(755,root,root) %_bindir/%origname
%_pixmapsdir/%origname.png
%_desktopdir/%origname.desktop

%files  tools
%_gamesbindir/ufomaster
%_gamesbindir/ufo2map
%_gamesbindir/ufoded
%_gamesbindir/qdata
%_datadir/%origname/Makefile

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin