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