1 |
Summary: The FlightGear Flight Simulator |
Summary: The FlightGear Flight Simulator |
2 |
Name: flightgear |
Name: flightgear |
3 |
Version: 2.8.0 |
Version: 2.10.0 |
4 |
Release: %mkrel 6 |
Release: %mkrel 1 |
5 |
License: GPLv2+ |
License: GPLv2+ |
6 |
Group: Games/Simulation |
Group: Games/Other |
7 |
Source0: http://mirrors.ibiblio.org/pub/mirrors/flightgear/ftp/Source/%{name}-%{version}.tar.bz2 |
Source0: http://mirrors.ibiblio.org/pub/mirrors/flightgear/ftp/Source/%{name}-%{version}.tar.bz2 |
8 |
Patch0: flightgear-2.6.0-mandriva-linkage.patch |
Patch0: flightgear-2.6.0-mandriva-linkage.patch |
9 |
Patch1: flightgear-2.6.0-fedora-check-for-%n-in-printf-format-string.patch |
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 |
Patch2: flightgear-2.6.0-fedora-use-snprintf-for-rotor-strings.patch |
|
Patch3: flightgear-2.8.0-mageia-linkage.patch |
|
11 |
Source11: %{name}.16.png |
Source11: %{name}.16.png |
12 |
Source12: %{name}.32.png |
Source12: %{name}.32.png |
13 |
Source13: %{name}.48.png |
Source13: %{name}.48.png |
24 |
BuildRequires: cmake |
BuildRequires: cmake |
25 |
BuildRequires: freeglut-devel |
BuildRequires: freeglut-devel |
26 |
BuildRequires: pkgconfig(xmu) |
BuildRequires: pkgconfig(xmu) |
27 |
Requires: flightgear-base |
Requires: flightgear-base = %{version}-%{release} |
28 |
Suggests: fgrun |
Suggests: fgrun |
29 |
URL: http://www.flightgear.org/ |
URL: http://www.flightgear.org/ |
30 |
Provides: FlightGear = %{version}-%{release} |
Provides: FlightGear = %{version}-%{release} |
40 |
%patch0 -p1 |
%patch0 -p1 |
41 |
%patch1 -p1 |
%patch1 -p1 |
42 |
%patch2 -p1 |
%patch2 -p1 |
43 |
%patch3 -p0 |
#from upstream version.h should not be in the tarball as it is generated by cmake |
44 |
|
rm src/Include/version.h |
45 |
|
|
46 |
%build |
%build |
47 |
%cmake -DFG_DATA_DIR=%{_gamesdatadir}/%{name} |
%cmake \ |
48 |
|
-DFG_DATA_DIR=%{_gamesdatadir}/%{name} \ |
49 |
|
-DSIMGEAR_SHARED=ON \ |
50 |
|
-DJPEG_FACTORY=ON |
51 |
%make |
%make |
52 |
|
|
53 |
%install |
%install |
54 |
%makeinstall_std -C build |
%makeinstall_std -C build |
|
install -m644 -D build/src/Canvas/ShivaVG/src/libShivaVG.so %{buildroot}%{_libdir}/libShivaVG.so |
|
55 |
|
|
56 |
mkdir -p %{buildroot}%{_datadir}/applications |
mkdir -p %{buildroot}%{_datadir}/applications |
57 |
cat > %{buildroot}%{_datadir}/applications/%{_real_vendor}-%{name}.desktop << EOF |
cat > %{buildroot}%{_datadir}/applications/%{_real_vendor}-%{name}.desktop << EOF |
77 |
%doc README AUTHORS docs-mini/ |
%doc README AUTHORS docs-mini/ |
78 |
%{_bindir}/* |
%{_bindir}/* |
79 |
%{_datadir}/applications/%{_real_vendor}-%{name}.desktop |
%{_datadir}/applications/%{_real_vendor}-%{name}.desktop |
|
%{_libdir}/libShivaVG.so |
|
80 |
%{_miconsdir}/%{name}.png |
%{_miconsdir}/%{name}.png |
81 |
%{_iconsdir}/%{name}.png |
%{_iconsdir}/%{name}.png |
82 |
%{_liconsdir}/%{name}.png |
%{_liconsdir}/%{name}.png |