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