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