]> git.mxchange.org Git - flightgear.git/blob - package/RedHat/flightgear.spec
Mathias Fröhlich:
[flightgear.git] / package / RedHat / flightgear.spec
1 %define name flightgear
2 %define version 0.9.3
3 %define release 1grk
4
5 Summary: The FlightGear Flight Simulator
6 Name: %{name}
7 Version: %{version}
8 Release: %{release}
9 License: GPL
10 Group: Games/Other
11 BuildRoot: %{_tmppath}/%{name}-buildroot
12 Source: ftp://ftp.flightgear.org/pub/fgfs/Source/FlightGear-%{version}.tar.gz
13 Source1: ftp://ftp.flightgear.org/pub/fgfs/Shared/fgfs-base-%{version}.tar.gz
14 Source3: flightgear.desktop
15 Source10: %{name}.48.png
16 BuildRequires: plib >= 1.6.0, simgear = 0.3.4,  XFree86-devel, XFree86-Mesa-libGL, XFree86-Mesa-libGLU, gcc, zlib-devel
17 Requires: XFree86-devel, XFree86-Mesa-libGL, XFree86-Mesa-libGLU, gcc, zlib-devel
18 URL: http://www.flightgear.org
19 Obsoletes: FlightGear
20 Provides: FlightGear = %{version}-%{release}
21
22 %description
23 The Flight Gear project is working to create a sophisticated flight simulator
24 framework for the development and pursuit of interesting flight simulator
25 ideas. We are developing a solid basic sim that can be expanded and improved
26 upon by anyone interested in contributing.
27
28 %prep
29 %setup -q -n FlightGear-%{version}
30 rm -f docs-mini/*~
31
32 %build
33 %configure
34 make
35
36 %install
37 make DESTDIR=$RPM_BUILD_ROOT install
38 mkdir -p $RPM_BUILD_ROOT%{_libdir}
39 tar xzf %{SOURCE1} -C $RPM_BUILD_ROOT%{_libdir}
40 mv $RPM_BUILD_ROOT%{_libdir}/FlightGear-%{version} $RPM_BUILD_ROOT%{_libdir}/FlightGear
41
42 mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications/
43 cp %{SOURCE3} $RPM_BUILD_ROOT/%{_datadir}/applications/
44
45 desktop-file-install --vendor flightgear --delete-original \
46   --dir $RPM_BUILD_ROOT%{_datadir}/applications \
47   $RPM_BUILD_ROOT%{_datadir}/applications/flightgear.desktop
48
49 mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
50 cp %{SOURCE10} $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}.png
51
52 %post
53
54 %postun
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59 %files
60 %defattr(-, root, root)
61 %doc README COPYING AUTHORS docs-mini/
62 %{_bindir}/*
63 %{_libdir}/FlightGear
64 %{_datadir}/pixmaps/%{name}.png
65 %{_datadir}/applications/flightgear.desktop
66 %_mandir/man1/*
67
68 %changelog
69 * Sun Oct 26 2003 Richard Keech <rkeech@redhat.com>
70 - updated for 0.9.3
71
72 * Sun Dec 29 2002 Richard Keech <rkeech@redhat.com>
73 - re-worked spec for Red Hat for 0.9.1.  
74   Adapted from the one created
75   by Lenny Cartier <lenny@mandrakesoft.com>, 
76   Guillaume Cottenceau <gc@mandrakesoft.com> et al.
77