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