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