%bcond_without fifechan %bcond_without zip %bcond_without logging # Python bindings are broken atm, https://github.com/fifengine/fifengine/issues/984 %bcond_with python Name: fifengine Version: 0.4.1 Release: 1%{?dist} Summary: Multi-platform isometric game engine License: LGPLv2+ URL: http://www.fifengine.net/ Source0: https://github.com/fifengine/fifengine/archive/%{version}/%{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: ninja-build BuildRequires: gcc-c++ BuildRequires: SDL2-devel BuildRequires: SDL2_image-devel BuildRequires: SDL2_ttf-devel BuildRequires: boost-devel BuildRequires: libpng-devel BuildRequires: openal-devel BuildRequires: mesa-libGL-devel BuildRequires: tinyxml-devel %if %{with python} BuildRequires: python2-devel BuildRequires: swig %endif %if %{with fifechan} BuildRequires: fifechan-sdl-devel %if %{with opengl} BuildRequires: fifechan-opengl-devel %endif %endif # Something like optional builddeps BuildRequires: pkgconfig(ogg) BuildRequires: pkgconfig(vorbisfile) %description Flexible Isometric Free Engine (FIFE) is a multi-platform isometric game engine written in C++. It comes with Python bindings allowing users to create games using Python as well as C++. The engine is extendable and enables you to add any feature you can imagine to your project. %package devel Summary: Development libraries and header files for %{name} Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} %description devel %{summary}. %prep %autosetup # https://github.com/fifengine/fifengine/issues/985 sed -i -e 's|${CMAKE_INSTALL_PREFIX}/lib|${CMAKE_INSTALL_PREFIX}/%{_lib}|' CMakeLists.txt %build mkdir %{_target_platform} pushd %{_target_platform} %cmake .. \ -GNinja \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -Dopengl=ON \ -Dfifechan=%{?with_fifechan:ON}%{!?with_fifechan:OFF} \ -Dzip=%{?with_zip:ON}%{!?with_zip:OFF} \ -Dlogging=%{?with_logging:ON}%{!?with_logging:OFF} \ -Dbuild-python=%{?with_python:ON}%{!?with_python:OFF} \ -Dbuild-library=ON \ %{nil} popd %ninja_build -C %{_target_platform} %install %ninja_install -C %{_target_platform} #check # Something too much complicated needed to run test suite %files %license LICENSE.md %doc README.md CHANGELOG.md %{_libdir}/libfife.so.* %files devel %{_libdir}/libfife.so %{_includedir}/fife/ %changelog * Thu Feb 09 2017 Igor Gnatenko - 0.4.1-1 - Initial package