2 # - Make FlightGear-extra-planes for subset of planes from
3 # http://www.flightgear.org/Downloads/aircraft/index.shtml
5 Summary: Free Flight Simulator
6 Summary(pl): darmowy symulator lotu
11 Group: X11/Applications/Games
12 Source0: ftp://ftp.flightgear.org/pub/fgfs/Source/%{name}-%{version}.tar.gz
13 # Source0-md5: f4b89c9cafc18d56beab77a04f1ebdce
14 Source1: ftp://ftp.flightgear.org/pub/fgfs/Shared/fgfs-base-%{version}.tar.bz2
15 # Source1-md5: 0ff82689a1877de95490c429e717d8a2
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: %{name}-libs.patch
19 URL: http://www.flightgear.org/
20 BuildRequires: OpenAL-devel
21 BuildRequires: OpenGL-devel
22 BuildRequires: SimGear-devel >= 0.3.10
23 BuildRequires: XFree86-devel
24 BuildRequires: autoconf >= 2.52
25 BuildRequires: automake
26 BuildRequires: glut-devel
27 BuildRequires: libstdc++-devel
28 BuildRequires: libxml-devel
29 BuildRequires: metakit-devel >= 2.4.3
30 BuildRequires: plib-devel >= 1.8.4
31 BuildRequires: zlib-devel
33 Requires: SimGear >= 0.3.10
34 Requires: plib >= 1.8.4
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 %define _noautoreqdep libGL.so.1 libGLU.so.1 libGLcore.so.1
40 The Flight Gear project is working to create a sophisticated flight
41 simulator framework for the development and pursuit of interesting
42 flight simulator ideas. We are developing a solid basic sim that can
43 be expanded and improved upon by anyone interested in contributing.
46 Projekt Flight Gear to wyrafinowany symulator lotów pozwalaj±cy
47 rozpowszechniaæ idee tego typu symulacji.
53 find %{name} -name 'CVS' -type d | xargs rm -rf
63 --libdir=%{_datadir}/games
67 rm -rf $RPM_BUILD_ROOT
68 install -d $RPM_BUILD_ROOT%{_datadir}/games
71 DESTDIR=$RPM_BUILD_ROOT
73 echo "#!/bin/sh" > runfgfs
74 echo "exec %{_bindir}/fgfs --fg-root=%{_datadir}/games/%{name} \$*" >> runfgfs
75 install runfgfs $RPM_BUILD_ROOT%{_bindir}
76 cp -a %{name} $RPM_BUILD_ROOT%{_datadir}/games
77 cp -R data $RPM_BUILD_ROOT%{_datadir}/games/%{name}
80 rm -rf $RPM_BUILD_ROOT
83 %defattr(644,root,root,755)
84 %doc AUTHORS NEWS %{name}/Docs/*
85 %attr(755,root,root) %{_bindir}/*
86 %{_datadir}/games/%{name}