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