Initial revision of the RedHat package building .spec file.
This commit is contained in:
parent
cc7b15fa7b
commit
f0f7f07ec9
4 changed files with 119 additions and 0 deletions
35
package/RedHat/README
Normal file
35
package/RedHat/README
Normal file
|
@ -0,0 +1,35 @@
|
|||
Building Flight Gear RPM package for Red Hat
|
||||
|
||||
G.Richard Keech <rkeech@redhat.com>
|
||||
|
||||
2003-10-29
|
||||
|
||||
This directory contains the files which, along with
|
||||
the source code tar files, can be used to build
|
||||
an RPM package targeted at a Red Hat Linux system.
|
||||
|
||||
To build flighgear from source do the following:
|
||||
|
||||
0. be root on your system (actually it's possible to
|
||||
build from source as a non-root user but
|
||||
I won't go into that now).
|
||||
|
||||
1. copy flightgear.spec to /usr/src/redhat/SPECS/
|
||||
|
||||
2. copy flightgear.48.png to /usr/src/redhat/SOURCES
|
||||
|
||||
3. copy flightgear.desktop to /usr/src/redhat/SOURCES
|
||||
|
||||
4. obtain fgfs-base-0.9.3.tar.gz and FlightGear-0.9.3.tar.gz
|
||||
and copy them into /usr/src/redhat/SOURCES.
|
||||
|
||||
5. obtain and install SimGear (>= 0.3.4).
|
||||
|
||||
6. look in the BuildRequires section of flightgear.spec
|
||||
and check that all the packages referred to are
|
||||
installed.
|
||||
|
||||
7. cd /usr/src/redhat/SPECS
|
||||
rpmbuild -ba flightgear.spec
|
||||
|
||||
that's it.
|
BIN
package/RedHat/flightgear.48.png
Normal file
BIN
package/RedHat/flightgear.48.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.8 KiB |
7
package/RedHat/flightgear.desktop
Normal file
7
package/RedHat/flightgear.desktop
Normal file
|
@ -0,0 +1,7 @@
|
|||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Name=Flight Gear
|
||||
Comment=Flight Gear Flight Simulator
|
||||
Exec=fgfs
|
||||
Icon=
|
||||
Categories=GNOME;Application;Game
|
77
package/RedHat/flightgear.spec
Normal file
77
package/RedHat/flightgear.spec
Normal file
|
@ -0,0 +1,77 @@
|
|||
%define name flightgear
|
||||
%define version 0.9.3
|
||||
%define release 1grk
|
||||
|
||||
Summary: The FlightGear Flight Simulator
|
||||
Name: %{name}
|
||||
Version: %{version}
|
||||
Release: %{release}
|
||||
License: GPL
|
||||
Group: Games/Other
|
||||
BuildRoot: %{_tmppath}/%{name}-buildroot
|
||||
Source: ftp://ftp.flightgear.org/pub/fgfs/Source/FlightGear-%{version}.tar.gz
|
||||
Source1: ftp://ftp.flightgear.org/pub/fgfs/Shared/fgfs-base-%{version}.tar.gz
|
||||
Source3: flightgear.desktop
|
||||
Source10: %{name}.48.png
|
||||
BuildRequires: plib >= 1.6.0, simgear = 0.3.4, XFree86-devel, XFree86-Mesa-libGL, XFree86-Mesa-libGLU, gcc, zlib-devel
|
||||
Requires: XFree86-devel, XFree86-Mesa-libGL, XFree86-Mesa-libGLU, gcc, zlib-devel
|
||||
URL: http://www.flightgear.org
|
||||
Obsoletes: FlightGear
|
||||
Provides: FlightGear = %{version}-%{release}
|
||||
|
||||
%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.
|
||||
|
||||
%prep
|
||||
%setup -q -n FlightGear-%{version}
|
||||
rm -f docs-mini/*~
|
||||
|
||||
%build
|
||||
%configure
|
||||
make
|
||||
|
||||
%install
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
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
|
||||
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
|
||||
cp %{SOURCE10} $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}.png
|
||||
|
||||
%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
|
||||
* 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.
|
||||
|
Loading…
Reference in a new issue