]>
Commit | Line | Data |
---|---|---|
034a27a3 | 1 | # |
80e1d6f2 | 2 | # TODO: - bring back static libraries |
034a27a3 | 3 | # |
4790148f | 4 | Summary: A set of libraries to build 3d simulations, games etc |
26b7681b | 5 | Summary(pl.UTF-8): Zestaw bibliotek do budowania trójwymiarowych symulacji, gier itp |
fa8420dd | 6 | Name: SimGear |
37ea6cfe | 7 | Version: 2016.2.1 |
f6f618e9 | 8 | Release: 1 |
034a27a3 | 9 | License: GPL v2+ |
fa8420dd | 10 | Group: Libraries |
37ea6cfe BS |
11 | Source0: https://downloads.sourceforge.net/project/flightgear/release-2016.2/simgear-%{version}.tar.bz2 |
12 | # Source0-md5: 7bd21e63ffb83109f530627c593d94cd | |
13 | Patch0: cmake.patch | |
14 | URL: http://wiki.flightgear.org/SimGear | |
e80e10f3 | 15 | BuildRequires: OpenAL-devel |
fa8420dd | 16 | BuildRequires: OpenGL-devel |
034a27a3 | 17 | BuildRequires: OpenGL-glut-devel |
37ea6cfe | 18 | BuildRequires: OpenSceneGraph-devel >= 3.2.0 |
05b68381 | 19 | BuildRequires: boost-devel |
80e1d6f2 | 20 | BuildRequires: cmake |
dd6a22c0 | 21 | BuildRequires: freealut-devel |
80e1d6f2 | 22 | BuildRequires: libjpeg-devel |
367967f4 | 23 | BuildRequires: libstdc++-devel |
80e1d6f2 | 24 | BuildRequires: subversion-devel |
367967f4 PG |
25 | BuildRequires: zlib-devel |
26 | Requires: OpenGL | |
fa8420dd SZ |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
55bb7238 | 29 | %define _noautoreqdep libGL.so.1 libGLU.so.1 |
37ea6cfe | 30 | %define filterout -flto |
2870222a | 31 | |
fa8420dd SZ |
32 | %description |
33 | SimGear is a set of open-source libraries designed to be used as | |
34 | building blocks for quickly assembling 3d simulations, games, and | |
35 | visualization applications. | |
36 | ||
37 | The term "Simulation Kernel" is a bit presumptuous for us at this | |
38 | point, but this is the direction we are heading with SimGear. | |
39 | ||
873d2bb0 | 40 | %description -l pl.UTF-8 |
fa8420dd | 41 | SimGear to zestaw bibliotek zaprojektowanych do wykorzystania jako |
034a27a3 | 42 | klocki do szybkiego zestawiania trójwymiarowych symulacji, gier oraz |
43 | wizualnych aplikacji. | |
fa8420dd | 44 | |
873d2bb0 JR |
45 | W tej chwili jest jeszcze trochę za wcześnie na używanie terminu |
46 | "Jądro Symulacji", ale to jest kierunek w którym zmierza SimGear. | |
fa8420dd SZ |
47 | |
48 | %package devel | |
4790148f | 49 | Summary: Header files for SimGear |
26b7681b | 50 | Summary(pl.UTF-8): Pliki nagłówkowe dla SimGear |
fa8420dd | 51 | Group: Development/Libraries |
462cb745 | 52 | Requires: %{name} = %{version}-%{release} |
55bb7238 | 53 | Requires: OpenAL-devel |
aad234eb | 54 | Requires: OpenGL-devel |
fa8420dd SZ |
55 | |
56 | %description devel | |
92267869 | 57 | Header files neccessary to build SimGear applications. |
fa8420dd | 58 | |
873d2bb0 JR |
59 | %description devel -l pl.UTF-8 |
60 | Pliki nagłówkowe potrzebne do budowania aplikacji z SimGearem. | |
fa8420dd SZ |
61 | |
62 | %package static | |
4790148f | 63 | Summary: Static SimGear libraries |
26b7681b | 64 | Summary(pl.UTF-8): Statyczne biblioteki SimGear |
fa8420dd | 65 | Group: Development/Libraries |
462cb745 | 66 | Requires: %{name}-devel = %{version}-%{release} |
fa8420dd SZ |
67 | |
68 | %description static | |
92267869 | 69 | Static SimGear libraries. |
fa8420dd | 70 | |
873d2bb0 | 71 | %description static -l pl.UTF-8 |
92267869 | 72 | Statyczne biblioteki SimGear. |
fa8420dd SZ |
73 | |
74 | %prep | |
80e1d6f2 | 75 | %setup -q -n simgear-%{version} |
05b68381 | 76 | %patch0 -p1 |
fa8420dd | 77 | |
fa8420dd | 78 | %build |
80e1d6f2 BS |
79 | install -d build |
80 | cd build | |
81 | %cmake -DSIMGEAR_SHARED=ON -DSYSTEM_EXPAT=ON -DJPEG_FACTORY=ON ../ | |
82 | %{__make} | |
fa8420dd SZ |
83 | |
84 | %install | |
85 | rm -rf $RPM_BUILD_ROOT | |
fa8420dd | 86 | |
80e1d6f2 | 87 | %{__make} -C build install \ |
367967f4 | 88 | DESTDIR=$RPM_BUILD_ROOT |
d59e4e5a | 89 | |
2ac8bdda SZ |
90 | %clean |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | ||
e80e10f3 JB |
93 | %post -p /sbin/ldconfig |
94 | %postun -p /sbin/ldconfig | |
95 | ||
fa8420dd SZ |
96 | %files |
97 | %defattr(644,root,root,755) | |
80e1d6f2 | 98 | %doc AUTHORS NEWS Thanks |
16cad2a6 BS |
99 | %attr(755,root,root) %{_libdir}/libSimGearCore.so.%{version} |
100 | %attr(755,root,root) %{_libdir}/libSimGearScene.so.%{version} | |
fa8420dd SZ |
101 | |
102 | %files devel | |
103 | %defattr(644,root,root,755) | |
37ea6cfe BS |
104 | %dir %{_libdir}/cmake/SimGear |
105 | %{_libdir}/cmake/SimGear/SimGearConfig.cmake | |
106 | %{_libdir}/cmake/SimGear/SimGearConfigVersion.cmake | |
107 | %{_libdir}/cmake/SimGear/SimGearTargets-pld.cmake | |
108 | %{_libdir}/cmake/SimGear/SimGearTargets.cmake | |
80e1d6f2 BS |
109 | %attr(755,root,root) %{_libdir}/libSimGearCore.so |
110 | %attr(755,root,root) %{_libdir}/libSimGearScene.so | |
e80e10f3 | 111 | %{_includedir}/simgear |
fa8420dd | 112 | |
80e1d6f2 BS |
113 | #%#files static |
114 | #%#defattr(644,root,root,755) | |
115 | #%#{_libdir}/lib*.a |