]> git.pld-linux.org Git - packages/dangerdeep.git/blob - dangerdeep.spec
- up to 0.2.0
[packages/dangerdeep.git] / dangerdeep.spec
1 Summary:        Danger from the Deep - WW2 german submarine simulation
2 Summary(pl):    Danger from the Deep - symulacja niemieckiej ³odzi podwodnej
3 Name:           dangerdeep
4 Version:        0.2.0
5 Release:        0.1
6 License:        GPL v2
7 Group:          X11/Applications/Games
8 Source0:        http://dl.sourceforge.net/dangerdeep/%{name}-%{version}.tar.gz
9 # Source0-md5:  3733507e99de5afc3c4172024cdfc61b
10 Source1:        http://dl.sourceforge.net/sourceforge/dangerdeep/%{name}-data-%{version}.zip
11 # Source1-md5:  931d035cdf07d29b57e4797218fe53ff
12 Patch0:         %{name}-X11.patch
13 URL:            http://dangerdeep.sourceforge.net/
14 BuildRequires:  SDL_image-devel
15 BuildRequires:  SDL_mixer-devel
16 BuildRequires:  SDL_net-devel
17 BuildRequires:  fftw3-devel
18 BuildRequires:  scons
19 BuildRequires:  sed >= 4.0
20 BuildRequires:  unzip
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 Danger from the deep (aka dangerdeep) is a Free / Open Source World
25 War II german submarine simulation. It is currently available for
26 Linux/i386 and Windows, but since it uses SDL/OpenGL it should be
27 portable to other operating systems or platforms. This game is planned
28 as tactical simulation and will be as realistic as our time and
29 knowledge of physics allows. It's current state is ALPHA, but it is
30 playable.
31
32 %description -l pl
33 Danger from the deep jest darmow± (z dostêpnymi ¼ród³ami) symulacj±
34 niemieckiej ³odzi podwodnej z czasów II Wojny ¦wiatowej. Gra jest
35 zaplanowana jako taktyczno-symulacyjna i bêdzie tak realistyczna jak
36 pozwoli na to czas twórców i ich wiedza z fizyki. Aktualny stan jest
37 okre¶lony jako ALPHA, ale jest grywalna.
38
39 %package utils
40 Summary:        Danger from the Deep - utils
41 Summary(pl):    Danger from the Deep - narzêdzia
42 Group:          X11/Applications/Games
43 Requires:       %{name} = %{version}-%{release}
44
45 %description utils
46 Danger from the Deep - utils.
47
48 %description utils -l pl
49 Danger from the Deep - narzêdzia.
50
51 %prep
52 %setup -q -a 1
53 %patch0 -p1
54 sed -i 's@-g -O2@%{rpmcflags}@' SConstruct
55 sed -i 's@/usr/local/share/dangerdeep@%{_datadir}/dangerdeep@' SConstruct
56
57 %build
58 # use `scons usex86sse=-1' to build dangerdeep on Ac (tested on i686)
59 scons
60
61 %install
62 rm -rf $RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name},%{_mandir}/man6}
64
65 install build/linux/%{name} $RPM_BUILD_ROOT%{_bindir}
66 install doc/man/%{name}.6 $RPM_BUILD_ROOT%{_mandir}/man6
67 cp -r data/* $RPM_BUILD_ROOT%{_datadir}/%{name}
68
69 install build/linux/{crosssection,damagemodel,oceantest,portal,viewmodel} $RPM_BUILD_ROOT%{_bindir}
70
71 %clean
72 rm -rf $RPM_BUILD_ROOT
73
74 %files
75 %defattr(644,root,root,755)
76 %doc CREDITS ChangeLog README
77 %attr(755,root,root) %{_bindir}/%{name}
78 %{_datadir}/%{name}
79 %{_mandir}/man6/%{name}.6*
80
81 %files utils
82 %defattr(644,root,root,755)
83 %attr(755,root,root) %{_bindir}/crosssection
84 %attr(755,root,root) %{_bindir}/damagemodel
85 %attr(755,root,root) %{_bindir}/oceantest
86 %attr(755,root,root) %{_bindir}/portal
87 %attr(755,root,root) %{_bindir}/viewmodel
This page took 0.12226 seconds and 3 git commands to generate.