]>
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 |
64174852 JR |
4 | Version: 43.3d |
5 | Release: 1 | |
1eec1c79 | 6 | License: GPL v2+ |
382ffef6 | 7 | Group: X11/Applications/Games |
d47be420 | 8 | Source0: http://downloads.sourceforge.net/scorched3d/Scorched3D-%{version}-src.tar.gz |
64174852 | 9 | # Source0-md5: 9c3043282a9e7451468ff325bef3b04c |
4ba5f401 | 10 | Source1: %{name}.desktop |
1eec1c79 | 11 | Patch0: %{name}-types.patch |
951d6287 | 12 | Patch1: %{name}-openal.patch |
d2ec4898 | 13 | Patch2: %{name}-libpng15.patch |
aaf981e8 | 14 | Patch3: %{name}-gcc47.patch |
d5559ef7 JB |
15 | URL: http://www.scorched3d.co.uk/ |
16 | BuildRequires: ImageMagick-coder-png | |
0ec36356 | 17 | BuildRequires: OpenAL-devel >= 0.0.8 |
951d6287 | 18 | BuildRequires: OpenGL-GLU-devel |
0f7cdbb8 | 19 | BuildRequires: SDL-devel >= 1.2.5 |
951d6287 | 20 | BuildRequires: SDL_net-devel |
21 | BuildRequires: autoconf | |
528aeaa3 | 22 | BuildRequires: automake |
62234294 | 23 | BuildRequires: expat-devel |
1eec1c79 | 24 | BuildRequires: fftw3-single-devel >= 3.0 |
004268db | 25 | BuildRequires: freealut-devel |
0f7cdbb8 | 26 | BuildRequires: freetype-devel >= 2.1.0 |
62234294 | 27 | BuildRequires: libjpeg-devel |
1eec1c79 | 28 | BuildRequires: libogg-devel |
62234294 | 29 | BuildRequires: libpng-devel |
1eec1c79 | 30 | BuildRequires: libvorbis-devel |
62234294 | 31 | BuildRequires: pkgconfig |
65b60fbb MB |
32 | BuildRequires: rpmbuild(macros) >= 1.533 |
33 | BuildRequires: sed >= 4.0 | |
0f7cdbb8 | 34 | BuildRequires: wxGTK2-devel >= 2.6.0 |
382ffef6 | 35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
36 | ||
d5559ef7 JB |
37 | %define _noautoreqdep libGL.so.1 libGLU.so.1 |
38 | ||
382ffef6 | 39 | %description |
1eec1c79 JB |
40 | Scorched3D is a cross-platform 3D remake of the popular 2D artillery |
41 | game Scorched Earth. Scorched3D can be played against the computer, | |
42 | other players, and remotely across the Internet or LAN. | |
382ffef6 | 43 | |
33570c8f | 44 | %description -l pl.UTF-8 |
1eec1c79 | 45 | Scorched 3D to wieloplatformowe, trójwymiarowe odtworzenie popularnej |
62234294 | 46 | dwuwymiarowej gry artyleryjnej Scorched Earth. W Scorched3D można grać |
47 | przeciwko komputerowi, innym graczom oraz zdalnie poprzez Internet lub | |
48 | LAN. | |
01abe8e4 | 49 | |
382ffef6 | 50 | %prep |
8332729c AG |
51 | %setup -qc |
52 | mv scorched/* . | |
53 | rm -rf scorched-dep-osx scorched | |
d2ec4898 | 54 | %undos src/common/porting/windows.h src/common/image/ImagePngFactory.cpp |
1eec1c79 | 55 | %patch0 -p1 |
951d6287 | 56 | %patch1 -p1 |
d2ec4898 | 57 | %patch2 -p1 |
aaf981e8 | 58 | %patch3 -p1 |
382ffef6 | 59 | |
60 | %build | |
951d6287 | 61 | %{__aclocal} |
62 | %{__autoconf} | |
63 | %{__automake} | |
382ffef6 | 64 | %configure \ |
21aaef62 | 65 | --datadir=%{_datadir}/%{name} \ |
951d6287 | 66 | --with-wx-config=wx-gtk2-ansi-config |
382ffef6 | 67 | |
68 | %{__make} | |
69 | ||
70 | %install | |
aed89611 | 71 | rm -rf $RPM_BUILD_ROOT |
4ba5f401 | 72 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_desktopdir},%{_pixmapsdir}} |
d5559ef7 | 73 | |
382ffef6 | 74 | %{__make} install \ |
21aaef62 AG |
75 | DESTDIR=$RPM_BUILD_ROOT \ |
76 | datadir=%{_datadir}/%{name} | |
01abe8e4 | 77 | |
10d3ff75 | 78 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/documentation/*.txt |
382ffef6 | 79 | |
4ba5f401 | 80 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
8021cb78 | 81 | convert $RPM_BUILD_DIR/%{name}-%{version}/data/images/tank2.bmp $RPM_BUILD_ROOT%{_pixmapsdir}/scorched3d.png |
aed89611 | 82 | |
382ffef6 | 83 | %clean |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
86 | %files | |
87 | %defattr(644,root,root,755) | |
01abe8e4 | 88 | %doc documentation/*.txt |
1eec1c79 JB |
89 | %attr(755,root,root) %{_bindir}/scorched3d |
90 | %attr(755,root,root) %{_bindir}/scorched3dc | |
91 | %attr(755,root,root) %{_bindir}/scorched3ds | |
01abe8e4 | 92 | %dir %{_datadir}/%{name} |
93 | %{_datadir}/%{name}/data | |
d5559ef7 | 94 | %{_datadir}/%{name}/documentation |
1eec1c79 JB |
95 | %{_pixmapsdir}/scorched3d.png |
96 | %{_desktopdir}/scorched3d.desktop |