From f0f7f07ec96f9bc05a20daba31dc39723fa891a4 Mon Sep 17 00:00:00 2001 From: curt Date: Tue, 28 Oct 2003 20:52:49 +0000 Subject: [PATCH] Initial revision of the RedHat package building .spec file. --- package/RedHat/README | 35 ++++++++++++++ package/RedHat/flightgear.48.png | Bin 0 -> 2868 bytes package/RedHat/flightgear.desktop | 7 +++ package/RedHat/flightgear.spec | 77 ++++++++++++++++++++++++++++++ 4 files changed, 119 insertions(+) create mode 100644 package/RedHat/README create mode 100644 package/RedHat/flightgear.48.png create mode 100644 package/RedHat/flightgear.desktop create mode 100644 package/RedHat/flightgear.spec 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 0000000000000000000000000000000000000000..8e087622198d7ce810b2bf2a3f5bec470a9db30b GIT binary patch literal 2868 zcmV-43(NG0P)^k0_~461cxg_@BkhO7~y~jfCK=> z5VD*u8kUP7%RP+kw}ntH2Y>tB>(k}!6L+eq4IV5Ls+%h5w%PFVqQ4k1Y8)z&^4w0m_Zf=94 zefp!4W>(^?SOrqFSc1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yd#?>wo;qjT`T6K0fU9x@n=s!e4*u2fJ5qP3p9o!~Wi( zYrKE&ez#ifbgJoMe(ob5kwA7jEX%vu4g}nOidlx?U zX#lai=m^Sjmf>z;VLggeq703bxi?s0<~j!3r%%1|%~uBN!|A>G%5ZgO=U#_#I!^l` z1^pAH;g#+o9&0AsCk7A%1F&H77E%H@I-}EgBZ&l1yk^ z3JR4~naM)waj2p~2s(!8B!v)4%RO2W_76whPSx#nq9KqJS~eQY)LM~}+Sdqr2*yP! zgpgZ&2!qI;%SB445C{ab>>^>L^I>}jQ1Bi}cL9(q1RJdPVQ@z*J+yRX5ix}1xkyH% z0Aq_jScr|8(L#U<=@P0KvqWFsxisQHhXcsj3vbL>Bm@Q`yMQI(GmF6*!2 zBLhal0QaQ}fwCj1Se+0MT2!AsyJ#Qgqi`@Tkp=~K_oXJ#g0-G1PBSj)cNKz{h&|>MEFrzzEtvaX=OLJxT7Eq=$Y|ZW{v_X^%fCUQ6STvKI#Uo+}K`H|kEYsdRJD`Ga z0cSgbfaGx*3~Jp8sBo1J1;uhYvqZHnafx!lBWer$1lw%sa~XM+NziiE1H$+y=6`e+ z^H6mmDXucJIkI8<*QJV-lDmv$&|^j`eALV=L@<;I*25$0AxM9yZF!p}rT+)y= 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. +