# # spec file for package fife # # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2011 Nelson Marques # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define sover 0_4_1 %define oname fifengine Name: fife Version: 0.4.1 Release: 0 Summary: A powerful 2D game engine License: LGPL-2.1+ Group: Amusements/Games/Other Url: http://www.fifengine.de Source: https://github.com/fifengine/fifengine/archive/%{version}/%{oname}-%{version}.tar.gz # PATCH-FIX-UPSTREAM installation-directories.patch - https://github.com/fifengine/fifengine/commit/063f4e111624db75666760176e15e7cee31fe279 Patch0: installation-directories.patch # PATCH-FIX-UPSTREAM install-rocket-header.patch - https://github.com/fifengine/fifengine/commit/2725307aa0d0a61e022239cd69ad3e830afd55e7 Patch1: install-rocket-header.patch # PATCH-FIX-UPSTREAM link-cegui.patch - https://github.com/fifengine/fifengine/commit/5c912d2362c4442c97a3a08eecd5b116338ba260 Patch2: link-cegui.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: boost-devel BuildRequires: cmake BuildRequires: fifechan-devel BuildRequires: gcc-c++ BuildRequires: libXcursor-devel BuildRequires: libpng-devel BuildRequires: swig BuildRequires: tinyxml-devel BuildRequires: pkgconfig(CEGUI-0) BuildRequires: pkgconfig(SDL2_image) BuildRequires: pkgconfig(SDL2_ttf) BuildRequires: pkgconfig(allegro) BuildRequires: pkgconfig(gl) BuildRequires: pkgconfig(glew) BuildRequires: pkgconfig(ogg) BuildRequires: pkgconfig(openal) BuildRequires: pkgconfig(python) BuildRequires: pkgconfig(sdl2) BuildRequires: pkgconfig(vorbis) BuildRequires: pkgconfig(zlib) %description FIFE stands for Flexible Isometric Free Engine and is a cross platform game creation framework. It provides you with the ability to create a game using Python interfaces. %package -n libfife%{sover} Summary: System shared libraries for fife engine games Group: System/Libraries %description -n libfife%{sover} FIFE stands for Flexible Isometric Free Engine and is a cross platform game creation framework. It provides you with the ability to create a game using Python interfaces. %package -n python-%{name} Summary: Python extensions for the fife engine Group: Amusements/Games/Other Requires: python %description -n python-%{name} FIFE stands for Flexible Isometric Free Engine and is a cross platform game creation framework. It provides you with the ability to create a game using Python interfaces. %package devel Summary: Development files for %{name} engine Group: Development/Libraries/Other Requires: libfife%{sover} = %{version} Requires: python-fife = %{version} %description devel FIFE stands for Flexible Isometric Free Engine and is a cross platform game creation framework. It provides you with the ability to create a game using Python interfaces. %prep %setup -q -n %{oname}-%{version} %patch0 -p1 %patch1 -p1 %patch2 -p1 %build %cmake \ -Dbuild-library=ON \ -Drend-camzone=ON \ -Drend-grid=ON \ -Dlibrocket=ON \ -Dcegui=ON \ -Dbuild-python=ON \ -DPYTHON_SITE_PACKAGES=%{python_sitearch} make VERBOSE=1 %{?_smp_mflags} %install %cmake_install # Blocked by https://github.com/fifengine/fifengine/issues/879 # %%check # export PYTHONPATH="%%{buildroot}%%{python_sitearch}" # python ./run_tests.py -a %post -n libfife%{sover} -p /sbin/ldconfig %postun -n libfife%{sover} -p /sbin/ldconfig %files -n libfife%{sover} %defattr(-,root,root) %if ( 0%{?suse_version} == 1315 && 0%{?sle_version} == 120100 ) || ! 0%{?is_opensuse} # Leap 42.1 or SLE %doc LICENSE.md AUTHORS %else %license LICENSE.md AUTHORS %endif %{_libdir}/*.so.* %files -n python-%{name} %defattr(-,root,root) %{python_sitearch}/* %files devel %defattr(-,root,root) %doc CHANGELOG.md README.md %{_includedir}/fife/ %{_libdir}/*.so %changelog