1 |
Summary: The FlightGear Flight Simulator |
2 |
Name: flightgear |
3 |
Version: 2016.3.1 |
4 |
Release: %mkrel 1 |
5 |
License: GPLv2+ |
6 |
Group: Games/Simulation |
7 |
URL: http://www.flightgear.org/ |
8 |
Source0: https://downloads.sf.net/flightgear/%{name}-%{version}.tar.bz2 |
9 |
Source1: flightgear-launcher.desktop |
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: qt5-devel |
19 |
BuildRequires: pkgconfig(dbus-1) |
20 |
BuildRequires: pkgconfig(freealut) |
21 |
BuildRequires: pkgconfig(gl) |
22 |
BuildRequires: pkgconfig(openal) |
23 |
BuildRequires: pkgconfig(openthreads) |
24 |
BuildRequires: pkgconfig(openscenegraph) |
25 |
BuildRequires: pkgconfig(speex) |
26 |
BuildRequires: pkgconfig(speexdsp) |
27 |
BuildRequires: pkgconfig(sqlite3) |
28 |
BuildRequires: pkgconfig(udev) |
29 |
BuildRequires: pkgconfig(xmu) |
30 |
BuildRequires: pkgconfig(zlib) |
31 |
BuildRequires: simgear-devel >= %{version} |
32 |
Requires: flightgear-data = %{version} |
33 |
Provides: FlightGear = %{version}-%{release} |
34 |
|
35 |
%description |
36 |
The Flight Gear project is working to create a sophisticated flight simulator |
37 |
framework for the development and pursuit of interesting flight simulator |
38 |
ideas. We are developing a solid basic sim that can be expanded and improved |
39 |
upon by anyone interested in contributing. |
40 |
|
41 |
%prep |
42 |
%setup -q |
43 |
%autopatch -p1 |
44 |
|
45 |
%build |
46 |
%cmake \ |
47 |
-DBUILD_SHARED_LIBS=OFF \ |
48 |
-DFG_DATA_DIR=%{_gamesdatadir}/%{name} \ |
49 |
-DSYSTEM_FLITE=ON \ |
50 |
-DSYSTEM_GSM=ON \ |
51 |
-DSYSTEM_SPEEX=ON \ |
52 |
-DSYSTEM_SQLITE=ON \ |
53 |
-DSIMGEAR_SHARED=ON |
54 |
%make_build |
55 |
|
56 |
%install |
57 |
%make_install -C build |
58 |
|
59 |
install -D package/flightgear.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop |
60 |
install %{SOURCE1} %{buildroot}%{_datadir}/applications/ |
61 |
|
62 |
pushd icons |
63 |
mkdir -p %{buildroot}%{_iconsdir}/hicolor |
64 |
for i in `find * -maxdepth 0 -type d` |
65 |
do |
66 |
cp -fr $i %{buildroot}%{_iconsdir}/hicolor/ |
67 |
done |
68 |
mkdir -p %{buildroot}%{_iconsdir}/hicolor/scalable/apps/ |
69 |
mv %{buildroot}%{_iconsdir}/hicolor/scalable/*.svg %{buildroot}%{_iconsdir}/hicolor/scalable/apps/ |
70 |
popd |
71 |
|
72 |
%files |
73 |
%doc README AUTHORS docs-mini/ |
74 |
%{_bindir}/* |
75 |
%{_datadir}/applications/%{name}.desktop |
76 |
%{_datadir}/applications/%{name}-launcher.desktop |
77 |
%{_iconsdir}/hicolor/*/apps/* |
78 |
%{_mandir}/man1/* |