1 |
Summary: The FlightGear Flight Simulator |
2 |
Name: flightgear |
3 |
Version: 2.4.0 |
4 |
Release: %mkrel 2 |
5 |
License: GPLv2+ |
6 |
Group: Games/Other |
7 |
Source0: http://mirrors.ibiblio.org/pub/mirrors/flightgear/ftp/Source/%{name}-%{version}.tar.bz2 |
8 |
Source11: %{name}.16.png |
9 |
Source12: %{name}.32.png |
10 |
Source13: %{name}.48.png |
11 |
BuildRequires: simgear-devel >= %version |
12 |
BuildRequires: pkgconfig(zlib) |
13 |
BuildRequires: pkgconfig(openal) |
14 |
BuildRequires: pkgconfig(openthreads) |
15 |
BuildRequires: pkgconfig(openscenegraph) |
16 |
BuildRequires: pkgconfig(gl) |
17 |
BuildRequires: pkgconfig(freealut) |
18 |
BuildRequires: boost-devel |
19 |
BuildRequires: plib-devel |
20 |
BuildRequires: fltk-devel |
21 |
Requires: flightgear-base |
22 |
Suggests: fgrun |
23 |
URL: http://www.flightgear.org/ |
24 |
Provides: FlightGear = %{version}-%{release} |
25 |
|
26 |
%description |
27 |
The Flight Gear project is working to create a sophisticated flight simulator |
28 |
framework for the development and pursuit of interesting flight simulator |
29 |
ideas. We are developing a solid basic sim that can be expanded and improved |
30 |
upon by anyone interested in contributing. |
31 |
|
32 |
%prep |
33 |
%setup -q -n %{name}-%{version} |
34 |
|
35 |
%build |
36 |
%configure2_5x --bindir=%{_gamesbindir} \ |
37 |
--datadir=%{_gamesdatadir} |
38 |
%make |
39 |
|
40 |
%install |
41 |
rm -rf %{buildroot} |
42 |
%makeinstall_std |
43 |
|
44 |
mkdir -p %{buildroot}%{_datadir}/applications |
45 |
cat > %{buildroot}%{_datadir}/applications/%{_real_vendor}-%{name}.desktop << EOF |
46 |
[Desktop Entry] |
47 |
Name=Flight Gear |
48 |
Comment=Flight Gear Flight Simulator |
49 |
Exec=%{_gamesbindir}/fgfs |
50 |
Icon=%{name} |
51 |
Terminal=false |
52 |
Type=Application |
53 |
StartupNotify=true |
54 |
Categories=Game;Simulation; |
55 |
EOF |
56 |
|
57 |
install -m644 %{SOURCE11} -D %{buildroot}%{_miconsdir}/%{name}.png |
58 |
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/%{name}.png |
59 |
install -m644 %{SOURCE13} -D %{buildroot}%{_liconsdir}/%{name}.png |
60 |
|
61 |
%files |
62 |
%doc README AUTHORS docs-mini/ |
63 |
%{_gamesbindir}/* |
64 |
%{_datadir}/applications/%{_real_vendor}-%{name}.desktop |
65 |
%{_miconsdir}/%{name}.png |
66 |
%{_iconsdir}/%{name}.png |
67 |
%{_liconsdir}/%{name}.png |
68 |
%{_mandir}/man1/* |