1 |
Summary: The FlightGear Flight Simulator |
2 |
Name: flightgear |
3 |
Version: 3.2.0 |
4 |
Release: %mkrel 3 |
5 |
License: GPLv2+ |
6 |
Group: Games/Simulation |
7 |
URL: http://www.flightgear.org/ |
8 |
Source0: http://mirrors.ibiblio.org/pub/mirrors/flightgear/ftp/Source/%{name}-%{version}.tar.bz2 |
9 |
Patch0: flightgear-3.2.0-mga-static-FGAdminUI.patch |
10 |
|
11 |
BuildRequires: boost-devel |
12 |
BuildRequires: cmake |
13 |
BuildRequires: flite-devel |
14 |
BuildRequires: fltk-devel |
15 |
BuildRequires: freeglut-devel |
16 |
BuildRequires: gsm-devel |
17 |
BuildRequires: plib-devel |
18 |
BuildRequires: pkgconfig(dbus-1) |
19 |
BuildRequires: pkgconfig(freealut) |
20 |
BuildRequires: pkgconfig(gl) |
21 |
BuildRequires: pkgconfig(openal) |
22 |
BuildRequires: pkgconfig(openthreads) |
23 |
BuildRequires: pkgconfig(openscenegraph) |
24 |
BuildRequires: pkgconfig(speex) |
25 |
BuildRequires: pkgconfig(sqlite3) |
26 |
BuildRequires: pkgconfig(udev) |
27 |
BuildRequires: pkgconfig(xmu) |
28 |
BuildRequires: pkgconfig(zlib) |
29 |
BuildRequires: simgear-devel >= %{version} |
30 |
Requires: flightgear-data = %{version} |
31 |
Recommends: fgrun |
32 |
Provides: FlightGear = %{version}-%{release} |
33 |
|
34 |
%description |
35 |
The Flight Gear project is working to create a sophisticated flight simulator |
36 |
framework for the development and pursuit of interesting flight simulator |
37 |
ideas. We are developing a solid basic sim that can be expanded and improved |
38 |
upon by anyone interested in contributing. |
39 |
|
40 |
%prep |
41 |
%setup -q -n %{name}-%{version} |
42 |
%apply_patches |
43 |
|
44 |
%build |
45 |
%cmake \ |
46 |
-DFG_DATA_DIR=%{_gamesdatadir}/%{name} \ |
47 |
-DSYSTEM_FLITE=ON \ |
48 |
-DSYSTEM_GSM=ON \ |
49 |
-DSYSTEM_SPEEX=ON \ |
50 |
-DSYSTEM_SQLITE=ON \ |
51 |
-DSIMGEAR_SHARED=ON |
52 |
%make |
53 |
|
54 |
%install |
55 |
%makeinstall_std -C build |
56 |
|
57 |
install -D package/flightgear.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop |
58 |
|
59 |
pushd icons |
60 |
mkdir -p %{buildroot}%{_iconsdir}/hicolor |
61 |
for i in `find * -maxdepth 0 -type d` |
62 |
do |
63 |
cp -fr $i %{buildroot}%{_iconsdir}/hicolor/ |
64 |
done |
65 |
mkdir -p %{buildroot}%{_iconsdir}/hicolor/scalable/apps/ |
66 |
mv %{buildroot}%{_iconsdir}/hicolor/scalable/*.svg %{buildroot}%{_iconsdir}/hicolor/scalable/apps/ |
67 |
popd |
68 |
|
69 |
%files |
70 |
%doc README AUTHORS docs-mini/ |
71 |
%{_bindir}/* |
72 |
%{_datadir}/%{name} |
73 |
%{_datadir}/applications/%{name}.desktop |
74 |
%{_iconsdir}/hicolor/*/apps/* |
75 |
%{_mandir}/man1/* |