]>
Commit | Line | Data |
---|---|---|
a50ef3ef MK |
1 | # TODO: |
2 | # - Make FlightGear-extra-planes for subset of planes from | |
3 | # http://www.flightgear.org/Downloads/aircraft/index.shtml | |
4 | ||
b64a59c0 JR |
5 | # |
6 | # Conditional build: | |
7 | %bcond_without data # don't build data package (for quick test build) | |
8 | # | |
d34c95c6 | 9 | Summary: Free Flight Simulator |
610acf07 | 10 | Summary(pl.UTF-8): darmowy symulator lotu |
d34c95c6 | 11 | Name: FlightGear |
28a4c320 BS |
12 | Version: 2016.2.1 |
13 | Release: 1 | |
c1c0842e | 14 | License: GPL |
711dfa5c | 15 | Group: X11/Applications/Games |
28a4c320 BS |
16 | Source0: http://downloads.sourceforge.net/project/flightgear/release-2016.2/flightgear-%{version}.tar.bz2 |
17 | # Source0-md5: 04b4817ba9d8953013c43f5f201b495f | |
18 | Source1: http://downloads.sourceforge.net/project/flightgear/release-2016.2//%{name}-%{version}-data.tar.bz2 | |
19 | # Source1-md5: f118026487513e16d0aad185d3818f7b | |
46bc8cac | 20 | Patch0: flightgear-cmake.patch |
8f23fd40 | 21 | URL: http://www.flightgear.org/ |
a153cd5e | 22 | BuildRequires: OpenAL-devel |
d34c95c6 | 23 | BuildRequires: OpenGL-devel |
aaa9c0e2 | 24 | BuildRequires: OpenSceneGraph-devel |
46bc8cac | 25 | BuildRequires: SimGear-devel = %{version} |
175f976e | 26 | BuildRequires: cmake |
aaa9c0e2 | 27 | BuildRequires: flite-devel |
175f976e | 28 | BuildRequires: fltk-gl-devel |
a3031fc6 | 29 | BuildRequires: freeglut-devel |
aaa9c0e2 | 30 | BuildRequires: libgsm-devel |
c1c0842e | 31 | BuildRequires: libstdc++-devel |
aaa9c0e2 JR |
32 | BuildRequires: speex-devel |
33 | BuildRequires: sqlite3-devel | |
a3031fc6 | 34 | BuildRequires: plib-devel >= 1.8.5-3 |
d34c95c6 | 35 | BuildRequires: zlib-devel |
175f976e | 36 | Requires: %{name}-data = %{version} |
8f23fd40 | 37 | Requires: OpenGL |
46bc8cac | 38 | Requires: OpenSceneGraph-plugins |
cac4e65d | 39 | Requires: plib >= 1.8.4 |
d34c95c6 SZ |
40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
41 | ||
175f976e | 42 | %define _noautoreqdep libGL.so.1 libGLU.so.1 libGLcore.so.1 |
28a4c320 | 43 | %define filterout -flto |
d34c95c6 SZ |
44 | |
45 | %description | |
711dfa5c AM |
46 | The Flight Gear project is working to create a sophisticated flight |
47 | simulator framework for the development and pursuit of interesting | |
48 | flight simulator ideas. We are developing a solid basic sim that can | |
49 | be expanded and improved upon by anyone interested in contributing. | |
d34c95c6 | 50 | |
3dc5f513 JR |
51 | %description -l pl.UTF-8 |
52 | Projekt Flight Gear to wyrafinowany symulator lotów pozwalający | |
53 | rozpowszechniać idee tego typu symulacji. | |
d34c95c6 | 54 | |
175f976e ER |
55 | %package data |
56 | Summary: FlightGear base scenery and data files | |
57 | License: GPL v2+ | |
58 | Group: Applications/Games | |
175f976e | 59 | BuildArch: noarch |
175f976e ER |
60 | |
61 | %description data | |
62 | This package contains the base scenery for FlightGear and must be | |
63 | installed | |
64 | ||
d34c95c6 | 65 | %prep |
b64a59c0 | 66 | %setup -q -n flightgear-%{version} %{?with_data:-a 1} |
3fc14c12 | 67 | %patch0 -p1 |
a50ef3ef | 68 | |
175f976e ER |
69 | cat > runfgfs <<'EOF' |
70 | #!/bin/sh | |
71 | exec %{_bindir}/fgfs --fg-root=%{_datadir}/games/%{name}/fgdata "$@" | |
72 | EOF | |
dc205acb | 73 | |
d34c95c6 | 74 | %build |
46bc8cac BS |
75 | install -d build |
76 | cd build | |
aaa9c0e2 JR |
77 | %cmake .. \ |
78 | -DSYSTEM_SQLITE:BOOL=ON | |
79 | ||
d34c95c6 SZ |
80 | %{__make} |
81 | ||
82 | %install | |
83 | rm -rf $RPM_BUILD_ROOT | |
46bc8cac | 84 | install -d $RPM_BUILD_ROOT%{_datadir}/games/%{name} |
aaa9c0e2 | 85 | |
46bc8cac | 86 | %{__make} -C build install \ |
f0896299 | 87 | DESTDIR=$RPM_BUILD_ROOT |
d34c95c6 | 88 | |
175f976e | 89 | install -p runfgfs $RPM_BUILD_ROOT%{_bindir} |
b64a59c0 | 90 | %if %{with data} |
175f976e | 91 | cp -a fgdata $RPM_BUILD_ROOT%{_datadir}/games/%{name} |
b64a59c0 | 92 | %endif |
d34c95c6 | 93 | |
d34c95c6 SZ |
94 | %clean |
95 | rm -rf $RPM_BUILD_ROOT | |
96 | ||
97 | %files | |
98 | %defattr(644,root,root,755) | |
46bc8cac | 99 | %doc AUTHORS NEWS docs-mini/* |
fcf6484d | 100 | %attr(755,root,root) %{_bindir}/* |
2819a467 | 101 | %{_mandir}/*/* |
175f976e | 102 | |
b64a59c0 | 103 | %if %{with data} |
175f976e ER |
104 | %files data |
105 | %defattr(644,root,root,755) | |
106 | %{_datadir}/games/%{name} | |
b64a59c0 | 107 | %endif |