]> git.pld-linux.org Git - packages/FlightGear.git/blob - FlightGear.spec
- typo
[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):    darmowy symulator lotu
7 Name:           FlightGear
8 Version:        0.9.10
9 Release:        1
10 License:        GPL
11 Group:          X11/Applications/Games
12 Source0:        ftp://ftp.flightgear.org/pub/fgfs/Source/%{name}-%{version}.tar.gz
13 # Source0-md5:  f4b89c9cafc18d56beab77a04f1ebdce
14 Source1:        ftp://ftp.flightgear.org/pub/fgfs/Shared/fgfs-base-%{version}.tar.bz2
15 # Source1-md5:  0ff82689a1877de95490c429e717d8a2
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:         %{name}-libs.patch
19 URL:            http://www.flightgear.org/
20 BuildRequires:  OpenAL-devel
21 BuildRequires:  OpenGL-devel
22 BuildRequires:  SimGear-devel >= 0.3.10
23 BuildRequires:  XFree86-devel
24 BuildRequires:  autoconf >= 2.52
25 BuildRequires:  automake
26 BuildRequires:  glut-devel
27 BuildRequires:  libstdc++-devel
28 BuildRequires:  libxml-devel
29 BuildRequires:  metakit-devel >= 2.4.3
30 BuildRequires:  plib-devel >= 1.8.4
31 BuildRequires:  zlib-devel
32 Requires:       OpenGL
33 Requires:       SimGear >= 0.3.10
34 Requires:       plib >= 1.8.4
35 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37 %define _noautoreqdep   libGL.so.1 libGLU.so.1 libGLcore.so.1
38
39 %description
40 The Flight Gear project is working to create a sophisticated flight
41 simulator framework for the development and pursuit of interesting
42 flight simulator ideas. We are developing a solid basic sim that can
43 be expanded and improved upon by anyone interested in contributing.
44
45 %description -l pl
46 Projekt Flight Gear to wyrafinowany symulator lotów pozwalaj±cy
47 rozpowszechniaæ idee tego typu symulacji.
48
49 %prep
50 %setup -q -a 1 -a 2
51 %patch0 -p1
52
53 find %{name} -name 'CVS' -type d | xargs rm -rf
54
55 %build
56 rm -f missing
57 %{__aclocal}
58 %{__autoconf}
59 %{__automake}
60 %configure \
61         --with-network-olk \
62         --with-multiplayer \
63         --libdir=%{_datadir}/games
64 %{__make}
65
66 %install
67 rm -rf $RPM_BUILD_ROOT
68 install -d $RPM_BUILD_ROOT%{_datadir}/games
69
70 %{__make} install \
71         DESTDIR=$RPM_BUILD_ROOT
72
73 echo "#!/bin/sh" > runfgfs
74 echo "exec %{_bindir}/fgfs --fg-root=%{_datadir}/games/%{name} \$*" >> runfgfs
75 install runfgfs $RPM_BUILD_ROOT%{_bindir}
76 cp -a %{name} $RPM_BUILD_ROOT%{_datadir}/games
77 cp -R data $RPM_BUILD_ROOT%{_datadir}/games/%{name}
78
79 %clean
80 rm -rf $RPM_BUILD_ROOT
81
82 %files
83 %defattr(644,root,root,755)
84 %doc AUTHORS NEWS %{name}/Docs/*
85 %attr(755,root,root) %{_bindir}/*
86 %{_datadir}/games/%{name}
87 %{_mandir}/*/*
This page took 0.065699 seconds and 3 git commands to generate.