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