/
fifengine.spec
92 lines (74 loc) · 2.26 KB
/
fifengine.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
%define major 0
%define libname %mklibname fife %{major}
%define devname %mklibname fife -d
Name: fifengine
Version: 0.4.1
Release: 1
Source0: https://github.com/fifengine/fifengine/archive/%{version}.tar.gz
Patch0: fifengine-0.4.1-lib64.patch
Summary: Isometric game engine
URL: http://fifengine.net/
License: LGPL
Group: System/Libraries
BuildRequires: cmake ninja
BuildRequires: pkgconfig(python2)
BuildRequires: pkgconfig(SDL2_ttf)
BuildRequires: pkgconfig(ogg)
BuildRequires: pkgconfig(openal)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(vorbis)
BuildRequires: pkgconfig(zlib)
BuildRequires: pkgconfig(xcursor)
BuildRequires: tinyxml-devel
BuildRequires: fifechan-sdl-devel
BuildRequires: fifechan-opengl-devel
BuildRequires: boost-devel
BuildRequires: swig
%description
FIFE is a free, open-source cross-platform game engine.
It features hardware-accelerated 2D graphics, integrated GUI,
audio support, lighting, map editor supporting top-down and
isometric maps, pathfinding, virtual filesystem and more!
The core is written in C++ which means that it is highly
portable. FIFE currently supports Windows, Linux and Mac.
Games utilizing FIFE are programmed through Python scripting
layer on top of the base C++ API.
Games can be also programmed using the C++ layer directly.
FIFE is open-sourced under the terms of the LGPL license
so you can freely use it in non-commercial and commercial projects.
%package -n %{libname}
Summary: The FIFE game engine library
Group: System/Libraries
%description -n %{libname}
The FIFE game engine library
%package -n %{devname}
Summary: Development files for %{name}
Group: Development/C
Requires: %{libname} = %{EVRD}
%description -n %{devname}
Development files (Headers etc.) for %{name}.
%package -n python2-%{name}
Summary: Python 2.x bindings to the FIFE game engine
Group: Development/Python
Requires: %{libname} = %{EVRD}
Requires: python2
%description -n python2-%{name}
Python 2.x bindings to the FIFE game engine
%prep
%autosetup -p1
%build
%cmake \
-Dbuild-library:BOOL=ON \
-G Ninja
%ninja
%install
%ninja_install -C build
%files
%files -n %{libname}
%{_libdir}/libfife.so.%{major}*
%files -n %{devname}
%{_libdir}/libfife.so
%{_includedir}/fife
%files -n python2-%{name}
%{python2_sitearch}/*.so
%{python2_sitelib}/fife