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