/[packages]/backports/5/flightgear/current/SPECS/flightgear.spec
ViewVC logotype

Contents of /backports/5/flightgear/current/SPECS/flightgear.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 318372 - (show annotations) (download)
Thu Nov 15 23:09:49 2012 UTC (11 years, 5 months ago) by luigiwalser
Original Path: cauldron/flightgear/current/SPECS/flightgear.spec
File size: 2478 byte(s)
rebuild for plib
1 Summary: The FlightGear Flight Simulator
2 Name: flightgear
3 Version: 2.8.0
4 Release: %mkrel 4
5 License: GPLv2+
6 Group: Games/Other
7 Source0: http://mirrors.ibiblio.org/pub/mirrors/flightgear/ftp/Source/%{name}-%{version}.tar.bz2
8 Patch0: flightgear-2.6.0-mandriva-linkage.patch
9 Patch1: flightgear-2.6.0-fedora-check-for-%n-in-printf-format-string.patch
10 Patch2: flightgear-2.6.0-fedora-use-snprintf-for-rotor-strings.patch
11 Patch3: flightgear-2.8.0-mageia-linkage.patch
12 Source11: %{name}.16.png
13 Source12: %{name}.32.png
14 Source13: %{name}.48.png
15 BuildRequires: simgear-devel >= %version
16 BuildRequires: pkgconfig(zlib)
17 BuildRequires: pkgconfig(openal)
18 BuildRequires: pkgconfig(openthreads)
19 BuildRequires: pkgconfig(openscenegraph)
20 BuildRequires: pkgconfig(gl)
21 BuildRequires: pkgconfig(freealut)
22 BuildRequires: boost-devel
23 BuildRequires: plib-devel
24 BuildRequires: fltk-devel
25 BuildRequires: cmake
26 BuildRequires: freeglut-devel
27 BuildRequires: pkgconfig(xmu)
28 Requires: flightgear-base
29 Suggests: fgrun
30 URL: http://www.flightgear.org/
31 Provides: FlightGear = %{version}-%{release}
32
33 %description
34 The Flight Gear project is working to create a sophisticated flight simulator
35 framework for the development and pursuit of interesting flight simulator
36 ideas. We are developing a solid basic sim that can be expanded and improved
37 upon by anyone interested in contributing.
38
39 %prep
40 %setup -q -n %{name}-%{version}
41 %patch0 -p1
42 %patch1 -p1
43 %patch2 -p1
44 %patch3 -p0
45
46 %build
47 %cmake -DFG_DATA_DIR=%{_gamesdatadir}/%{name}
48 %make
49
50 %install
51 %makeinstall_std -C build
52 install -m644 -D build/src/Canvas/ShivaVG/src/libShivaVG.so %{buildroot}%{_libdir}/libShivaVG.so
53
54 mkdir -p %{buildroot}%{_datadir}/applications
55 cat > %{buildroot}%{_datadir}/applications/%{_real_vendor}-%{name}.desktop << EOF
56 [Desktop Entry]
57 Name=Flight Gear
58 Comment=Flight Gear Flight Simulator
59 Exec=fgfs
60 Icon=%{name}
61 Terminal=false
62 Type=Application
63 StartupNotify=true
64 Categories=Game;Simulation;
65 EOF
66
67 install -m644 %{SOURCE11} -D %{buildroot}%{_miconsdir}/%{name}.png
68 install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/%{name}.png
69 install -m644 %{SOURCE13} -D %{buildroot}%{_liconsdir}/%{name}.png
70
71 # build doc is useless for end users
72 rm -rf %{buildroot}%{_docdir}/FlightGear
73
74 %files
75 %doc README AUTHORS docs-mini/
76 %{_bindir}/*
77 %{_datadir}/applications/%{_real_vendor}-%{name}.desktop
78 %{_libdir}/libShivaVG.so
79 %{_miconsdir}/%{name}.png
80 %{_iconsdir}/%{name}.png
81 %{_liconsdir}/%{name}.png
82 %{_mandir}/man1/*

  ViewVC Help
Powered by ViewVC 1.1.30