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