Summary: The FlightGear Flight Simulator Name: flightgear Version: 2.6.0 Release: %mkrel 3 License: GPLv2+ Group: Games/Other Source0: http://mirrors.ibiblio.org/pub/mirrors/flightgear/ftp/Source/%{name}-%{version}.tar.bz2 Patch0: flightgear-2.6.0-mandriva-linkage.patch Patch1: flightgear-2.6.0-fedora-check-for-%n-in-printf-format-string.patch Patch2: flightgear-2.6.0-fedora-use-snprintf-for-rotor-strings.patch Source11: %{name}.16.png Source12: %{name}.32.png Source13: %{name}.48.png BuildRequires: simgear-devel >= %version BuildRequires: pkgconfig(zlib) BuildRequires: pkgconfig(openal) BuildRequires: pkgconfig(openthreads) BuildRequires: pkgconfig(openscenegraph) BuildRequires: pkgconfig(gl) BuildRequires: pkgconfig(freealut) BuildRequires: boost-devel BuildRequires: plib-devel BuildRequires: fltk-devel BuildRequires: cmake BuildRequires: freeglut-devel BuildRequires: libxmu6-devel Requires: flightgear-base Suggests: fgrun URL: http://www.flightgear.org/ 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 %{name}-%{version} %patch0 -p1 %patch1 -p1 %patch2 -p1 %build %cmake -DFG_DATA_DIR=%{_gamesdatadir}/%{name} %make %install %makeinstall_std -C build mkdir -p %{buildroot}%{_datadir}/applications cat > %{buildroot}%{_datadir}/applications/%{_real_vendor}-%{name}.desktop << EOF [Desktop Entry] Name=Flight Gear Comment=Flight Gear Flight Simulator Exec=fgfs Icon=%{name} Terminal=false Type=Application StartupNotify=true Categories=Game;Simulation; EOF install -m644 %{SOURCE11} -D %{buildroot}%{_miconsdir}/%{name}.png install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/%{name}.png install -m644 %{SOURCE13} -D %{buildroot}%{_liconsdir}/%{name}.png # build doc is useless for end users rm -rf %{buildroot}%{_docdir}/FlightGear %files %doc README AUTHORS docs-mini/ %{_bindir}/* %{_datadir}/applications/%{_real_vendor}-%{name}.desktop %{_miconsdir}/%{name}.png %{_iconsdir}/%{name}.png %{_liconsdir}/%{name}.png %{_mandir}/man1/*