]> git.pld-linux.org Git - packages/FlightGear.git/blob - FlightGear.spec
- initial release. Not ready yet. Please update summary, descriptions and etc.
[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/Games
7 License:        GPL
8 Source0:        ftp://ftp.flightgear.org/pub/fgfs/Source/%{name}-%{version}.tar.gz
9 Source1:        ftp://ftp.flightgear.org/pub/fgfs/Shared/fgfs-base-%{version}.tar.gz
10 Source2:        ftp://ftp.flightgear.org/pub/fgfs/Shared/fgfs-docs-%{version}.tar.gz
11 Patch0:         %{name}-libs.patch
12 URL:            http://www.flightgear.org
13 Requires:       OpenGL
14 BuildRequires:  OpenGL-devel
15 BuildRequires:  XFree86-devel
16 BuildRequires:  libstdc++-devel
17 BuildRequires:  glut-devel
18 BuildRequires:  automake
19 BuildRequires:  autoconf
20 BuildRequires:  plib >= 1.2.0
21 BuildRequires:  SimGear-devel
22 BuildRequires:  zlib-devel
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %define _noautoreqdep   libGL.so.1 libGLU.so.1
26 %define _prefix         /usr/X11R6
27
28 %description
29
30 %description -l pl
31
32 %prep
33 %setup -q -a 1 -a 2
34 %patch0 -p1
35
36 %build
37 aclocal
38 autoconf
39 automake -a -c
40 %configure
41 %{__make}
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT%{_datadir}
46 %{__make} DESTDIR="$RPM_BUILD_ROOT" install
47
48 echo "#!/bin/sh" > runfgfs
49 echo "exec %{_bindir}/fgfs --fg-root=%{_datadir}/%{name} \$*" >> runfgfs
50 install runfgfs $RPM_BUILD_ROOT%{_bindir}
51 cp -a %{name} $RPM_BUILD_ROOT%{_datadir}
52 find %{name}-0.7 -name 'CVS' -type d | xargs rm -rf
53
54 gzip -9nf AUTHORS NEWS
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59 %files
60 %defattr(644,root,root,755)
61 %doc %{name}-0.7/docs/*
62 %doc *.gz
63 %attr(755,root,root) %{_bindir}/fgfs
64 %attr(755,root,root) %{_bindir}/runfgfs
65 %{_datadir}/%{name}
This page took 0.02957 seconds and 4 git commands to generate.