1 %define name flightgear
5 Summary: The FlightGear Flight Simulator
11 BuildRoot: %{_tmppath}/%{name}-buildroot
12 Source: ftp://ftp.flightgear.org/pub/fgfs/Source/FlightGear-%{version}.tar.gz
13 Source1: ftp://ftp.flightgear.org/pub/fgfs/Shared/fgfs-base-%{version}.tar.gz
14 Source3: flightgear.desktop
15 Source10: %{name}.48.png
16 BuildRequires: plib >= 1.6.0, simgear = 0.3.4, XFree86-devel, XFree86-Mesa-libGL, XFree86-Mesa-libGLU, gcc, zlib-devel
17 Requires: XFree86-devel, XFree86-Mesa-libGL, XFree86-Mesa-libGLU, gcc, zlib-devel
18 URL: http://www.flightgear.org
20 Provides: FlightGear = %{version}-%{release}
23 The Flight Gear project is working to create a sophisticated flight simulator
24 framework for the development and pursuit of interesting flight simulator
25 ideas. We are developing a solid basic sim that can be expanded and improved
26 upon by anyone interested in contributing.
29 %setup -q -n FlightGear-%{version}
37 make DESTDIR=$RPM_BUILD_ROOT install
38 mkdir -p $RPM_BUILD_ROOT%{_libdir}
39 tar xzf %{SOURCE1} -C $RPM_BUILD_ROOT%{_libdir}
40 mv $RPM_BUILD_ROOT%{_libdir}/FlightGear-%{version} $RPM_BUILD_ROOT%{_libdir}/FlightGear
42 mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications/
43 cp %{SOURCE3} $RPM_BUILD_ROOT/%{_datadir}/applications/
45 desktop-file-install --vendor flightgear --delete-original \
46 --dir $RPM_BUILD_ROOT%{_datadir}/applications \
47 $RPM_BUILD_ROOT%{_datadir}/applications/flightgear.desktop
49 mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
50 cp %{SOURCE10} $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}.png
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(-, root, root)
61 %doc README COPYING AUTHORS docs-mini/
64 %{_datadir}/pixmaps/%{name}.png
65 %{_datadir}/applications/flightgear.desktop
69 * Sun Oct 26 2003 Richard Keech <rkeech@redhat.com>
72 * Sun Dec 29 2002 Richard Keech <rkeech@redhat.com>
73 - re-worked spec for Red Hat for 0.9.1.
74 Adapted from the one created
75 by Lenny Cartier <lenny@mandrakesoft.com>,
76 Guillaume Cottenceau <gc@mandrakesoft.com> et al.