%define oname FlightGear Summary: The FlightGear Flight Simulator Name: flightgear Version: 2.4.0 Release: %mkrel 0 License: GPLv2+ Group: Games/Other Source0: ftp://ftp.flightgear.org/pub/fgfs/Source/%{oname}-%{version}.tar.gz Source11: %{name}.16.png Source12: %{name}.32.png Source13: %{name}.48.png BuildRequires: simgear-devel >= %version Patch0: FlightGear-0.9.10-fix-x86_64.patch BuildRequires: plib-devel >= 1.8.4 SimGear-devel >= 1.9.1 mesa-common-devel freealut-devel openal-devel zlib-devel BuildRequires: boost-devel Requires: flightgear-base URL: http://www.flightgear.org/ Provides: %{oname} = %{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 %{oname}-%{version} %build %cmake %make %install rm -rf %{buildroot} %makeinstall_std -C build mkdir -p %{buildroot}%{_datadir}/applications cat > %{buildroot}%{_datadir}/applications/%{_real_vendor}-%{name}.desktop << EOF [Desktop Entry] Name=Flight Gear Comment=%{Summary} 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 %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc README AUTHORS docs-mini/ %{_bindir}/* %{_sbindir}/js_server %{_datadir}/applications/%{_real_vendor}-%{name}.desktop %{_miconsdir}/%{name}.png %{_iconsdir}/%{name}.png %{_liconsdir}/%{name}.png %{_mandir}/man1/* %defattr(-,root,root,755) %{_gamesbindir}/* %defattr(644,root,root,755)