]>
Commit | Line | Data |
---|---|---|
382ffef6 | 1 | Summary: A 3D version of the classic DOS game Scorched Earth |
0cdd8728 | 2 | Summary(pl.UTF-8): Wersja 3D klasycznej DOS-owej gry Scorched Earth |
d5559ef7 | 3 | Name: scorched3d |
4cd5cf7f | 4 | Version: 42.1 |
ce3bdaf0 | 5 | Release: 2 |
1eec1c79 | 6 | License: GPL v2+ |
382ffef6 | 7 | Group: X11/Applications/Games |
1eec1c79 | 8 | Source0: http://dl.sourceforge.net/scorched3d/Scorched3D-%{version}-src.tar.gz |
4cd5cf7f | 9 | # Source0-md5: e24867615568ef541a291a4813fcbdae |
4ba5f401 | 10 | Source1: %{name}.desktop |
1eec1c79 | 11 | Patch0: %{name}-types.patch |
d5559ef7 JB |
12 | URL: http://www.scorched3d.co.uk/ |
13 | BuildRequires: ImageMagick-coder-png | |
0ec36356 | 14 | BuildRequires: OpenAL-devel >= 0.0.8 |
1eec1c79 | 15 | BuildRequires: OpenGL-GLU-devel |
d5559ef7 | 16 | BuildRequires: SDL_net-devel |
0f7cdbb8 | 17 | BuildRequires: SDL-devel >= 1.2.5 |
528aeaa3 | 18 | BuildRequires: automake |
ce3bdaf0 | 19 | BuildRequires: dos2unix |
1eec1c79 | 20 | BuildRequires: fftw3-single-devel >= 3.0 |
004268db | 21 | BuildRequires: freealut-devel |
0f7cdbb8 | 22 | BuildRequires: freetype-devel >= 2.1.0 |
1eec1c79 JB |
23 | BuildRequires: libogg-devel |
24 | BuildRequires: libvorbis-devel | |
0f7cdbb8 | 25 | BuildRequires: wxGTK2-devel >= 2.6.0 |
382ffef6 | 26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
d5559ef7 JB |
28 | %define _noautoreqdep libGL.so.1 libGLU.so.1 |
29 | ||
382ffef6 | 30 | %description |
1eec1c79 JB |
31 | Scorched3D is a cross-platform 3D remake of the popular 2D artillery |
32 | game Scorched Earth. Scorched3D can be played against the computer, | |
33 | other players, and remotely across the Internet or LAN. | |
382ffef6 | 34 | |
33570c8f | 35 | %description -l pl.UTF-8 |
1eec1c79 JB |
36 | Scorched 3D to wieloplatformowe, trójwymiarowe odtworzenie popularnej |
37 | dwuwymiarowej gry artyleryjnej Scorched Earth. W Scorched3D można grać | |
38 | przeciwko komputerowi, innym graczom oraz zdalnie poprzez Internet lub | |
39 | LAN. | |
01abe8e4 | 40 | |
382ffef6 | 41 | %prep |
42 | %setup -q -n scorched | |
ce3bdaf0 | 43 | dos2unix src/common/porting/windows.h |
1eec1c79 | 44 | %patch0 -p1 |
382ffef6 | 45 | |
46 | %build | |
528aeaa3 | 47 | cp -f /usr/share/automake/config.sub . |
382ffef6 | 48 | %configure \ |
21aaef62 | 49 | --datadir=%{_datadir}/%{name} \ |
0f7cdbb8 | 50 | --with-wx-config=wx-gtk2-ansi-config |
382ffef6 | 51 | |
52 | %{__make} | |
53 | ||
54 | %install | |
aed89611 | 55 | rm -rf $RPM_BUILD_ROOT |
4ba5f401 | 56 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_desktopdir},%{_pixmapsdir}} |
d5559ef7 | 57 | |
382ffef6 | 58 | %{__make} install \ |
21aaef62 AG |
59 | DESTDIR=$RPM_BUILD_ROOT \ |
60 | datadir=%{_datadir}/%{name} | |
01abe8e4 | 61 | |
62 | rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/documentation/*.txt | |
382ffef6 | 63 | |
4ba5f401 | 64 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
aed89611 | 65 | convert $RPM_BUILD_DIR/scorched/data/windows/tank2.bmp $RPM_BUILD_ROOT%{_pixmapsdir}/scorched3d.png |
66 | ||
382ffef6 | 67 | %clean |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
70 | %files | |
71 | %defattr(644,root,root,755) | |
01abe8e4 | 72 | %doc documentation/*.txt |
1eec1c79 JB |
73 | %attr(755,root,root) %{_bindir}/scorched3d |
74 | %attr(755,root,root) %{_bindir}/scorched3dc | |
75 | %attr(755,root,root) %{_bindir}/scorched3ds | |
01abe8e4 | 76 | %dir %{_datadir}/%{name} |
77 | %{_datadir}/%{name}/data | |
d5559ef7 | 78 | %{_datadir}/%{name}/documentation |
1eec1c79 JB |
79 | %{_pixmapsdir}/scorched3d.png |
80 | %{_desktopdir}/scorched3d.desktop |