/[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 126261 - (show annotations) (download)
Tue Jul 19 06:28:18 2011 UTC (12 years, 9 months ago) by fwang
Original Path: cauldron/flightgear/current/SPECS/flightgear.spec
File size: 2046 byte(s)
fix lib build
1 %define oname FlightGear
2
3 Summary: The FlightGear Flight Simulator
4 Name: flightgear
5 Version: 2.4.0
6 Release: %mkrel 0
7 License: GPLv2+
8 Group: Games/Other
9 Source0: ftp://ftp.flightgear.org/pub/fgfs/Source/%{oname}-%{version}.tar.gz
10 Patch0: FlightGear-2.4.0-link.patch
11 Source11: %{name}.16.png
12 Source12: %{name}.32.png
13 Source13: %{name}.48.png
14 BuildRequires: simgear-devel >= %version
15 BuildRequires: pkgconfig(zlib)
16 BuildRequires: pkgconfig(openal)
17 BuildRequires: pkgconfig(openthreads)
18 BuildRequires: pkgconfig(openscenegraph)
19 BuildRequires: pkgconfig(gl)
20 BuildRequires: pkgconfig(freealut)
21 BuildRequires: boost-devel
22 BuildRequires: plib-devel
23 BuildRequires: fltk-devel
24 BuildRequires: cmake
25 Requires: flightgear-base
26 URL: http://www.flightgear.org/
27 Provides: %{oname} = %{version}-%{release}
28
29 %description
30 The Flight Gear project is working to create a sophisticated flight simulator
31 framework for the development and pursuit of interesting flight simulator
32 ideas. We are developing a solid basic sim that can be expanded and improved
33 upon by anyone interested in contributing.
34
35 %prep
36 %setup -q -n %{oname}-%{version}
37 %patch0 -p0
38
39 %build
40 %cmake
41 %make
42
43 %install
44 rm -rf %{buildroot}
45 %makeinstall_std -C build
46
47 mkdir -p %{buildroot}%{_datadir}/applications
48 cat > %{buildroot}%{_datadir}/applications/%{_real_vendor}-%{name}.desktop << EOF
49 [Desktop Entry]
50 Name=Flight Gear
51 Comment=%{Summary}
52 Exec=fgfs
53 Icon=%{name}
54 Terminal=false
55 Type=Application
56 StartupNotify=true
57 Categories=Game;Simulation;
58 EOF
59
60 install -m644 %{SOURCE11} -D %{buildroot}%{_miconsdir}/%{name}.png
61 install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/%{name}.png
62 install -m644 %{SOURCE13} -D %{buildroot}%{_liconsdir}/%{name}.png
63
64 %clean
65 rm -rf %{buildroot}
66
67 %files
68 %defattr(-,root,root)
69 %doc README AUTHORS docs-mini/
70 %{_bindir}/*
71 %{_sbindir}/js_server
72 %{_datadir}/applications/%{_real_vendor}-%{name}.desktop
73 %{_miconsdir}/%{name}.png
74 %{_iconsdir}/%{name}.png
75 %{_liconsdir}/%{name}.png
76 %{_mandir}/man1/*
77 %defattr(-,root,root,755)
78 %{_gamesbindir}/*
79 %defattr(644,root,root,755)

  ViewVC Help
Powered by ViewVC 1.1.30