85 lines
2.4 KiB
RPMSpec
85 lines
2.4 KiB
RPMSpec
%define name openra
|
|
%define version 20100801.2
|
|
Name: %{name}
|
|
Version: %{version}
|
|
Release: 1
|
|
Summary: Open Source rebuild of the Red Alert game engine using Mono/OpenGL.
|
|
License: GPL3
|
|
URL: http://open-ra.org
|
|
Group: Amusements/Games
|
|
Packager: Matthew Bowra-Dean <matthew@ijw.co.nz>
|
|
Requires: mono-core mono-devel SDL freetype2 openal Mesa cg
|
|
Prefix: /usr
|
|
Source: %{name}-%{version}.tar.gz
|
|
Buildroot: /tmp/openra
|
|
|
|
%description
|
|
A multiplayer reimplementation of the Command & Conquer: Red Alert game
|
|
engine in .NET/Mono, OpenGL, OpenAL and SDL. Has extensive modding support
|
|
and includes Command & Conquer as an official mod.
|
|
|
|
%build
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
cp -r ~/openra-package/built/ $RPM_BUILD_ROOT
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%post
|
|
cd $RPM_BUILD_ROOT/usr/share/openra
|
|
while true
|
|
do
|
|
read -s -n1 -p "Download and install RA packages? [Y/n]"
|
|
case $REPLY in
|
|
y|Y|"")
|
|
mono OpenRA.Utility.exe --download-packages=ra
|
|
break;;
|
|
n|N)
|
|
echo "The RA packages will need to be manually extracted from http://open-ra.org/get-dependency.php?file=ra-packages \
|
|
to /usr/share/openra/mods/ra/packages before the RA mod will work."
|
|
break;;
|
|
*) echo "Please enter y or n.";;
|
|
esac
|
|
done
|
|
|
|
while true
|
|
do
|
|
read -s -n1 -p "Download and install C&C packages? [Y/n]"
|
|
case $REPLY in
|
|
y|Y|"")
|
|
mono OpenRA.Utility.exe --download-packages=cnc
|
|
break;;
|
|
n|N)
|
|
echo "The C&C packages will need to be manually extracted from http://open-ra.org/get-dependency.php?file=cnc-packages \
|
|
to /usr/share/openra/mods/cnc/packages before the C&C mod will work."
|
|
break;;
|
|
*) echo "Please enter y or n.";;
|
|
esac
|
|
done
|
|
|
|
gacutil -i thirdparty/Tao/Tao.Cg.dll
|
|
gacutil -i thirdparty/Tao/Tao.FreeType.dll
|
|
gacutil -i thirdparty/Tao/Tao.OpenAl.dll
|
|
gacutil -i thirdparty/Tao/Tao.OpenGl.dll
|
|
gacutil -i thirdparty/Tao/Tao.Sdl.dll
|
|
|
|
%files
|
|
/usr/bin/openra
|
|
/usr/share/openra/*.exe
|
|
/usr/share/openra/*.ttf
|
|
/usr/share/openra/*.dll
|
|
/usr/share/openra/VERSION
|
|
/usr/share/openra/shaders/
|
|
/usr/share/openra/mods/
|
|
/usr/share/openra/thirdparty/
|
|
/usr/share/applications/openra*
|
|
/usr/share/menu/openra*
|
|
/usr/share/pixmaps/openra.32.xpm
|
|
/usr/share/icons/hicolor/16x16/apps/openra.png
|
|
/usr/share/icons/hicolor/32x32/apps/openra.png
|
|
/usr/share/icons/hicolor/48x48/apps/openra.png
|
|
/usr/share/icons/hicolor/64x64/apps/openra.png
|
|
/usr/share/icons/hicolor/128x128/apps/openra.png
|