]> git.pld-linux.org Git - packages/FlightGear.git/blob - FlightGear.spec
added libGLcore.so.1 to _noautoreqdep
[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:        1
6 Group:          X11/Applications/Games
7 Group(de):      X11/Applikationen/Spiele
8 Group(pl):      X11/Aplikacje/Gry
9 License:        GPL
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 Requires:       OpenGL
16 BuildRequires:  OpenGL-devel
17 BuildRequires:  XFree86-devel
18 BuildRequires:  libstdc++-devel
19 BuildRequires:  glut-devel
20 BuildRequires:  automake
21 BuildRequires:  autoconf
22 BuildRequires:  plib >= 1.2.0
23 BuildRequires:  SimGear-devel >= 0.0.14
24 BuildRequires:  zlib-devel
25 BuildRequires:  metakit-devel
26 BuildRequireS:  findutils
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%{_datadir}
59 %{__make} DESTDIR="$RPM_BUILD_ROOT" install
60
61 echo "#!/bin/sh" > runfgfs
62 echo "exec %{_bindir}/fgfs --fg-root=%{_datadir}/%{name} \$*" >> runfgfs
63 install runfgfs $RPM_BUILD_ROOT%{_bindir}
64 cp -a %{name} $RPM_BUILD_ROOT%{_datadir}
65 find %{name}-0.7 -name 'CVS' -type d | xargs rm -rf
66
67 gzip -9nf AUTHORS NEWS
68
69 %clean
70 rm -rf $RPM_BUILD_ROOT
71
72 %files
73 %defattr(644,root,root,755)
74 %doc %{name}-0.7/docs/*
75 %doc *.gz
76 %attr(755,root,root) %{_bindir}/fgfs
77 %attr(755,root,root) %{_bindir}/runfgfs
78 %{_datadir}/%{name}
This page took 0.113378 seconds and 3 git commands to generate.