]> git.pld-linux.org Git - packages/FlightGear.git/blobdiff - FlightGear.spec
- tabs in preamle
[packages/FlightGear.git] / FlightGear.spec
index 3cadae88b533b299c96c807a98b5b8f2576a3dc4..893c876c7c1992eb7e774a7ddb9a3b15e2d3b256 100644 (file)
@@ -1,65 +1,87 @@
+# TODO:
+# - Make FlightGear-extra-planes for subset of planes from
+#   http://www.flightgear.org/Downloads/aircraft/index.shtml
+
 Summary:       Free Flight Simulator
-Summary(pl):   darmowy symulator lotu
+Summary(pl.UTF-8):     darmowy symulator lotu
 Name:          FlightGear
-Version:       0.7.6
+Version:       0.9.10
 Release:       1
-Group:         X11/Games
 License:       GPL
+Group:         X11/Applications/Games
 Source0:       ftp://ftp.flightgear.org/pub/fgfs/Source/%{name}-%{version}.tar.gz
-Source1:       ftp://ftp.flightgear.org/pub/fgfs/Shared/fgfs-base-%{version}.tar.gz
-Source2:       ftp://ftp.flightgear.org/pub/fgfs/Shared/fgfs-docs-%{version}.tar.gz
+# Source0-md5: f4b89c9cafc18d56beab77a04f1ebdce
+Source1:       ftp://ftp.flightgear.org/pub/fgfs/Shared/fgfs-base-%{version}.tar.bz2
+# Source1-md5: 0ff82689a1877de95490c429e717d8a2
+Source2:       ftp://ftp.flightgear.org/pub/fgfs/Everything-0.7/Base-Packages/fgfs-docs-0.7.7.tar.gz
+# Source2-md5: 31f35d3e63e522565e8990ead99e7507
 Patch0:                %{name}-libs.patch
-URL:           http://www.flightgear.org
-Requires:      OpenGL
+URL:           http://www.flightgear.org/
+BuildRequires: OpenAL-devel
 BuildRequires: OpenGL-devel
+BuildRequires: SimGear-devel >= 0.3.10
 BuildRequires: XFree86-devel
-BuildRequires: libstdc++-devel
-BuildRequires: glut-devel
+BuildRequires: autoconf >= 2.52
 BuildRequires: automake
-BuildRequires: autoconf
-BuildRequires: plib >= 1.2.0
-BuildRequires: SimGear-devel
+BuildRequires: glut-devel
+BuildRequires: libstdc++-devel
+BuildRequires: libxml-devel
+BuildRequires: metakit-devel >= 2.4.3
+BuildRequires: plib-devel >= 1.8.4
 BuildRequires: zlib-devel
+Requires:      OpenGL
+Requires:      SimGear >= 0.3.10
+Requires:      plib >= 1.8.4
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define _noautoreqdep  libGL.so.1 libGLU.so.1
-%define _prefix                /usr/X11R6
+%define _noautoreqdep  libGL.so.1 libGLU.so.1 libGLcore.so.1
 
 %description
+The Flight Gear project is working to create a sophisticated flight
+simulator framework for the development and pursuit of interesting
+flight simulator ideas. We are developing a solid basic sim that can
+be expanded and improved upon by anyone interested in contributing.
 
-%description -l pl
+%description -l pl.UTF-8
+Projekt Flight Gear to wyrafinowany symulator lotów pozwalający
+rozpowszechniać idee tego typu symulacji.
 
 %prep
 %setup -q -a 1 -a 2
 %patch0 -p1
 
+find %{name} -name 'CVS' -type d | xargs rm -rf
+
 %build
-aclocal
-autoconf
-automake -a -c
-%configure
+rm -f missing
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+%configure \
+       --with-network-olk \
+       --with-multiplayer \
+       --libdir=%{_datadir}/games
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_datadir}
-%{__make} DESTDIR="$RPM_BUILD_ROOT" install
+install -d $RPM_BUILD_ROOT%{_datadir}/games
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 echo "#!/bin/sh" > runfgfs
-echo "exec %{_bindir}/fgfs --fg-root=%{_datadir}/%{name} \$*" >> runfgfs
+echo "exec %{_bindir}/fgfs --fg-root=%{_datadir}/games/%{name} \$*" >> runfgfs
 install runfgfs $RPM_BUILD_ROOT%{_bindir}
-cp -a %{name} $RPM_BUILD_ROOT%{_datadir}
-find %{name}-0.7 -name 'CVS' -type d | xargs rm -rf
-
-gzip -9nf AUTHORS NEWS
+cp -a %{name} $RPM_BUILD_ROOT%{_datadir}/games
+cp -R data $RPM_BUILD_ROOT%{_datadir}/games/%{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc %{name}-0.7/docs/*
-%doc *.gz
-%attr(755,root,root) %{_bindir}/fgfs
-%attr(755,root,root) %{_bindir}/runfgfs
-%{_datadir}/%{name}
+%doc AUTHORS NEWS %{name}/Docs/*
+%attr(755,root,root) %{_bindir}/*
+%{_datadir}/games/%{name}
+%{_mandir}/*/*
This page took 0.048957 seconds and 4 git commands to generate.