1 |
Summary: The FlightGear Flight Simulator |
2 |
Name: flightgear |
3 |
Version: 2.12.1 |
4 |
Release: %mkrel 1 |
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 |
BuildRequires: simgear-devel >= %version |
10 |
BuildRequires: pkgconfig(zlib) |
11 |
BuildRequires: pkgconfig(openal) |
12 |
BuildRequires: pkgconfig(openthreads) |
13 |
BuildRequires: pkgconfig(openscenegraph) |
14 |
BuildRequires: pkgconfig(gl) |
15 |
BuildRequires: pkgconfig(freealut) |
16 |
BuildRequires: boost-devel |
17 |
BuildRequires: plib-devel |
18 |
BuildRequires: fltk-devel |
19 |
BuildRequires: udev-devel |
20 |
BuildRequires: cmake |
21 |
BuildRequires: freeglut-devel |
22 |
BuildRequires: pkgconfig(xmu) |
23 |
Requires: flightgear-data = %{version} |
24 |
Suggests: fgrun |
25 |
URL: http://www.flightgear.org/ |
26 |
Provides: FlightGear = %{version}-%{release} |
27 |
|
28 |
%description |
29 |
The Flight Gear project is working to create a sophisticated flight simulator |
30 |
framework for the development and pursuit of interesting flight simulator |
31 |
ideas. We are developing a solid basic sim that can be expanded and improved |
32 |
upon by anyone interested in contributing. |
33 |
|
34 |
%prep |
35 |
%setup -q -n %{name}-%{version} |
36 |
%patch0 -p1 |
37 |
|
38 |
%build |
39 |
%cmake \ |
40 |
-DFG_DATA_DIR=%{_gamesdatadir}/%{name} \ |
41 |
-DSIMGEAR_SHARED=ON \ |
42 |
-DJPEG_FACTORY=ON |
43 |
%make |
44 |
|
45 |
%install |
46 |
%makeinstall_std -C build |
47 |
|
48 |
install -D package/flightgear.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop |
49 |
|
50 |
for i in {16,32,48,64,128} |
51 |
do |
52 |
install -D icons/fg-${i}.png %{buildroot}%{_iconsdir}/hicolor/${i}x${i}/apps/%{name}.png |
53 |
done |
54 |
|
55 |
# build doc is useless for end users |
56 |
rm -rf %{buildroot}%{_docdir}/FlightGear |
57 |
|
58 |
%files |
59 |
%doc README AUTHORS docs-mini/ |
60 |
%{_bindir}/* |
61 |
%{_datadir}/applications/%{name}.desktop |
62 |
%{_iconsdir}/hicolor/*/apps/*.png |
63 |
%{_mandir}/man1/* |