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