]>
Commit | Line | Data |
---|---|---|
62131c1a | 1 | Summary: Danger from the Deep - WW2 german submarine simulation |
98d20f03 | 2 | Summary(pl.UTF-8): Danger from the Deep - symulacja niemieckiej łodzi podwodnej |
62131c1a | 3 | Name: dangerdeep |
c7931e4f | 4 | Version: 0.3.0 |
5 | Release: 1 | |
6 | License: GPL v2+ | |
dc49a7ee | 7 | Group: X11/Applications/Games |
62131c1a | 8 | Source0: http://dl.sourceforge.net/dangerdeep/%{name}-%{version}.tar.gz |
c7931e4f | 9 | # Source0-md5: 8a1d19326a9a0bd8bb91a652bfa51bd9 |
eaa53de5 | 10 | Source1: http://dl.sourceforge.net/dangerdeep/%{name}-data-%{version}.zip |
c7931e4f | 11 | # Source1-md5: b9a2f2ff756cd7715a3b58de7504c1d0 |
1591b2a4 | 12 | Source2: %{name}.desktop |
dc49a7ee | 13 | Patch0: %{name}-X11.patch |
62131c1a | 14 | URL: http://dangerdeep.sourceforge.net/ |
7be7d8b6 | 15 | BuildRequires: OpenGL-GLU-devel |
928b5938 | 16 | BuildRequires: SDL_image-devel |
daf78c90 | 17 | BuildRequires: SDL_mixer-devel |
18 | BuildRequires: SDL_net-devel | |
b9986755 | 19 | BuildRequires: fftw3-devel |
20 | BuildRequires: scons | |
ea0a8e31 | 21 | BuildRequires: sed >= 4.0 |
dc49a7ee | 22 | BuildRequires: unzip |
62131c1a | 23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %description | |
26 | Danger from the deep (aka dangerdeep) is a Free / Open Source World | |
27 | War II german submarine simulation. It is currently available for | |
28 | Linux/i386 and Windows, but since it uses SDL/OpenGL it should be | |
29 | portable to other operating systems or platforms. This game is planned | |
30 | as tactical simulation and will be as realistic as our time and | |
31 | knowledge of physics allows. It's current state is ALPHA, but it is | |
32 | playable. | |
33 | ||
a5fb5d4a JR |
34 | %description -l pl.UTF-8 |
35 | Danger from the deep jest darmową (z dostępnymi źródłami) symulacją | |
36 | niemieckiej łodzi podwodnej z czasów II Wojny Światowej. Gra jest | |
37 | zaplanowana jako taktyczno-symulacyjna i będzie tak realistyczna jak | |
38 | pozwoli na to czas twórców i ich wiedza z fizyki. Aktualny stan jest | |
39 | określony jako ALPHA, ale jest grywalna. | |
62131c1a | 40 | |
4e3c0a67 | 41 | %package utils |
924aaf99 | 42 | Summary: Danger from the Deep - utils |
98d20f03 | 43 | Summary(pl.UTF-8): Danger from the Deep - narzędzia |
dc49a7ee | 44 | Group: X11/Applications/Games |
924aaf99 | 45 | Requires: %{name} = %{version}-%{release} |
c140e004 | 46 | |
4e3c0a67 | 47 | %description utils |
924aaf99 JB |
48 | Danger from the Deep - utils. |
49 | ||
a5fb5d4a JR |
50 | %description utils -l pl.UTF-8 |
51 | Danger from the Deep - narzędzia. | |
4e3c0a67 | 52 | |
62131c1a | 53 | %prep |
dc49a7ee | 54 | %setup -q -a 1 |
55 | %patch0 -p1 | |
9ff05457 | 56 | %{__sed} -i 's@-g -O2@%{rpmcflags}@' SConstruct |
57 | %{__sed} -i 's@/usr/local/share/dangerdeep@%{_datadir}/dangerdeep@' SConstruct | |
d8ebb5a7 | 58 | |
59 | %build | |
b68d97fd | 60 | # use `scons usex86sse=-1' to build dangerdeep on Ac (tested on i686) |
1591b2a4 | 61 | scons usex86sse=-1 |
62131c1a | 62 | |
63 | %install | |
64 | rm -rf $RPM_BUILD_ROOT | |
1591b2a4 | 65 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name},%{_desktopdir},%{_mandir}/man6,%{_pixmapsdir}} |
62131c1a | 66 | |
67 | install build/linux/%{name} $RPM_BUILD_ROOT%{_bindir} | |
6b934475 | 68 | install doc/man/%{name}.6 $RPM_BUILD_ROOT%{_mandir}/man6 |
1591b2a4 | 69 | install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir} |
db2f9e13 | 70 | install logo.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.xpm |
62131c1a | 71 | cp -r data/* $RPM_BUILD_ROOT%{_datadir}/%{name} |
72 | ||
4e3c0a67 | 73 | install build/linux/{crosssection,damagemodel,oceantest,portal,viewmodel} $RPM_BUILD_ROOT%{_bindir} |
74 | ||
62131c1a | 75 | %clean |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
78 | %files | |
79 | %defattr(644,root,root,755) | |
4e3c0a67 | 80 | %doc CREDITS ChangeLog README |
81 | %attr(755,root,root) %{_bindir}/%{name} | |
62131c1a | 82 | %{_datadir}/%{name} |
1591b2a4 | 83 | %{_desktopdir}/%{name}.desktop |
6b934475 | 84 | %{_mandir}/man6/%{name}.6* |
db2f9e13 | 85 | %{_pixmapsdir}/%{name}.xpm |
4e3c0a67 | 86 | |
87 | %files utils | |
88 | %defattr(644,root,root,755) | |
12d43878 JB |
89 | %attr(755,root,root) %{_bindir}/crosssection |
90 | %attr(755,root,root) %{_bindir}/damagemodel | |
91 | %attr(755,root,root) %{_bindir}/oceantest | |
92 | %attr(755,root,root) %{_bindir}/portal | |
93 | %attr(755,root,root) %{_bindir}/viewmodel |