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