]> git.pld-linux.org Git - packages/FlightGear.git/blob - FlightGear.spec
- updated to 2.12.0
[packages/FlightGear.git] / FlightGear.spec
1 # TODO:
2 # - Make FlightGear-extra-planes for subset of planes from
3 #   http://www.flightgear.org/Downloads/aircraft/index.shtml
4
5 Summary:        Free Flight Simulator
6 Summary(pl.UTF-8):      darmowy symulator lotu
7 Name:           FlightGear
8 Version:        2.12.0
9 Release:        0.1
10 License:        GPL
11 Group:          X11/Applications/Games
12 Source0:        ftp://mirrors.ibiblio.org/pub/mirrors/flightgear/ftp/Source/flightgear-%{version}.tar.bz2
13 # Source0-md5:  23e2de5f311f4cbe94ec3386736ee8a5
14 Source1:        ftp://flightgear.wo0t.de/ftp/Shared/FlightGear-data-%{version}.tar.bz
15 # Source1-md5:  049cfa1f7bc7de528630c2a41c6ad6eb
16 #Source2:       ftp://ftp.flightgear.org/pub/fgfs/Everything-0.7/Base-Packages/fgfs-docs-0.7.7.tar.gz
17 ## Source2-md5: 31f35d3e63e522565e8990ead99e7507
18 Patch0:         flightgear-cmake.patch
19 URL:            http://www.flightgear.org/
20 BuildRequires:  cmake
21 BuildRequires:  OpenAL-devel
22 BuildRequires:  OpenGL-devel
23 BuildRequires:  SimGear-devel = %{version}
24 BuildRequires:  freeglut-devel
25 BuildRequires:  libstdc++-devel
26 BuildRequires:  libxml-devel
27 BuildRequires:  plib-devel >= 1.8.5-3
28 BuildRequires:  zlib-devel
29 Requires:       OpenGL
30 Requires:       OpenSceneGraph-plugins
31 Requires:       plib >= 1.8.4
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %define _noautoreqdep   libGL.so.1 libGLU.so.1 libGLcore.so.1
35
36 %description
37 The Flight Gear project is working to create a sophisticated flight
38 simulator framework for the development and pursuit of interesting
39 flight simulator ideas. We are developing a solid basic sim that can
40 be expanded and improved upon by anyone interested in contributing.
41
42 %description -l pl.UTF-8
43 Projekt Flight Gear to wyrafinowany symulator lotów pozwalający
44 rozpowszechniać idee tego typu symulacji.
45
46 %prep
47 %setup -q -n flightgear-%{version} -a 1
48 %patch0 -p1
49
50 find %{name} -name 'CVS' -type d | xargs rm -rf
51
52 %build
53 install -d build
54 cd build
55 %cmake ../
56 %{__make}
57
58 %install
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT%{_datadir}/games/%{name}
61
62 %{__make} -C build install \
63         DESTDIR=$RPM_BUILD_ROOT
64
65 echo "#!/bin/sh" > runfgfs
66 echo "exec %{_bindir}/fgfs --fg-root=%{_datadir}/games/%{name}/fgdata \$*" >> runfgfs
67 install runfgfs $RPM_BUILD_ROOT%{_bindir}
68 cp -R fgdata $RPM_BUILD_ROOT%{_datadir}/games/%{name}
69
70 %clean
71 rm -rf $RPM_BUILD_ROOT
72
73 %files
74 %defattr(644,root,root,755)
75 %doc AUTHORS NEWS docs-mini/*
76 %attr(755,root,root) %{_bindir}/*
77 %{_datadir}/games/%{name}
78 %{_mandir}/*/*
This page took 0.069767 seconds and 3 git commands to generate.