2003-10-28 20:52:49 +00:00
|
|
|
%define name flightgear
|
2012-06-30 08:48:00 +00:00
|
|
|
%define version 2.8.0
|
|
|
|
%define release 1
|
2003-10-28 20:52:49 +00:00
|
|
|
|
|
|
|
Summary: The FlightGear Flight Simulator
|
|
|
|
Name: %{name}
|
|
|
|
Version: %{version}
|
|
|
|
Release: %{release}
|
2012-07-02 19:43:51 +00:00
|
|
|
License: GPL-2.0
|
2012-06-30 08:48:00 +00:00
|
|
|
URL: http://www.flightgear.org
|
2003-10-28 20:52:49 +00:00
|
|
|
Group: Games/Other
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-buildroot
|
2012-06-30 08:48:00 +00:00
|
|
|
Source: http://mirrors.ibiblio.org/pub/mirrors/flightgear/ftp/Source/flightgear-%{version}.tar.bz2
|
|
|
|
Source1: http://mirrors.ibiblio.org/pub/mirrors/flightgear/ftp/Shared/FlightGear-data-%{version}.tar.bz2
|
2003-10-28 20:52:49 +00:00
|
|
|
Source3: flightgear.desktop
|
2012-07-02 19:43:51 +00:00
|
|
|
BuildRequires: gcc, gcc-c++, cmake
|
2012-06-30 08:48:00 +00:00
|
|
|
BuildRequires: plib >= 1.8.0, SimGear = %{version}
|
2012-07-02 19:43:51 +00:00
|
|
|
BuildRequires: XFree86-devel, XFree86-Mesa-libGL, XFree86-Mesa-libGLU, zlib-devel
|
2012-06-30 08:48:00 +00:00
|
|
|
BuildRequires: OpenSceneGraph >= 3.0.0
|
2003-10-28 20:52:49 +00:00
|
|
|
Obsoletes: FlightGear
|
|
|
|
Provides: FlightGear = %{version}-%{release}
|
|
|
|
|
|
|
|
%description
|
2012-06-30 08:48:00 +00:00
|
|
|
The FlightGear project is working to create a sophisticated flight simulator
|
2003-10-28 20:52:49 +00:00
|
|
|
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.
|
|
|
|
|
|
|
|
%prep
|
2012-06-30 08:48:00 +00:00
|
|
|
%setup -q -n %{name}-%{version}
|
2003-10-28 20:52:49 +00:00
|
|
|
|
|
|
|
%build
|
2012-06-30 08:48:00 +00:00
|
|
|
cmake -DSIMGEAR_SHARED:BOOL=ON -DENABLE_TESTS:BOOL=OFF -DFG_DATA_DIR:STRING="/usr/share/flightgear" -DJPEG_FACTORY:BOOL=ON -DCMAKE_INSTALL_PREFIX:PATH="/usr"
|
2003-10-28 20:52:49 +00:00
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
2012-06-30 08:48:00 +00:00
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
2003-10-28 20:52:49 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_libdir}
|
|
|
|
tar xzf %{SOURCE1} -C $RPM_BUILD_ROOT%{_libdir}
|
|
|
|
mv $RPM_BUILD_ROOT%{_libdir}/FlightGear-%{version} $RPM_BUILD_ROOT%{_libdir}/FlightGear
|
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications/
|
|
|
|
cp %{SOURCE3} $RPM_BUILD_ROOT/%{_datadir}/applications/
|
|
|
|
|
|
|
|
desktop-file-install --vendor flightgear --delete-original \
|
|
|
|
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
|
|
|
|
$RPM_BUILD_ROOT%{_datadir}/applications/flightgear.desktop
|
|
|
|
|
2012-06-30 08:48:00 +00:00
|
|
|
# install icon
|
2003-10-28 20:52:49 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
|
2012-06-30 08:48:00 +00:00
|
|
|
cp icons/fg-128.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/FlightGear.png
|
2003-10-28 20:52:49 +00:00
|
|
|
|
|
|
|
%post
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc README COPYING AUTHORS docs-mini/
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_libdir}/FlightGear
|
|
|
|
%{_datadir}/pixmaps/%{name}.png
|
|
|
|
%{_datadir}/applications/flightgear.desktop
|
|
|
|
%_mandir/man1/*
|
|
|
|
|
|
|
|
%changelog
|
2012-06-30 08:48:00 +00:00
|
|
|
* Thu Jun 28 2012 Thorsten Brehm <thorstenb@flightgear.org>
|
|
|
|
- Updated to 2.8.0
|
|
|
|
- Converted to CMake
|
|
|
|
- Use shared SimGear libraries
|
|
|
|
|
2003-10-28 20:52:49 +00:00
|
|
|
* Sun Oct 26 2003 Richard Keech <rkeech@redhat.com>
|
|
|
|
- updated for 0.9.3
|
|
|
|
|
|
|
|
* Sun Dec 29 2002 Richard Keech <rkeech@redhat.com>
|
|
|
|
- re-worked spec for Red Hat for 0.9.1.
|
|
|
|
Adapted from the one created
|
|
|
|
by Lenny Cartier <lenny@mandrakesoft.com>,
|
|
|
|
Guillaume Cottenceau <gc@mandrakesoft.com> et al.
|
|
|
|
|