File alien8.spec of Package alien8
Name: alien8
Version: 1.0
Release: 1
Summary: Remake of the game of same name from Ultimate
License: Freeware
Group: Amusements/Games
URL: http://retrospec.sgn.net/users/ignacio/a8i.htm
# http://retrospec.sgn.net/users/ignacio/downloads/alien8_f.zip
Source0: %{name}_f.tar.bz2
# http://retrospec.sgn.net/download.php?link=alien8&url=download/files/Alien8.zip
Source1: Alien8.tar.bz2
Source2: %{name}.png
Patch0: %{name}-%{version}-dirs.patch
Patch1: %{name}-%{version}-build.patch
BuildRequires: liballeg-devel fmodex-devel libcurl-devel pkg-config
BuildRequires: update-desktop-files
%description
Platform game rendered in isometric projection. In the game, the player takes
control of a robot, Alien 8, whose job is to ensure that all of the
cryogenically frozen passengers on a spaceship remain viable during the ship's
voyage.
%prep
%setup -q -c -a 1
%patch0
%patch1
sed -i 's/^#define INTT_WIN/\/\/#define INTT_WIN/' internet.c
%build
%ifarch x86_64
LIB_SUFFIX=64
%endif
%{__cc} -DINTT_LNX -DDATADIR=\"%{_datadir}/%{name}\" %{optflags} -o %{name} *.c \
-I/usr/include/fmodex $(pkg-config --cflags --libs allegro) \
$(pkg-config --cflags --libs libcurl) -lfmodex$LIB_SUFFIX
%install
%{__install} -p -D -m 0755 %{name} %{buildroot}%{_bindir}/%{name}
%{__install} -d -m 0755 %{buildroot}%{_datadir}/%{name}
%{__install} -p -D -m 0644 Alien8/*.dat %{buildroot}%{_datadir}/%{name}
%suse_update_desktop_file -c %{name} 'Alien 8' 'Alien 8' %{name} %{name} 'Game;ArcadeGame;'
echo 'StartupNotify=false' >> %{buildroot}%{_datadir}/applications/%{name}.desktop
%files
%defattr(0644, root, root, 0755)
%doc Alien8/images Alien8/readme.htm
%lang(es) %doc Alien8/leeme.htm
%attr(0755,root,root) %{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{name}.desktop
%changelog