diff --git a/package/RedHat/README b/package/RedHat/README new file mode 100644 index 000000000..a82b07039 --- /dev/null +++ b/package/RedHat/README @@ -0,0 +1,35 @@ +Building Flight Gear RPM package for Red Hat + +G.Richard Keech + +2003-10-29 + +This directory contains the files which, along with +the source code tar files, can be used to build +an RPM package targeted at a Red Hat Linux system. + +To build flighgear from source do the following: + +0. be root on your system (actually it's possible to + build from source as a non-root user but + I won't go into that now). + +1. copy flightgear.spec to /usr/src/redhat/SPECS/ + +2. copy flightgear.48.png to /usr/src/redhat/SOURCES + +3. copy flightgear.desktop to /usr/src/redhat/SOURCES + +4. obtain fgfs-base-0.9.3.tar.gz and FlightGear-0.9.3.tar.gz + and copy them into /usr/src/redhat/SOURCES. + +5. obtain and install SimGear (>= 0.3.4). + +6. look in the BuildRequires section of flightgear.spec + and check that all the packages referred to are + installed. + +7. cd /usr/src/redhat/SPECS + rpmbuild -ba flightgear.spec + +that's it. diff --git a/package/RedHat/flightgear.48.png b/package/RedHat/flightgear.48.png new file mode 100644 index 000000000..8e0876221 Binary files /dev/null and b/package/RedHat/flightgear.48.png differ diff --git a/package/RedHat/flightgear.desktop b/package/RedHat/flightgear.desktop new file mode 100644 index 000000000..e4e0d46b9 --- /dev/null +++ b/package/RedHat/flightgear.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=Flight Gear +Comment=Flight Gear Flight Simulator +Exec=fgfs +Icon= +Categories=GNOME;Application;Game diff --git a/package/RedHat/flightgear.spec b/package/RedHat/flightgear.spec new file mode 100644 index 000000000..ca2b60cc4 --- /dev/null +++ b/package/RedHat/flightgear.spec @@ -0,0 +1,77 @@ +%define name flightgear +%define version 0.9.3 +%define release 1grk + +Summary: The FlightGear Flight Simulator +Name: %{name} +Version: %{version} +Release: %{release} +License: GPL +Group: Games/Other +BuildRoot: %{_tmppath}/%{name}-buildroot +Source: ftp://ftp.flightgear.org/pub/fgfs/Source/FlightGear-%{version}.tar.gz +Source1: ftp://ftp.flightgear.org/pub/fgfs/Shared/fgfs-base-%{version}.tar.gz +Source3: flightgear.desktop +Source10: %{name}.48.png +BuildRequires: plib >= 1.6.0, simgear = 0.3.4, XFree86-devel, XFree86-Mesa-libGL, XFree86-Mesa-libGLU, gcc, zlib-devel +Requires: XFree86-devel, XFree86-Mesa-libGL, XFree86-Mesa-libGLU, gcc, zlib-devel +URL: http://www.flightgear.org +Obsoletes: FlightGear +Provides: FlightGear = %{version}-%{release} + +%description +The Flight Gear project is working to create a sophisticated flight simulator +framework for the development and pursuit of interesting flight simulator +ideas. We are developing a solid basic sim that can be expanded and improved +upon by anyone interested in contributing. + +%prep +%setup -q -n FlightGear-%{version} +rm -f docs-mini/*~ + +%build +%configure +make + +%install +make DESTDIR=$RPM_BUILD_ROOT install +mkdir -p $RPM_BUILD_ROOT%{_libdir} +tar xzf %{SOURCE1} -C $RPM_BUILD_ROOT%{_libdir} +mv $RPM_BUILD_ROOT%{_libdir}/FlightGear-%{version} $RPM_BUILD_ROOT%{_libdir}/FlightGear + +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications/ +cp %{SOURCE3} $RPM_BUILD_ROOT/%{_datadir}/applications/ + +desktop-file-install --vendor flightgear --delete-original \ + --dir $RPM_BUILD_ROOT%{_datadir}/applications \ + $RPM_BUILD_ROOT%{_datadir}/applications/flightgear.desktop + +mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps +cp %{SOURCE10} $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}.png + +%post + +%postun + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-, root, root) +%doc README COPYING AUTHORS docs-mini/ +%{_bindir}/* +%{_libdir}/FlightGear +%{_datadir}/pixmaps/%{name}.png +%{_datadir}/applications/flightgear.desktop +%_mandir/man1/* + +%changelog +* Sun Oct 26 2003 Richard Keech +- updated for 0.9.3 + +* Sun Dec 29 2002 Richard Keech +- re-worked spec for Red Hat for 0.9.1. + Adapted from the one created + by Lenny Cartier , + Guillaume Cottenceau et al. +