%global prelease .beta1 %global gittag abb985e755ccf858149294868eff8a9a9feca67e %global gittag_short .abb985e Name: godot-engine Version: 1.0%{?prelease} Release: 1%{?gittagshort}%{?dist} Summary: A fully featured open-source game engine Group: Amusements/Games License: MIT URL: http://www.godotengine.org Source0: https://github.com/okamstudio/godot/archive/abb985e755ccf858149294868eff8a9a9feca67e.tar.gz Patch0: 0001-Removed-unneeded-c-files-from-the-freetype-build-rul.patch Patch1: 0002-Dynamic-Linking-support-added-to-the-buildsystem.patch Patch2: 0003-Remove-unecessary-dependencies.patch Patch3: 0004-Fix-CCFLAGS-handling.patch BuildRequires: scons BuildRequires: libwebp-devel BuildRequires: speex-devel BuildRequires: libvorbis-devel BuildRequires: libtheora-devel BuildRequires: libpng-devel BuildRequires: zlib-devel BuildRequires: minizip-devel BuildRequires: freetype-devel #Requires: %description Godot is a fully featured game engine. It focuses on having great tools, and a visual oriented workflow that can export to PC, Mobile and Web platforms with no hassle. The editor, language and APIs are feature rich, yet simple to learn, allowing you to become productive in a matter of hours. %prep %setup -qn godot-abb985e755ccf858149294868eff8a9a9feca67e %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %build # Build Configuration GODOT_TARGET=release GODOT_DYNLINK=yes # Feature configuration GODOT_BUILTIN_ZLIB=no GODOT_DDS=no GODOT_DEFAULT_GUI_THEME=yes GODOT_DISABLE_3D=no GODOT_DISABLE_ADVANCED_GUI=no GODOT_FREETYPE=yes GODOT_JPEG=yes GODOT_LUA=no GODOT_MINIZIP=yes GODOT_MUSEPACK=yes GODOT_NEDMALLOC=yes GODOT_OLD_SCENES=yes GODOT_OPENGL=yes GODOT_PNG=yes GODOT_PVR=yes GODOT_PYTHON=no GODOT_SCRIPT=yes GODOT_SPEEX=yes GODOT_SQUIRREL=no GODOT_SQUISH=no GODOT_THEORA=yes GODOT_TOOLS=yes GODOT_VORBIS=yes GODOT_WEBP=yes GODOT_XML=yes scons %{?_smp_mflags} \ target=$GODOT_TARGET \ dynlink=$GODOT_DYNLINK \ builtin_zlib=$GODOT_BUILTIN_ZLIB \ dds=$GODOT_DDS \ default_gui_theme=$GODOT_DEFAULT_GUI_THEME \ disable_3d=$GODOT_DISABLE_3D \ disable_advanced_gui=$GODOT_DISABLE_ADVANCED_GUI \ freetype=$GODOT_FREETYPE \ gdscript=$GODOT_SCRIPT \ jpg=$GODOT_JPEG \ lua=$GODOT_LUA \ minizip=$GODOT_MINIZIP \ musepack=$GODOT_MUSEPACK \ nedmalloc=$GODOT_NEDMALLOC \ old_scenes=$GODOT_OLD_SCENES \ opengl=$GODOT_OPENGL \ png=$GODOT_PNG \ pvr=$GODOT_PVR \ python=$GODOT_PYTHON \ speex=$GODOT_SPEEX \ squirrel=$GODOT_SQUIRREL \ squish=$GODOT_SQUISH \ theora=$GODOT_THEORA \ tools=$GODOT_TOOLS \ vorbis=$GODOT_VORBIS \ webp=$GODOT_WEBP \ xml=$GODOT_XML \ LINKFLAGS="-lpng16 -lspeex -lwebp -lvorbisfile -lvorbis -logg -ltheoradec" \ CCFLAGS="%{?optflags}" \ CFLAGS="%{?optflags}" %install #make install DESTDIR=%{buildroot} install -m 0755 -d %{buildroot}/%{_docdir}/%{name} install -m 0755 -d %{buildroot}/%{_bindir} install -m 0755 ./bin/godot_rel %{buildroot}/%{_bindir}/godot install -m 0755 ./bin/godot_server %{buildroot}/%{_bindir}/godot_server %files %doc %{_bindir}/godot %{_bindir}/godot_server %changelog * Tue Feb 11 2014 Vinzenz Feenstra - 1.0.beta1-1.abb985e - Initial release