]>
Commit | Line | Data |
---|---|---|
034a27a3 | 1 | # |
2 | # TODO: - Add missing BRs for xorg | |
a30c3691 | 3 | # - Consider getting back to static linking or set sonames for shared libraries |
034a27a3 | 4 | # |
4790148f | 5 | Summary: A set of libraries to build 3d simulations, games etc |
26b7681b | 6 | Summary(pl.UTF-8): Zestaw bibliotek do budowania trójwymiarowych symulacji, gier itp |
fa8420dd | 7 | Name: SimGear |
034a27a3 | 8 | Version: 1.9.1 |
9 | Release: 0.1 | |
10 | License: GPL v2+ | |
fa8420dd | 11 | Group: Libraries |
fa8420dd | 12 | Source0: ftp://ftp.simgear.org/pub/simgear/Source/%{name}-%{version}.tar.gz |
034a27a3 | 13 | # Source0-md5: edfdaa60518a06699a409d0eb9f1b157 |
53c36ab9 | 14 | Patch0: %{name}-shared.patch |
dd6a22c0 | 15 | Patch1: %{name}-link.patch |
034a27a3 | 16 | Patch2: %{name}-cstdio.patch |
17 | Patch3: %{name}-tgdb.patch | |
f90b5e76 | 18 | URL: http://www.simgear.org/ |
e80e10f3 | 19 | BuildRequires: OpenAL-devel |
fa8420dd | 20 | BuildRequires: OpenGL-devel |
034a27a3 | 21 | BuildRequires: OpenGL-glut-devel |
22 | BuildRequires: OpenSceneGraph-devel | |
dd6a22c0 | 23 | #BuildRequires: XFree86-devel |
55bb7238 | 24 | BuildRequires: autoconf >= 2.52 |
367967f4 | 25 | BuildRequires: automake |
dd6a22c0 | 26 | BuildRequires: freealut-devel |
367967f4 | 27 | BuildRequires: libstdc++-devel |
dec749f9 | 28 | BuildRequires: libtool |
bee9ef06 | 29 | BuildRequires: metakit-devel >= 2.4.3 |
dd6a22c0 | 30 | BuildRequires: plib-devel >= 1.8.4-3 |
dc8628c9 | 31 | BuildRequires: tcl-devel |
367967f4 PG |
32 | BuildRequires: zlib-devel |
33 | Requires: OpenGL | |
90cc3ad6 | 34 | Requires: plib >= 1.8.4 |
fa8420dd SZ |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
36 | ||
55bb7238 | 37 | %define _noautoreqdep libGL.so.1 libGLU.so.1 |
2870222a | 38 | |
fa8420dd SZ |
39 | %description |
40 | SimGear is a set of open-source libraries designed to be used as | |
41 | building blocks for quickly assembling 3d simulations, games, and | |
42 | visualization applications. | |
43 | ||
44 | The term "Simulation Kernel" is a bit presumptuous for us at this | |
45 | point, but this is the direction we are heading with SimGear. | |
46 | ||
873d2bb0 | 47 | %description -l pl.UTF-8 |
fa8420dd | 48 | SimGear to zestaw bibliotek zaprojektowanych do wykorzystania jako |
034a27a3 | 49 | klocki do szybkiego zestawiania trójwymiarowych symulacji, gier oraz |
50 | wizualnych aplikacji. | |
fa8420dd | 51 | |
873d2bb0 JR |
52 | W tej chwili jest jeszcze trochę za wcześnie na używanie terminu |
53 | "Jądro Symulacji", ale to jest kierunek w którym zmierza SimGear. | |
fa8420dd SZ |
54 | |
55 | %package devel | |
4790148f | 56 | Summary: Header files for SimGear |
26b7681b | 57 | Summary(pl.UTF-8): Pliki nagłówkowe dla SimGear |
fa8420dd | 58 | Group: Development/Libraries |
462cb745 | 59 | Requires: %{name} = %{version}-%{release} |
55bb7238 | 60 | Requires: OpenAL-devel |
aad234eb | 61 | Requires: OpenGL-devel |
462cb745 | 62 | Requires: plib-devel >= 1.8.0 |
fa8420dd SZ |
63 | |
64 | %description devel | |
92267869 | 65 | Header files neccessary to build SimGear applications. |
fa8420dd | 66 | |
873d2bb0 JR |
67 | %description devel -l pl.UTF-8 |
68 | Pliki nagłówkowe potrzebne do budowania aplikacji z SimGearem. | |
fa8420dd SZ |
69 | |
70 | %package static | |
4790148f | 71 | Summary: Static SimGear libraries |
26b7681b | 72 | Summary(pl.UTF-8): Statyczne biblioteki SimGear |
fa8420dd | 73 | Group: Development/Libraries |
462cb745 | 74 | Requires: %{name}-devel = %{version}-%{release} |
fa8420dd SZ |
75 | |
76 | %description static | |
92267869 | 77 | Static SimGear libraries. |
fa8420dd | 78 | |
873d2bb0 | 79 | %description static -l pl.UTF-8 |
92267869 | 80 | Statyczne biblioteki SimGear. |
fa8420dd SZ |
81 | |
82 | %prep | |
83 | %setup -q | |
034a27a3 | 84 | #%%patch0 -p1 |
85 | #%%patch1 -p1 | |
86 | %patch2 -p1 | |
87 | %patch3 -p1 | |
fa8420dd | 88 | |
fa8420dd | 89 | %build |
bf582891 | 90 | %{__libtoolize} |
7cae99b7 | 91 | %{__aclocal} |
31d7a987 | 92 | %{__autoconf} |
93 | %{__automake} | |
fa8420dd | 94 | %configure \ |
dc8628c9 SZ |
95 | --with-x \ |
96 | --with-tcl=/usr/lib | |
dd6a22c0 | 97 | %{__make} -j 1 |
fa8420dd SZ |
98 | |
99 | %install | |
100 | rm -rf $RPM_BUILD_ROOT | |
fa8420dd | 101 | |
367967f4 PG |
102 | %{__make} install \ |
103 | DESTDIR=$RPM_BUILD_ROOT | |
d59e4e5a | 104 | |
2ac8bdda SZ |
105 | %clean |
106 | rm -rf $RPM_BUILD_ROOT | |
107 | ||
e80e10f3 JB |
108 | %post -p /sbin/ldconfig |
109 | %postun -p /sbin/ldconfig | |
110 | ||
fa8420dd SZ |
111 | %files |
112 | %defattr(644,root,root,755) | |
bee9ef06 | 113 | %doc AUTHORS NEWS |
034a27a3 | 114 | #%%attr(755,root,root) %{_libdir}/lib*.so.*.*.* |
fa8420dd SZ |
115 | |
116 | %files devel | |
117 | %defattr(644,root,root,755) | |
bee9ef06 | 118 | %doc TODO |
034a27a3 | 119 | #%%{_libdir}/lib*.la |
e80e10f3 | 120 | %{_includedir}/simgear |
fa8420dd SZ |
121 | |
122 | %files static | |
123 | %defattr(644,root,root,755) | |
48fcbd55 | 124 | %{_libdir}/lib*.a |