]> git.pld-linux.org Git - packages/dangerdeep.git/blob - dangerdeep.spec
- massive change ( validate errors warrings from desktop-file-validate)
[packages/dangerdeep.git] / dangerdeep.spec
1 Summary:        Danger from the Deep - WW2 german submarine simulation
2 Summary(pl.UTF-8):      Danger from the Deep - symulacja niemieckiej łodzi podwodnej
3 Name:           dangerdeep
4 Version:        0.3.0
5 Release:        1
6 License:        GPL v2+
7 Group:          X11/Applications/Games
8 Source0:        http://dl.sourceforge.net/dangerdeep/%{name}-%{version}.tar.gz
9 # Source0-md5:  8a1d19326a9a0bd8bb91a652bfa51bd9
10 Source1:        http://dl.sourceforge.net/dangerdeep/%{name}-data-%{version}.zip
11 # Source1-md5:  b9a2f2ff756cd7715a3b58de7504c1d0
12 Source2:        %{name}.desktop
13 Patch0:         %{name}-X11.patch
14 URL:            http://dangerdeep.sourceforge.net/
15 BuildRequires:  OpenGL-GLU-devel
16 BuildRequires:  SDL_image-devel
17 BuildRequires:  SDL_mixer-devel
18 BuildRequires:  SDL_net-devel
19 BuildRequires:  fftw3-devel
20 BuildRequires:  scons
21 BuildRequires:  sed >= 4.0
22 BuildRequires:  unzip
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
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.
40
41 %package utils
42 Summary:        Danger from the Deep - utils
43 Summary(pl.UTF-8):      Danger from the Deep - narzędzia
44 Group:          X11/Applications/Games
45 Requires:       %{name} = %{version}-%{release}
46
47 %description utils
48 Danger from the Deep - utils.
49
50 %description utils -l pl.UTF-8
51 Danger from the Deep - narzędzia.
52
53 %prep
54 %setup -q -a 1
55 %patch0 -p1
56 %{__sed} -i 's@-g -O2@%{rpmcflags}@' SConstruct
57 %{__sed} -i 's@/usr/local/share/dangerdeep@%{_datadir}/dangerdeep@' SConstruct
58
59 %build
60 # use `scons usex86sse=-1' to build dangerdeep on Ac (tested on i686)
61 scons usex86sse=-1
62
63 %install
64 rm -rf $RPM_BUILD_ROOT
65 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name},%{_desktopdir},%{_mandir}/man6,%{_pixmapsdir}}
66
67 install build/linux/%{name} $RPM_BUILD_ROOT%{_bindir}
68 install doc/man/%{name}.6 $RPM_BUILD_ROOT%{_mandir}/man6
69 install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
70 install logo.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.xpm
71 cp -r data/* $RPM_BUILD_ROOT%{_datadir}/%{name}
72
73 install build/linux/{crosssection,damagemodel,oceantest,portal,viewmodel} $RPM_BUILD_ROOT%{_bindir}
74
75 %clean
76 rm -rf $RPM_BUILD_ROOT
77
78 %files
79 %defattr(644,root,root,755)
80 %doc CREDITS ChangeLog README
81 %attr(755,root,root) %{_bindir}/%{name}
82 %{_datadir}/%{name}
83 %{_desktopdir}/%{name}.desktop
84 %{_mandir}/man6/%{name}.6*
85 %{_pixmapsdir}/%{name}.xpm
86
87 %files utils
88 %defattr(644,root,root,755)
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
This page took 0.060943 seconds and 3 git commands to generate.