From 294c08136968326a71aa49c0625fc4ab376b2468 Mon Sep 17 00:00:00 2001 From: ThorstenB Date: Sat, 30 Jun 2012 10:48:00 +0200 Subject: [PATCH] Update RedHat rpm spec Adapt to CMake Use shared SimGear libraries Drop separate icon (use icon from package) Update to 2.8.0 (RedHat package dependencies may still be inaccurate/incomplete) --- package/RedHat/README | 19 ++++++++---------- package/RedHat/flightgear.48.png | Bin 2868 -> 0 bytes package/RedHat/flightgear.desktop | 9 +++++---- package/RedHat/flightgear.spec | 32 ++++++++++++++++++------------ 4 files changed, 32 insertions(+), 28 deletions(-) delete mode 100644 package/RedHat/flightgear.48.png diff --git a/package/RedHat/README b/package/RedHat/README index a82b07039..357149e4c 100644 --- a/package/RedHat/README +++ b/package/RedHat/README @@ -1,8 +1,7 @@ -Building Flight Gear RPM package for Red Hat +Building FlightGear RPM package for Red Hat -G.Richard Keech - -2003-10-29 +Initial version: G.Richard Keech , 2003-10-29 +Last updated: The FlightGear Project, 2012-06-30 This directory contains the files which, along with the source code tar files, can be used to build @@ -16,20 +15,18 @@ To build flighgear from source do the following: 1. copy flightgear.spec to /usr/src/redhat/SPECS/ -2. copy flightgear.48.png to /usr/src/redhat/SOURCES +2. copy flightgear.desktop 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 +3. obtain FlightGear-data-2.8.0.tar.bz2 and flightgear-2.8.0.tar.bz2 and copy them into /usr/src/redhat/SOURCES. -5. obtain and install SimGear (>= 0.3.4). +4. obtain and install SimGear (= 2.8.0). -6. look in the BuildRequires section of flightgear.spec +5. look in the BuildRequires section of flightgear.spec and check that all the packages referred to are installed. -7. cd /usr/src/redhat/SPECS +6. 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 deleted file mode 100644 index 8e087622198d7ce810b2bf2a3f5bec470a9db30b..0000000000000000000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1kfsXc9ZCD<@xi>DLA)`Um6t4`%b--CbWa`+Ix0Zr%(jJebUW z?$e*Td-?kI6K6j4(kFQ7&f5|7WZb-eeSbEoNB8gS?A~JRjK&97u3lNxOAN%-EKi6OD{ncN;{F%@E(%CboW0TqV8awgabDNM? zdd^@4#fA`a@`HoJoP1VK_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 +BuildRequires: plib >= 1.8.0, SimGear = %{version} +BuildRequires: XFree86-devel, XFree86-Mesa-libGL, XFree86-Mesa-libGLU, gcc, zlib-devel +BuildRequires: OpenSceneGraph >= 3.0.0 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 +The FlightGear 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/*~ +%setup -q -n %{name}-%{version} %build -%configure +cmake -DSIMGEAR_SHARED:BOOL=ON -DENABLE_TESTS:BOOL=OFF -DFG_DATA_DIR:STRING="/usr/share/flightgear" -DJPEG_FACTORY:BOOL=ON -DCMAKE_INSTALL_PREFIX:PATH="/usr" make %install -make DESTDIR=$RPM_BUILD_ROOT install +make install DESTDIR=$RPM_BUILD_ROOT 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 @@ -46,8 +46,9 @@ desktop-file-install --vendor flightgear --delete-original \ --dir $RPM_BUILD_ROOT%{_datadir}/applications \ $RPM_BUILD_ROOT%{_datadir}/applications/flightgear.desktop +# install icon mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps -cp %{SOURCE10} $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}.png +cp icons/fg-128.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/FlightGear.png %post @@ -66,6 +67,11 @@ rm -rf $RPM_BUILD_ROOT %_mandir/man1/* %changelog +* Thu Jun 28 2012 Thorsten Brehm +- Updated to 2.8.0 +- Converted to CMake +- Use shared SimGear libraries + * Sun Oct 26 2003 Richard Keech - updated for 0.9.3