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