1 |
#(eatdirt) LTS releases have the second digit >=3: like 2020.3.*, |
2 |
#etc.. Preview versions have the second digit <=2. I guess we |
3 |
#should try to target a LTS release for a Mageia release |
4 |
# |
5 |
Summary: Basic tools for Simulation |
6 |
Name: simgear |
7 |
Version: 2020.3.12 |
8 |
Release: %mkrel 1 |
9 |
URL: http://www.flightgear.org |
10 |
License: LGPLv2+ and GPLv2+ |
11 |
Group: System/Libraries |
12 |
Source: https://downloads.sf.net/flightgear/%{name}-%{version}.tar.bz2 |
13 |
Patch0000: simgear-2.6.0-fedora-check-for-%n-in-format-string.patch |
14 |
Patch2: simgear-2020.3.8-gdal-wkt-latlong.patch |
15 |
|
16 |
BuildRequires: boost-devel |
17 |
BuildRequires: cmake |
18 |
BuildRequires: curl-devel |
19 |
BuildRequires: libgomp-devel |
20 |
BuildRequires: jpeg-devel |
21 |
BuildRequires: udns-devel |
22 |
BuildRequires: pkgconfig(expat) |
23 |
BuildRequires: pkgconfig(gdal) |
24 |
BuildRequires: pkgconfig(gl) |
25 |
BuildRequires: pkgconfig(openal) |
26 |
BuildRequires: pkgconfig(openthreads) |
27 |
#(eatdirt) works (almost) fine now with 3.6 |
28 |
BuildRequires: pkgconfig(openscenegraph) |
29 |
BuildRequires: pkgconfig(zlib) |
30 |
|
31 |
#(eatdirt) let's try again, agressive vectorization were hidden in |
32 |
#previous versions |
33 |
#### Since version 2018.2.2 we have a segfault in i586 |
34 |
#### 32 bit usage is not recommended anymore |
35 |
###ExclusiveArch: x86_64 |
36 |
|
37 |
%description |
38 |
All the basic routines required for the flight simulator as well as for |
39 |
building scenery. Needed for FlightGear, for example. |
40 |
|
41 |
%package devel |
42 |
Summary: Headers/misc for developing programs that will use %{name} |
43 |
Group: Development/C++ |
44 |
Requires: simgear = %{version}-%{release} |
45 |
Provides: SimGear-devel = %{version}-%{release} |
46 |
Obsoletes: %{_lib}simgear-devel < 3.2.0-2 |
47 |
|
48 |
%description devel |
49 |
This package contains the headers that programmers will need to develop |
50 |
applications which will use %{name}, for example FlightGear. |
51 |
|
52 |
%prep |
53 |
%autosetup -p1 |
54 |
|
55 |
%build |
56 |
%cmake -DSIMGEAR_SHARED:BOOL=ON \ |
57 |
-DSYSTEM_UDNS:BOOL=ON \ |
58 |
-DSYSTEM_EXPAT:BOOL=ON \ |
59 |
-DENABLE_TESTS:BOOL=OFF \ |
60 |
-DENABLE_OPENMP=ON \ |
61 |
-DENABLE_GDAL=ON \ |
62 |
%ifnarch %{arm} %{ix86} |
63 |
-DENABLE_SIMD=ON \ |
64 |
-DENABLE_SIMD_CODE=ON \ |
65 |
%else |
66 |
-DENABLE_SIMD=OFF \ |
67 |
-DENABLE_SIMD_CODE=OFF \ |
68 |
%endif |
69 |
-DCMAKE_BUILD_TYPE="Release" |
70 |
%cmake_build |
71 |
|
72 |
%install |
73 |
%cmake_install |
74 |
|
75 |
#fix an include path |
76 |
sed -i "s+\${_IMPORT_PREFIX}/include\;++" %{buildroot}%{_libdir}/cmake/SimGear/SimGearTargets.cmake |
77 |
|
78 |
%files |
79 |
%doc COPYING AUTHORS NEWS |
80 |
%{_libdir}/libSimGearCore.so.%{version} |
81 |
%{_libdir}/libSimGearScene.so.%{version} |
82 |
|
83 |
%files devel |
84 |
%{_includedir}/%{name}/ |
85 |
%{_libdir}/cmake/SimGear/ |
86 |
%{_libdir}/libSimGearCore.so |
87 |
%{_libdir}/libSimGearScene.so |