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