]>
Commit | Line | Data |
---|---|---|
7473d850 | 1 | # |
ff17dfb4 | 2 | # Conditional build: |
7473d850 JK |
3 | %bcond_without static_libs # don't build static libraries |
4 | # | |
5 | Summary: Flexible Isometric Free Engine | |
ff17dfb4 | 6 | Summary(pl.UTF-8): Flexible Isometric Free Engine - elastyczny, wolnodostępny silnik izometryczny |
7473d850 | 7 | Name: fife |
7f1c5ef1 | 8 | Version: 0.3.5 |
fe0bdcd8 | 9 | Release: 7 |
ff17dfb4 | 10 | License: LGPL v2.1+ |
7473d850 JK |
11 | Group: Libraries |
12 | Source0: http://downloads.sourceforge.net/fife/%{name}_%{version}.tar.gz | |
7f1c5ef1 | 13 | # Source0-md5: 11ba50b34239535a270d442466632ef7 |
7473d850 | 14 | Patch0: %{name}-extra_libs.patch |
74943e12 | 15 | Patch1: %{name}-glee.patch |
7473d850 JK |
16 | URL: http://fifengine.net/ |
17 | BuildRequires: OpenAL-devel | |
74943e12 | 18 | BuildRequires: OpenGL-devel |
7473d850 JK |
19 | BuildRequires: SDL-devel |
20 | BuildRequires: SDL_image-devel | |
21 | BuildRequires: SDL_ttf-devel | |
22 | BuildRequires: boost-devel | |
74943e12 JB |
23 | BuildRequires: guichan-devel >= 0.8.2 |
24 | BuildRequires: guichan-opengl-devel >= 0.8.2 | |
25 | BuildRequires: guichan-sdl-devel >= 0.8.2 | |
7473d850 JK |
26 | BuildRequires: libpng-devel |
27 | BuildRequires: libvorbis-devel | |
74943e12 JB |
28 | BuildRequires: pkgconfig |
29 | BuildRequires: python-devel >= 1:2.7 | |
30 | BuildRequires: scons >= 2.0 | |
80c3c2fc | 31 | BuildRequires: swig-python |
7473d850 | 32 | BuildRequires: tinyxml-devel |
74943e12 | 33 | BuildRequires: xorg-lib-libX11-devel |
7473d850 | 34 | BuildRequires: xorg-lib-libXcursor-devel |
74943e12 | 35 | BuildRequires: zlib-devel |
7473d850 JK |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
37 | ||
38 | %description | |
39 | FIFE is a cross platform 2D game creation framework written in C++ | |
40 | with Python bindings. It's designed to be flexible enough to support a | |
41 | wide variety of 2D game types but specializes in 2D isometric type | |
42 | views. | |
43 | ||
ff17dfb4 JB |
44 | %description -l pl.UTF-8 |
45 | FIFE to wieloplatformowy szkielet do tworzenia gier 2D napisany w C++ | |
46 | z wiązaniami do Pythona. Jest zaprojektowany jako wystarczająco | |
47 | elastyczny do obsługi wielu rodzajów gier 2D, ale specjalizuje się w | |
48 | widokach 2D typu izometrycznego. | |
49 | ||
7473d850 | 50 | %package devel |
ff17dfb4 JB |
51 | Summary: Header files for FIFE library |
52 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki FIFE | |
7473d850 JK |
53 | Group: Development/Libraries |
54 | Requires: %{name} = %{version}-%{release} | |
55 | ||
56 | %description devel | |
ff17dfb4 | 57 | Header files for FIFE library. |
7473d850 JK |
58 | |
59 | %description devel -l pl.UTF-8 | |
ff17dfb4 | 60 | Pliki nagłówkowe biblioteki FIFE. |
7473d850 JK |
61 | |
62 | %package static | |
ff17dfb4 JB |
63 | Summary: Static FIFE library |
64 | Summary(pl.UTF-8): Statyczna biblioteka FIFE | |
7473d850 JK |
65 | Group: Development/Libraries |
66 | Requires: %{name}-devel = %{version}-%{release} | |
67 | ||
68 | %description static | |
ff17dfb4 | 69 | Static FIFE library. |
7473d850 JK |
70 | |
71 | %description static -l pl.UTF-8 | |
ff17dfb4 | 72 | Statyczna biblioteka FIFE. |
7473d850 JK |
73 | |
74 | %package -n python-%{name} | |
75 | Summary: Flexible Isometric Free Engine Python Module | |
ff17dfb4 | 76 | Summary(pl.UTF-8): Moduł Pythona do silnika FIFE (Flexible Isometric Free Engine) |
7473d850 JK |
77 | Group: Development/Languages/Python |
78 | Requires: %{name} = %{version}-%{release} | |
79 | Requires: python-modules | |
80 | ||
81 | %description -n python-%{name} | |
82 | FIFE is a cross platform 2D game creation framework written in C++ | |
83 | with Python bindings. It's designed to be flexible enough to support a | |
84 | wide variety of 2D game types but specializes in 2D isometric type | |
85 | views. | |
86 | ||
ff17dfb4 | 87 | This package contains Python module. |
7473d850 | 88 | |
ff17dfb4 JB |
89 | %description -n python-%{name} -l pl.UTF-8 |
90 | FIFE to wieloplatformowy szkielet do tworzenia gier 2D napisany w C++ | |
91 | z wiązaniami do Pythona. Jest zaprojektowany jako wystarczająco | |
92 | elastyczny do obsługi wielu rodzajów gier 2D, ale specjalizuje się w | |
93 | widokach 2D typu izometrycznego. | |
7473d850 | 94 | |
ff17dfb4 | 95 | Ten pakiet zawiera moduł Pythona. |
7473d850 JK |
96 | |
97 | %prep | |
98 | %setup -qn %{name}_%{version} | |
99 | %patch0 -p1 | |
74943e12 | 100 | %patch1 -p1 |
7473d850 JK |
101 | |
102 | %build | |
ff17dfb4 JB |
103 | # force pre C++11 standard, code uses std::make_pair in a way incompatible with rvalue refs |
104 | CXXFLAGS="%{rpmcxxflags} -std=c++03" | |
0f70a062 | 105 | %scons -j1 fife-shared fife-python \ |
7473d850 JK |
106 | %{?with_static_libs:fife-static} \ |
107 | --lib-dir=%{_libdir} \ | |
108 | --prefix=%{_prefix} \ | |
109 | --python-prefix=%{py_sitedir} | |
110 | ||
111 | %install | |
112 | rm -rf $RPM_BUILD_ROOT | |
113 | ||
ff17dfb4 | 114 | CXXFLAGS="%{rpmcxxflags} -std=c++03" |
0f70a062 | 115 | %scons -j1 install-shared install-python install-dev \ |
7473d850 JK |
116 | %{?with_static_libs:install-static} \ |
117 | --lib-dir=%{_libdir} \ | |
118 | --prefix=%{_prefix} \ | |
119 | --python-prefix=%{py_sitedir} \ | |
120 | --install-sandbox=$RPM_BUILD_ROOT | |
121 | ||
122 | SAVED_PWD=$PWD | |
123 | cd $RPM_BUILD_ROOT%{_libdir} | |
ff17dfb4 JB |
124 | ln -s libfife.so.0.?.? libfife.so.0 |
125 | ln -s libfife.so.0.?.? libfife.so | |
7473d850 JK |
126 | cd $SAVED_PWD |
127 | ||
ff17dfb4 JB |
128 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} |
129 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
130 | %py_postclean | |
131 | ||
7473d850 JK |
132 | %clean |
133 | rm -rf $RPM_BUILD_ROOT | |
134 | ||
135 | %post -p /sbin/ldconfig | |
136 | %postun -p /sbin/ldconfig | |
137 | ||
138 | %files | |
139 | %defattr(644,root,root,755) | |
140 | %doc AUTHORS CHANGES README | |
ff17dfb4 JB |
141 | %attr(755,root,root) %{_libdir}/libfife.so.*.*.* |
142 | %attr(755,root,root) %ghost %{_libdir}/libfife.so.0 | |
7473d850 JK |
143 | |
144 | %files devel | |
145 | %defattr(644,root,root,755) | |
ff17dfb4 | 146 | %attr(755,root,root) %{_libdir}/libfife.so |
7473d850 JK |
147 | %{_includedir}/%{name} |
148 | ||
7473d850 JK |
149 | %if %{with static_libs} |
150 | %files static | |
151 | %defattr(644,root,root,755) | |
ff17dfb4 | 152 | %{_libdir}/libfife.a |
7473d850 JK |
153 | %endif |
154 | ||
ff17dfb4 | 155 | %files -n python-%{name} |
7473d850 | 156 | %defattr(644,root,root,755) |
ff17dfb4 JB |
157 | %dir %{py_sitedir}/%{name} |
158 | %attr(755,root,root) %{py_sitedir}/%{name}/_fife.so | |
159 | %{py_sitedir}/%{name}/*.py[co] | |
160 | %{py_sitedir}/%{name}/extensions |