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