Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:lmich
FlightGear
FlightGear.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File FlightGear.spec of Package FlightGear
# # spec file for package FlightGear (Version 0.9.10) # # norootforbuild Name: FlightGear %if 0%{?suse_version} BuildRequires: freeglut-devel gcc-c++ libjpeg-devel openal-devel OpenSceneGraph-devel plib update-desktop-files xorg-x11 # fgrun needs fltk # Be aware that in Build Service games repo # it is built with games:libs repo which has freealut split off from openal. BuildRequires: freealut-devel BuildRequires: fltk-devel BuildRequires: plib-devel %if %suse_version >= 1010 BuildRequires: libdrm-devel %endif # openal is splitted in 10.2 into openal and freealut. # Reccomends tag is handled in SuSE > 1010 %if %suse_version > 1000 Recommends: FlightGear-startup-manual %endif # others distributions then SuSE %else %if 0%{?mandriva_version} BuildRequires: freeglut-devel gcc-c++ libjpeg-devel libdrm-devel openal-devel plib-devel BuildRequires: fltk-devel %else %if 0%{?fedora_version} BuildRequires: freeglut-devel freealut-devel gcc-c++ libjpeg-devel libdrm-devel openal-devel plib-devel BuildRequires: fltk-devel %endif %endif %endif License: GPL Group: Amusements/Games/3D/Simulation Autoreqprov: on Version: 1.0.0 Release: 1 Provides: flightgr Obsoletes: flightgr PreReq: /bin/ln Summary: FlightGear Flight Simulator URL: http://www.flightgear.org/ Source: %{name}-1.0.0-cvs20080723.tar.bz2 %define simgear SimGear-1.0.0 Source1: %{simgear}-cvs.tar.bz2 #URL http://www.flightgear.org/Docs/getstart/getstart.html Source2: FG_getstart.pdf.tar.bz2 #URL: http://sourceforge.net/project/showfiles.php?group_id=65363 Source3: fgrun-1.0.1.tar.bz2 # icons #Source4: fg-icons.tgz %define fgrunversion 1.0.1 # FlightGear patches Patch1: %{name}-1.0.0-browser.patch #Patch2: %{name}-1.0.0-plib_version.patch # SimGear patches Patch11: %{simgear}-strict_alias.patch #Patch12: %{simgear}-plib_version.patch # FGrun patches Patch21: fgrun-suse_prefs.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build Requires: FlightGear-data = %version %description The Flight Gear Flight Simulator project is a free, Open Source, multi-platform, cooperative flight simulator development project. Authors: -------- Raoul Alonzo <amil@las.es> Michele America <nomimarketing@mail.telepac.pt> Michael Basler <pmb@knUUt.de> Jon S. Berndt <jsb@hal-pc.org> Paul Bleisch <pbleisch@acm.org> Jim Brennan <jjb@foothill.net> Bernie Bright <bbright@c031.aone.net.au> Bernhard H. Buckel <buckel@wmad95.mathematik.uni-wuerzburg.de> Gene Buckle <geneb@nwlink.com> Didier Chauveau <chauveau@math.univ-mlv.fr> Oliver Delise <delise@rp-plus.de> Dave Eberly <eberly@magic-software.com> Francine Evans <evans@cs.sunysb.edu> Oscar Everitt <bigoc@premier.net> Jean-loup Gailly and Mark Adler <zlib@quest.jpl.nasa.gov> Thomas Gellekum <tg@ihf.rwth-aachen.de> Jeff Goeke-Smith <jgoeke@voyager.net> Michael I. Gold <gold@puck.asd.sgi.com> Charlie Hotchkiss <chotchkiss@namg.us.anritsu.com> Bruce Jackson of NASA <e.b.jackson@larc.nasa.gov> Richard Kaszeta <bofh@me.umn.edu> Tom Knienieder <knienieder@ms.netwing.at> Reto Koradi <kor@mol.biol.ethz.ch> Bob Kuehne <rpk@sgi.com> Christian Mayer <Vader@t-online.de> David Megginson <david@megginson.com> Eric Mitchell <mitchell@mars.ark.com> Anders Morken <amrken@online.no> Alan Murta <amurta@cs.man.ac.uk> Alexei Novikov <anovikov@heron.itep.ru> Curt Olson <curt@flightgear.org> Tony Peden <apeden@earthlink.net> Robin Peel <robinp@mindspring.com> Friedemann Reinhard <mpt218@faupt212.physik.uni-erlangen.de> Petter Reinholdtsen <pere@games.no> William Riley <riley@technologist.com> Paul Schlyter <pausch@saaf.se> Chris Schoeneman <crs@millpond.engr.sgi.com> Phil Schubert <philings@zedley.com> Jonathan R Shewchuk <Jonathan_R_Shewchuk@ux4.sp.cs.cmu.edu> Gordan Sikic <gsikic@public.srce.hr> Michael Smith <msmith99@flash.net> Durk Talsma <pn_talsma@macmail.psy.uva.nl> Mark Vallevand <Mark.Vallevand@UNISYS.com> Gary R. Van Sickle <tiberius@braemarinc.com> Norman Vine <nhv@laserplot.com> Roland Voegtli <webmaster@sanw.unibe.ch> Carmelo Volpe <carmelo.volpe@csb.ki.se> Darrell Walisser <dwaliss1@purdue.edu> Robert Allan Zeh <raz@cmg.FCNBD.COM> %package startup-manual License: GPL Group: Amusements/Games/3D/Simulation URL: http://www.flightgear.org/Docs/getstart/getstart.html Version: 1.0.0 Release: 1 Summary: FlightGear Manual %description startup-manual The FlightGear Manual Version 1.0.0 December 15, 2007 For FlightGear version 1.0.0. Authors: -------- Michael Basler, Martin Spott, Stuart Buchanan, Jon Berndt, Bernhard Buckel, Cameron Moore, Curt Olson, Dave Perry, Michael Selig, Darrell Walisser, and others #%package fgrun #License: GPL #Group: Amusements/Games/3D/Simulation #URL: http://sourceforge.net/project/showfiles.php?group_id=65363 #Version: 1.0.0 #Release: 1 #Summary: FlightGear Graphical Launcher #Requires: FlightGear = %version #%description fgrun #The FlightGear Graphical Launcher #Authors: #-------- # Bernie Bright <bbright@users.sourceforge.net> # Original author. # Frederic Bouvier <fredb@users.sourceforge.net> # Project admin, %prep # # build only for SuSE 10.0 and higher # because of need to have uptodate some packages (e.g. openal) # or use a libs subproject in games project in Build Service # %setup -n FlightGear-1.0.0-cvs20080723 -q -b 1 -b 3 -a 2 # fgrun patches pushd ../fgrun-%{fgrunversion} %patch21 popd # SimGear patches pushd ../%{simgear} %patch11 popd # FlightGear patches rm -fv docs-mini/README.MSVC* rm -fv docs-mini/README.IRIX docs-mini/README.MacOS %build rm -rf /var/tmp/tmpinstall mkdir /var/tmp/tmpinstall export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" # beware where is the X libraries installed (X.org 6.9 vs. 7.x) %if "%(xft-config --prefix)" == "/usr" CONFIGURE_OPTIONS="--prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} \ --infodir=%{_infodir} --sysconfdir=%{_sysconfdir} --without-logging \ --x-includes=/usr/include --x-libraries=/usr/%{_lib}" %else CONFIGURE_OPTIONS="--prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} \ --infodir=%{_infodir} --sysconfdir=%{_sysconfdir} --without-logging" %endif # # SimGear build and install # don't use make %{?jobs:-j%jobs}, fails on some archs everytime # cd ../%{simgear} %{?suse_update_config:%{suse_update_config -f}} autoreconf --force --install CPPFLAGS="-I /var/tmp/tmpinstall/%{_includedir}" ./configure $CONFIGURE_OPTIONS \ --with-jpeg-factory LDFLAGS=-L/var/tmp/tmpinstall/usr/%{_lib} make %{?jobs:-j%jobs} make DESTDIR=$RPM_BUILD_ROOT install make DESTDIR=/var/tmp/tmpinstall install cd ../%{name}-%{version}* # # FlightGear finally # don't use make %{?jobs:-j%jobs}, fails sometimes on every archs. # should be fixed now autoreconf --force --install %{?suse_update_config:%{suse_update_config -f}} # beware where is the X libraries installed (X.org 6.9 vs. 7.x) %if "%(xft-config --prefix)" == "/usr" ./configure $CONFIGURE_OPTIONS --with-x --with-simgear=/var/tmp/tmpinstall/usr \ --enable-osgviewer \ LDFLAGS=-L/var/tmp/tmpinstall/usr/%{_lib} \ --x-includes=/usr/include --x-libraries=/usr/%{_lib} %else ./configure $CONFIGURE_OPTIONS --with-x --with-simgear=/var/tmp/tmpinstall/usr \ --enable-osgviewer \ LDFLAGS=-L/var/tmp/tmpinstall/usr/%{_lib} %endif make %{?jobs:-j%jobs} # use sdl instead of glut if some problems to run FG, no need to do so now, freeglut is fixed in Suse # --enable-sdl # install icons and License for i in 16 32 48 64 128; do install -D -m 0644 icons/fg-${i}.png $RPM_BUILD_ROOT/usr/share/icons/hicolor/${i}x${i}/apps/FG.png done install -D -m 0644 icons/README $RPM_BUILD_ROOT/usr/share/doc/packages/FlightGear/README_icons # now build fgrun application #cd ../fgrun-%{fgrunversion} #%{?suse_update_config:%{suse_update_config -f}} #%if "%(xft-config --prefix)" == "/usr" #%configure --with-simgear=/var/tmp/tmpinstall/usr --with-x LDFLAGS=-L/var/tmp/tmpinstall/usr/%{_lib} \ # --x-includes=/usr/include --x-libraries=/usr/%{_lib} #%else #%configure --with-simgear=/var/tmp/tmpinstall/usr --with-x LDFLAGS=-L/var/tmp/tmpinstall/usr/%{_lib} #%endif #make %{?jobs:-j%jobs} %install make DESTDIR=$RPM_BUILD_ROOT install mkdir SimGear cp ../%{simgear}/{AUTHORS,COPYING,NEWS,README,TODO} SimGear # fgrun #mkdir FGrun #cp ../fgrun-%{fgrunversion}/{AUTHORS,COPYING,ChangeLog,NEWS,README} FGrun #pushd ../fgrun-%{fgrunversion} #make DESTDIR=$RPM_BUILD_ROOT install #popd %if 0%{?suse_version} > 0 %suse_update_desktop_file -c %name FlightGear "Flight Simulator" fgfs "FG" Game Simulation %endif %clean rm -rf $RPM_BUILD_ROOT %files %defattr (-, root, root) %doc AUTHORS COPYING ChangeLog NEWS README Thanks SimGear/ docs-mini/ %doc %{_mandir}/man1/* /usr/bin/* #%exclude /usr/bin/fgrun /usr/include/* /usr/%{_lib}/lib* %if 0%{?suse_version} > 0 /usr/share/applications/%name.desktop %endif /usr/share/icons/hicolor/*/apps/FG.png %exclude /usr/%{_lib}/*.a %exclude /usr/include/simgear/*.h %exclude /usr/include/simgear/*/*.h %exclude /usr/include/simgear/*/*.hxx %exclude /usr/include/simgear/*/*/*.hxx %files startup-manual %defattr (-, root, root) %doc FG_getstart.pdf #%files fgrun #%defattr (-, root, root) #%doc FGrun #/usr/bin/fgrun #/usr/share/locale/*/LC_MESSAGES/fgrun.mo %changelog -n FlightGear * Wed Feb 14 2007 - lmichonvic@suse.cz - Update to version 0.9.11-pre1 * Wed Feb 14 2007 - mvaner@suse.cz - Fixed array overflow, #242362 (array_overflow.patch) * Tue Oct 24 2006 - ro@suse.de - added freealut-devel to buildrequires * Tue May 30 2006 - lmichnovic@suse.cz - 4 unused files deleted due to legal issue, #78371 - FG doesn't need metakit since version 0.9.3, wiped out - adjusted browser.patch * Fri May 19 2006 - lmichnovic@suse.cz - update to version 0.9.10 - many improvements to the multi-player mode - updated manual - new and updated aircrafts - some bugfixes - compiling without SDL support (freeglut in SuSE is fixed) * Fri Jan 27 2006 - nadvornik@suse.cz - fixed BuildRequires * Wed Jan 25 2006 - mls@suse.de - converted neededforbuild to BuildRequires * Thu Dec 15 2005 - lmichnovic@suse.cz - added 2 patches from upstream, which fixes gcc warnings, obsoletes implicit_decl patch * Tue Nov 29 2005 - lmichnovic@suse.cz - fixed build fail on ia64, fixed static linkink against libstdc++ in metakit * Wed Nov 23 2005 - lmichnovic@suse.cz - upgrade to version 0.9.9 It doesn't contain problematic source code any more (bug #78371). It can be builded for SuSE version 10.0 and higher. Build with make %%{?jobs:-j%%jobs} fail sometimes. - added fno-strict-aliasing option into C[XX]FLAGS - plain desktop file is created in spec file * Wed Nov 02 2005 - lmichnovic@suse.cz - fixed strict aliasing, which breaks autobuild on ppc64 - patch reorder * Mon Oct 24 2005 - lmichnovic@suse.cz - fixed invalid extra qualification and definition order of functions for build with new gcc 4.1 * Tue Oct 11 2005 - lmichnovic@suse.cz - enabled sdl (without sdl it doesn't work with freeglut >= 2.4) * Wed Sep 28 2005 - dmueller@suse.de - add norootforbuild * Mon Sep 26 2005 - lmichnovic@suse.cz - fixed gcc warnings (uninitialised variables & missing includes) * Sun Sep 25 2005 - ro@suse.de - fix implicit declaration * Wed Jul 13 2005 - ltinkl@suse.cz - fix C++ testcase (#95084) * Wed Apr 27 2005 - meissner@suse.de - Upgraded FlightGear to 0.9.8, SimGear to 0.3.8. - fixed gcc4 problems. - split off FlightGear-data (now noarch)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor