1 |
fwang |
126228 |
Summary: The FlightGear Flight Simulator |
2 |
|
|
Name: flightgear |
3 |
zezinho |
214171 |
Version: 2.6.0 |
4 |
zezinho |
262003 |
Release: %mkrel 3 |
5 |
wally |
91658 |
License: GPLv2+ |
6 |
ennael |
86652 |
Group: Games/Other |
7 |
fwang |
134354 |
Source0: http://mirrors.ibiblio.org/pub/mirrors/flightgear/ftp/Source/%{name}-%{version}.tar.bz2 |
8 |
zezinho |
214178 |
Patch0: flightgear-2.6.0-mandriva-linkage.patch |
9 |
zezinho |
262003 |
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 |
ennael |
86652 |
Source11: %{name}.16.png |
12 |
|
|
Source12: %{name}.32.png |
13 |
|
|
Source13: %{name}.48.png |
14 |
fwang |
126228 |
BuildRequires: simgear-devel >= %version |
15 |
shadow95 |
132334 |
BuildRequires: pkgconfig(zlib) |
16 |
|
|
BuildRequires: pkgconfig(openal) |
17 |
fwang |
126230 |
BuildRequires: pkgconfig(openthreads) |
18 |
|
|
BuildRequires: pkgconfig(openscenegraph) |
19 |
|
|
BuildRequires: pkgconfig(gl) |
20 |
|
|
BuildRequires: pkgconfig(freealut) |
21 |
ennael |
86652 |
BuildRequires: boost-devel |
22 |
fwang |
126231 |
BuildRequires: plib-devel |
23 |
|
|
BuildRequires: fltk-devel |
24 |
zezinho |
214171 |
BuildRequires: cmake |
25 |
zezinho |
262106 |
BuildRequires: freeglut-devel |
26 |
zezinho |
262107 |
BuildRequires: pkgconfig(xmu) |
27 |
ennael |
86652 |
Requires: flightgear-base |
28 |
shadow95 |
132334 |
Suggests: fgrun |
29 |
ennael |
86652 |
URL: http://www.flightgear.org/ |
30 |
fwang |
135076 |
Provides: FlightGear = %{version}-%{release} |
31 |
ennael |
86652 |
|
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 |
fwang |
134354 |
%setup -q -n %{name}-%{version} |
40 |
zezinho |
214178 |
%patch0 -p1 |
41 |
zezinho |
262003 |
%patch1 -p1 |
42 |
|
|
%patch2 -p1 |
43 |
ennael |
86652 |
|
44 |
|
|
%build |
45 |
zezinho |
214195 |
%cmake -DFG_DATA_DIR=%{_gamesdatadir}/%{name} |
46 |
fwang |
126228 |
%make |
47 |
ennael |
86652 |
|
48 |
|
|
%install |
49 |
zezinho |
214171 |
%makeinstall_std -C build |
50 |
ennael |
86652 |
|
51 |
|
|
mkdir -p %{buildroot}%{_datadir}/applications |
52 |
wally |
91658 |
cat > %{buildroot}%{_datadir}/applications/%{_real_vendor}-%{name}.desktop << EOF |
53 |
ennael |
86652 |
[Desktop Entry] |
54 |
|
|
Name=Flight Gear |
55 |
fwang |
126263 |
Comment=Flight Gear Flight Simulator |
56 |
zezinho |
214195 |
Exec=fgfs |
57 |
ennael |
86652 |
Icon=%{name} |
58 |
|
|
Terminal=false |
59 |
|
|
Type=Application |
60 |
|
|
StartupNotify=true |
61 |
fwang |
126228 |
Categories=Game;Simulation; |
62 |
ennael |
86652 |
EOF |
63 |
|
|
|
64 |
|
|
install -m644 %{SOURCE11} -D %{buildroot}%{_miconsdir}/%{name}.png |
65 |
|
|
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/%{name}.png |
66 |
|
|
install -m644 %{SOURCE13} -D %{buildroot}%{_liconsdir}/%{name}.png |
67 |
|
|
|
68 |
zezinho |
214206 |
# build doc is useless for end users |
69 |
|
|
rm -rf %{buildroot}%{_docdir}/FlightGear |
70 |
|
|
|
71 |
ennael |
86652 |
%files |
72 |
|
|
%doc README AUTHORS docs-mini/ |
73 |
zezinho |
214195 |
%{_bindir}/* |
74 |
wally |
91658 |
%{_datadir}/applications/%{_real_vendor}-%{name}.desktop |
75 |
ennael |
86652 |
%{_miconsdir}/%{name}.png |
76 |
|
|
%{_iconsdir}/%{name}.png |
77 |
|
|
%{_liconsdir}/%{name}.png |
78 |
fwang |
134355 |
%{_mandir}/man1/* |