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