]> git.pld-linux.org Git - packages/FlightGear.git/blob - FlightGear.spec
83478ee4c3349597cc6a7b878d452204e9db3750
[packages/FlightGear.git] / FlightGear.spec
1 # TODO:
2 # - Make FlightGear-extra-planes for subset of planes from
3 #   http://www.flightgear.org/Downloads/aircraft/index.shtml
4
5 Summary:        Free Flight Simulator
6 Summary(pl.UTF-8):      darmowy symulator lotu
7 Name:           FlightGear
8 Version:        2.10.0
9 Release:        0.2
10 License:        GPL
11 Group:          X11/Applications/Games
12 Source0:        ftp://mirrors.ibiblio.org/pub/mirrors/flightgear/ftp/Source/flightgear-%{version}.tar.bz2
13 # Source0-md5:  ae7fc8d1e446c5d1fe2aa82ee41dcac5
14 Source1:        ftp://flightgear.wo0t.de/ftp/Shared/FlightGear-data-%{version}.tar.bz2
15 # Source1-md5:  82a9cbc81313195a7ed1aa87a9a2a0b3
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
19 Patch1:         flightgear-shader.patch
20 URL:            http://www.flightgear.org/
21 BuildRequires:  cmake
22 BuildRequires:  OpenAL-devel
23 BuildRequires:  OpenGL-devel
24 BuildRequires:  SimGear-devel = %{version}
25 BuildRequires:  glut-devel
26 BuildRequires:  libstdc++-devel
27 BuildRequires:  libxml-devel
28 BuildRequires:  plib-devel >= 1.8.4
29 BuildRequires:  zlib-devel
30 Requires:       OpenGL
31 Requires:       OpenSceneGraph-plugins
32 Requires:       plib >= 1.8.4
33 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35 %define _noautoreqdep   libGL.so.1 libGLU.so.1 libGLcore.so.1
36
37 %description
38 The Flight Gear project is working to create a sophisticated flight
39 simulator framework for the development and pursuit of interesting
40 flight simulator ideas. We are developing a solid basic sim that can
41 be expanded and improved upon by anyone interested in contributing.
42
43 %description -l pl.UTF-8
44 Projekt Flight Gear to wyrafinowany symulator lotów pozwalający
45 rozpowszechniać idee tego typu symulacji.
46
47 %prep
48 %setup -q -n flightgear-%{version} -a 1
49 %patch0 -p1
50 %patch1 -p1
51
52 find %{name} -name 'CVS' -type d | xargs rm -rf
53
54 %build
55 install -d build
56 cd build
57 %cmake ../
58 %{__make}
59
60 %install
61 rm -rf $RPM_BUILD_ROOT
62 install -d $RPM_BUILD_ROOT%{_datadir}/games/%{name}
63
64 %{__make} -C build install \
65         DESTDIR=$RPM_BUILD_ROOT
66
67 echo "#!/bin/sh" > runfgfs
68 echo "exec %{_bindir}/fgfs --fg-root=%{_datadir}/games/%{name} \$*" >> runfgfs
69 install runfgfs $RPM_BUILD_ROOT%{_bindir}
70 cp -R data $RPM_BUILD_ROOT%{_datadir}/games/%{name}
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75 %files
76 %defattr(644,root,root,755)
77 %doc AUTHORS NEWS docs-mini/*
78 %attr(755,root,root) %{_bindir}/*
79 %{_datadir}/games/%{name}
80 %{_mandir}/*/*
This page took 0.083429 seconds and 2 git commands to generate.