5 %bcond_without static_libs # don't build static libraries
7 Summary: Flexible Isometric Free Engine
13 Source0: http://downloads.sourceforge.net/fife/%{name}_%{version}.tar.gz
14 # Source0-md5: ee39612009e124263dc79d1f0fa7ca7c
15 Patch0: %{name}-extra_libs.patch
16 URL: http://fifengine.net/
17 BuildRequires: OpenAL-devel
18 BuildRequires: SDL-devel
19 BuildRequires: SDL_image-devel
20 BuildRequires: SDL_ttf-devel
21 BuildRequires: boost-devel
22 BuildRequires: guichan-devel
23 #BuildRequires: guichan_opengl-devel
24 #BuildRequires: guichan_sdl-devel
25 BuildRequires: libpng-devel
26 BuildRequires: libvorbis-devel
27 BuildRequires: python-devel >= 2.7
29 BuildRequires: swig-python
30 BuildRequires: tinyxml-devel
31 BuildRequires: xorg-lib-libXcursor-devel
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 FIFE is a cross platform 2D game creation framework written in C++
36 with Python bindings. It's designed to be flexible enough to support a
37 wide variety of 2D game types but specializes in 2D isometric type
41 Summary: Header files for %{name} library
42 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name}
43 Group: Development/Libraries
44 Requires: %{name} = %{version}-%{release}
47 Header files for %{name} library.
49 %description devel -l pl.UTF-8
50 Pliki nagłówkowe biblioteki %{name}.
53 Summary: Static %{name} library
54 Summary(pl.UTF-8): Statyczna biblioteka %{name}
55 Group: Development/Libraries
56 Requires: %{name}-devel = %{version}-%{release}
59 Static %{name} library.
61 %description static -l pl.UTF-8
62 Statyczna biblioteka %{name}.
64 %package -n python-%{name}
65 Summary: Flexible Isometric Free Engine Python Module
66 Group: Development/Languages/Python
67 Requires: %{name} = %{version}-%{release}
68 Requires: python-modules
70 %description -n python-%{name}
71 FIFE is a cross platform 2D game creation framework written in C++
72 with Python bindings. It's designed to be flexible enough to support a
73 wide variety of 2D game types but specializes in 2D isometric type
77 Summary: %{name} API documentation
78 Summary(pl.UTF-8): Dokumentacja API biblioteki %{name}
82 API and internal documentation for %{name} library.
84 %description apidocs -l pl.UTF-8
85 Dokumentacja API biblioteki %{name}.
88 %setup -qn %{name}_%{version}
92 %scons -j1 fife-shared fife-python \
93 %{?with_static_libs:fife-static} \
94 --lib-dir=%{_libdir} \
96 --python-prefix=%{py_sitedir}
99 rm -rf $RPM_BUILD_ROOT
101 %scons -j1 install-shared install-python install-dev \
102 %{?with_static_libs:install-static} \
103 --lib-dir=%{_libdir} \
104 --prefix=%{_prefix} \
105 --python-prefix=%{py_sitedir} \
106 --install-sandbox=$RPM_BUILD_ROOT
109 cd $RPM_BUILD_ROOT%{_libdir}
110 ln -s lib%{name}.so.0.?.? lib%{name}.so.0
111 ln -s lib%{name}.so.0.?.? lib%{name}.so
115 rm -rf $RPM_BUILD_ROOT
117 %post -p /sbin/ldconfig
118 %postun -p /sbin/ldconfig
121 %defattr(644,root,root,755)
122 %doc AUTHORS CHANGES README
123 %attr(755,root,root) %{_libdir}/lib%{name}.so.*.*.*
124 %attr(755,root,root) %ghost %{_libdir}/lib%{name}.so.0
127 %defattr(644,root,root,755)
128 %attr(755,root,root) %{_libdir}/lib%{name}.so
129 %{_includedir}/%{name}
131 %files -n python-%{name}
132 %defattr(644,root,root,755)
133 %dir %{py_sitedir}/%{name}
134 %attr(755,root,root) %{py_sitedir}/%{name}/*.so
135 %{py_sitedir}/%{name}/*.py*
136 %{py_sitedir}/%{name}/extensions
138 %if %{with static_libs}
140 %defattr(644,root,root,755)
141 %{_libdir}/lib%{name}.a
146 %defattr(644,root,root,755)