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