2011-05-11 13:33:53 +00:00
|
|
|
#
|
2011-10-11 16:47:02 +00:00
|
|
|
# spec file for package fife
|
2011-05-11 13:33:53 +00:00
|
|
|
#
|
2023-09-18 15:53:08 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2017-03-24 08:40:17 +00:00
|
|
|
# Copyright (c) 2011 Nelson Marques <nmarques@opensuse.org>
|
2011-05-11 13:33:53 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-02-19 20:27:59 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-05-11 13:33:53 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2019-01-13 13:23:16 +00:00
|
|
|
%define sover 0_4_2
|
2017-03-24 08:40:17 +00:00
|
|
|
%define oname fifengine
|
2011-05-11 13:33:53 +00:00
|
|
|
Name: fife
|
2019-01-13 13:23:16 +00:00
|
|
|
Version: 0.4.2
|
2017-03-24 08:40:17 +00:00
|
|
|
Release: 0
|
2019-01-13 16:46:02 +00:00
|
|
|
Summary: The Flexible Isometric Free Engine, a 2D game engine
|
2019-01-13 13:23:16 +00:00
|
|
|
License: LGPL-2.1-or-later
|
2013-12-26 19:13:27 +00:00
|
|
|
Group: Amusements/Games/Other
|
2019-01-13 14:25:44 +00:00
|
|
|
URL: http://www.fifengine.de
|
2017-03-24 08:40:17 +00:00
|
|
|
Source: https://github.com/fifengine/fifengine/archive/%{version}/%{oname}-%{version}.tar.gz
|
2019-09-18 18:30:06 +00:00
|
|
|
# PATCH-FIX-UPSTREAM swig4.patch -- removed flags that are not supported with swig 4.0
|
|
|
|
# See https://github.com/fifengine/fifengine/commit/d14f232f4cd9a00b05d6872957070e8c020f515d
|
|
|
|
Patch0: swig4.patch
|
2021-10-11 14:56:06 +00:00
|
|
|
# PATCH-FIX-UPSTREAM
|
|
|
|
Patch1: fife-boost_1_77.patch
|
2017-03-24 08:40:17 +00:00
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: fifechan-devel
|
2011-05-11 13:33:53 +00:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libpng-devel
|
2019-01-13 14:25:44 +00:00
|
|
|
BuildRequires: pkgconfig
|
2017-03-24 08:40:17 +00:00
|
|
|
BuildRequires: swig
|
2011-10-11 16:47:02 +00:00
|
|
|
BuildRequires: tinyxml-devel
|
2017-03-24 08:40:17 +00:00
|
|
|
BuildRequires: pkgconfig(SDL2_image)
|
|
|
|
BuildRequires: pkgconfig(SDL2_ttf)
|
2011-05-11 13:33:53 +00:00
|
|
|
BuildRequires: pkgconfig(gl)
|
2017-03-24 08:40:17 +00:00
|
|
|
BuildRequires: pkgconfig(glew)
|
|
|
|
BuildRequires: pkgconfig(ogg)
|
|
|
|
BuildRequires: pkgconfig(openal)
|
2019-01-13 13:23:16 +00:00
|
|
|
BuildRequires: pkgconfig(python3)
|
2017-03-24 08:40:17 +00:00
|
|
|
BuildRequires: pkgconfig(sdl2)
|
2011-05-11 13:33:53 +00:00
|
|
|
BuildRequires: pkgconfig(vorbis)
|
2011-10-11 16:47:02 +00:00
|
|
|
BuildRequires: pkgconfig(zlib)
|
2019-01-13 14:25:44 +00:00
|
|
|
%if 0%{?suse_version} >= 1330
|
|
|
|
BuildRequires: libboost_filesystem-devel
|
|
|
|
BuildRequires: libboost_regex-devel
|
|
|
|
BuildRequires: libboost_system-devel
|
|
|
|
%else
|
|
|
|
BuildRequires: boost-devel
|
|
|
|
%endif
|
2011-05-11 13:33:53 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
FIFE stands for Flexible Isometric Free Engine and is a cross platform
|
2019-01-13 16:46:02 +00:00
|
|
|
game creation framework. It provides the ability to create a
|
2011-05-11 13:33:53 +00:00
|
|
|
game using Python interfaces.
|
|
|
|
|
2017-03-24 08:40:17 +00:00
|
|
|
%package -n libfife%{sover}
|
2019-01-13 16:46:02 +00:00
|
|
|
Summary: The Flexible Isometric Free Engine, a 2D game engine
|
2017-03-24 08:40:17 +00:00
|
|
|
Group: System/Libraries
|
2011-05-11 13:33:53 +00:00
|
|
|
|
2019-01-13 13:27:56 +00:00
|
|
|
%description -n libfife%{sover}
|
2011-05-11 13:33:53 +00:00
|
|
|
FIFE stands for Flexible Isometric Free Engine and is a cross platform
|
2019-01-13 16:46:02 +00:00
|
|
|
game creation framework. It provides the ability to create a
|
2011-05-11 13:33:53 +00:00
|
|
|
game using Python interfaces.
|
|
|
|
|
2019-01-13 13:23:16 +00:00
|
|
|
%package -n python3-%{name}
|
2019-01-13 16:46:02 +00:00
|
|
|
Summary: Python 3 extensions for the FIFE engine
|
2019-01-13 13:23:16 +00:00
|
|
|
Group: Amusements/Games/Other
|
|
|
|
Requires: python3
|
|
|
|
|
|
|
|
%description -n python3-%{name}
|
|
|
|
FIFE stands for Flexible Isometric Free Engine and is a cross platform
|
2019-01-13 16:46:02 +00:00
|
|
|
game creation framework. It provides the ability to create a
|
2019-01-13 13:23:16 +00:00
|
|
|
game using Python interfaces.
|
|
|
|
|
2011-05-11 13:33:53 +00:00
|
|
|
%package devel
|
2019-01-13 16:46:02 +00:00
|
|
|
Summary: Development files for the FIFE 2D game engine
|
2011-10-11 16:47:02 +00:00
|
|
|
Group: Development/Libraries/Other
|
2017-03-24 08:40:17 +00:00
|
|
|
Requires: libfife%{sover} = %{version}
|
2019-01-13 13:23:16 +00:00
|
|
|
Requires: python3-fife = %{version}
|
2011-05-11 13:33:53 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
FIFE stands for Flexible Isometric Free Engine and is a cross platform
|
2019-01-13 16:46:02 +00:00
|
|
|
game creation framework. It provides the ability to create a
|
2011-05-11 13:33:53 +00:00
|
|
|
game using Python interfaces.
|
|
|
|
|
|
|
|
%prep
|
2017-03-24 08:40:17 +00:00
|
|
|
%setup -q -n %{oname}-%{version}
|
2024-05-16 12:07:29 +00:00
|
|
|
# only apply the patch if swig 4 is used (currently: Tumbleweed and Leap 15.6)
|
|
|
|
%if 0%{?suse_version} > 1500 || (0%{?suse_version} == 1500 && 0%{?sle_version} > 150500)
|
2024-02-28 15:54:08 +00:00
|
|
|
%patch -P 0 -p1
|
2019-09-18 18:30:06 +00:00
|
|
|
%endif
|
2024-02-28 15:54:08 +00:00
|
|
|
%patch -P 1 -p1
|
2011-05-11 13:33:53 +00:00
|
|
|
|
|
|
|
%build
|
2019-01-13 13:23:16 +00:00
|
|
|
%define __builddir py3
|
|
|
|
%cmake \
|
2019-01-13 14:25:44 +00:00
|
|
|
-Dbuild-library=ON \
|
2019-01-13 13:23:16 +00:00
|
|
|
-Drend-camzone=ON \
|
|
|
|
-Drend-grid=ON \
|
|
|
|
-Dlibrocket=ON \
|
|
|
|
-Dbuild-python=ON \
|
|
|
|
-DPYTHON_SITE_PACKAGES=%{python3_sitearch}
|
2017-03-24 08:40:17 +00:00
|
|
|
make VERBOSE=1 %{?_smp_mflags}
|
2019-01-13 13:23:16 +00:00
|
|
|
cd ..
|
2011-05-11 13:33:53 +00:00
|
|
|
|
|
|
|
%install
|
2019-01-13 13:23:16 +00:00
|
|
|
%define __builddir py3
|
2017-03-24 08:40:17 +00:00
|
|
|
%cmake_install
|
|
|
|
|
|
|
|
# Blocked by https://github.com/fifengine/fifengine/issues/879
|
|
|
|
# %%check
|
2019-01-13 13:23:16 +00:00
|
|
|
# export PYTHONPATH="%%{buildroot}%%{python3_sitearch}"
|
|
|
|
# python3 ./run_tests.py -a
|
2017-03-24 08:40:17 +00:00
|
|
|
|
|
|
|
%post -n libfife%{sover} -p /sbin/ldconfig
|
|
|
|
%postun -n libfife%{sover} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n libfife%{sover}
|
|
|
|
%if ( 0%{?suse_version} == 1315 && 0%{?sle_version} == 120100 ) || ! 0%{?is_opensuse}
|
|
|
|
# Leap 42.1 or SLE
|
2019-01-13 14:25:44 +00:00
|
|
|
%license LICENSE.md
|
|
|
|
%doc AUTHORS
|
2017-03-24 08:40:17 +00:00
|
|
|
%else
|
|
|
|
%license LICENSE.md AUTHORS
|
|
|
|
%endif
|
2011-05-11 13:33:53 +00:00
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
2019-01-13 13:23:16 +00:00
|
|
|
%files -n python3-%{name}
|
|
|
|
%{python3_sitearch}/*
|
|
|
|
|
2011-05-11 13:33:53 +00:00
|
|
|
%files devel
|
2017-03-24 08:40:17 +00:00
|
|
|
%doc CHANGELOG.md README.md
|
2011-05-11 13:33:53 +00:00
|
|
|
%{_includedir}/fife/
|
|
|
|
%{_libdir}/*.so
|
|
|
|
|
|
|
|
%changelog
|