]>
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 |
d672b368 | 4 | # - Still some undefined references (ldd -r /usr/lib/libsgprops.so after install is good example) |
034a27a3 | 5 | # |
4790148f | 6 | Summary: A set of libraries to build 3d simulations, games etc |
26b7681b | 7 | Summary(pl.UTF-8): Zestaw bibliotek do budowania trójwymiarowych symulacji, gier itp |
fa8420dd | 8 | Name: SimGear |
034a27a3 | 9 | Version: 1.9.1 |
55f11b29 | 10 | Release: 0.3 |
034a27a3 | 11 | License: GPL v2+ |
fa8420dd | 12 | Group: Libraries |
fa8420dd | 13 | Source0: ftp://ftp.simgear.org/pub/simgear/Source/%{name}-%{version}.tar.gz |
034a27a3 | 14 | # Source0-md5: edfdaa60518a06699a409d0eb9f1b157 |
53c36ab9 | 15 | Patch0: %{name}-shared.patch |
dd6a22c0 | 16 | Patch1: %{name}-link.patch |
034a27a3 | 17 | Patch2: %{name}-cstdio.patch |
18 | Patch3: %{name}-tgdb.patch | |
e44ebf81 | 19 | URL: http://simgear.sourceforge.net/ |
e80e10f3 | 20 | BuildRequires: OpenAL-devel |
fa8420dd | 21 | BuildRequires: OpenGL-devel |
034a27a3 | 22 | BuildRequires: OpenGL-glut-devel |
23 | BuildRequires: OpenSceneGraph-devel | |
dd6a22c0 | 24 | #BuildRequires: XFree86-devel |
55bb7238 | 25 | BuildRequires: autoconf >= 2.52 |
367967f4 | 26 | BuildRequires: automake |
dd6a22c0 | 27 | BuildRequires: freealut-devel |
367967f4 | 28 | BuildRequires: libstdc++-devel |
dec749f9 | 29 | BuildRequires: libtool |
bee9ef06 | 30 | BuildRequires: metakit-devel >= 2.4.3 |
dd6a22c0 | 31 | BuildRequires: plib-devel >= 1.8.4-3 |
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 | |
cf58ef26 JK |
84 | %patch0 -p1 |
85 | %patch1 -p1 | |
034a27a3 | 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 \ |
55f11b29 JK |
95 | --with-x |
96 | %{__make} -j 2 | |
fa8420dd SZ |
97 | |
98 | %install | |
99 | rm -rf $RPM_BUILD_ROOT | |
fa8420dd | 100 | |
367967f4 PG |
101 | %{__make} install \ |
102 | DESTDIR=$RPM_BUILD_ROOT | |
d59e4e5a | 103 | |
2ac8bdda SZ |
104 | %clean |
105 | rm -rf $RPM_BUILD_ROOT | |
106 | ||
e80e10f3 JB |
107 | %post -p /sbin/ldconfig |
108 | %postun -p /sbin/ldconfig | |
109 | ||
fa8420dd SZ |
110 | %files |
111 | %defattr(644,root,root,755) | |
bee9ef06 | 112 | %doc AUTHORS NEWS |
55f11b29 JK |
113 | %attr(755,root,root) %{_libdir}/libsgbucket.so.0.0.0 |
114 | %attr(755,root,root) %ghost %{_libdir}/libsgbucket.so.0 | |
115 | %attr(755,root,root) %{_libdir}/libsgdebug.so.0.0.0 | |
116 | %attr(755,root,root) %ghost %{_libdir}/libsgdebug.so.0 | |
117 | %attr(755,root,root) %{_libdir}/libsgenvironment.so.0.0.0 | |
118 | %attr(755,root,root) %ghost %{_libdir}/libsgenvironment.so.0 | |
119 | %attr(755,root,root) %{_libdir}/libsgephem.so.0.0.0 | |
120 | %attr(755,root,root) %ghost %{_libdir}/libsgephem.so.0 | |
121 | %attr(755,root,root) %{_libdir}/libsgio.so.0.0.0 | |
122 | %attr(755,root,root) %ghost %{_libdir}/libsgio.so.0 | |
123 | %attr(755,root,root) %{_libdir}/libsgmagvar.so.0.0.0 | |
124 | %attr(755,root,root) %ghost %{_libdir}/libsgmagvar.so.0 | |
125 | %attr(755,root,root) %{_libdir}/libsgmaterial.so.0.0.0 | |
126 | %attr(755,root,root) %ghost %{_libdir}/libsgmaterial.so.0 | |
127 | %attr(755,root,root) %{_libdir}/libsgmath.so.0.0.0 | |
128 | %attr(755,root,root) %ghost %{_libdir}/libsgmath.so.0 | |
129 | %attr(755,root,root) %{_libdir}/libsgmisc.so.0.0.0 | |
130 | %attr(755,root,root) %ghost %{_libdir}/libsgmisc.so.0 | |
131 | %attr(755,root,root) %{_libdir}/libsgmodel.so.0.0.0 | |
132 | %attr(755,root,root) %ghost %{_libdir}/libsgmodel.so.0 | |
133 | %attr(755,root,root) %{_libdir}/libsgnasal.so.0.0.0 | |
134 | %attr(755,root,root) %ghost %{_libdir}/libsgnasal.so.0 | |
135 | %attr(755,root,root) %{_libdir}/libsgprops.so.0.0.0 | |
136 | %attr(755,root,root) %ghost %{_libdir}/libsgprops.so.0 | |
137 | %attr(755,root,root) %{_libdir}/libsgroute.so.0.0.0 | |
138 | %attr(755,root,root) %ghost %{_libdir}/libsgroute.so.0 | |
139 | %attr(755,root,root) %{_libdir}/libsgscreen.so.0.0.0 | |
140 | %attr(755,root,root) %ghost %{_libdir}/libsgscreen.so.0 | |
141 | %attr(755,root,root) %{_libdir}/libsgserial.so.0.0.0 | |
142 | %attr(755,root,root) %ghost %{_libdir}/libsgserial.so.0 | |
143 | %attr(755,root,root) %{_libdir}/libsgsky.so.0.0.0 | |
144 | %attr(755,root,root) %ghost %{_libdir}/libsgsky.so.0 | |
145 | %attr(755,root,root) %{_libdir}/libsgsound.so.0.0.0 | |
146 | %attr(755,root,root) %ghost %{_libdir}/libsgsound.so.0 | |
147 | %attr(755,root,root) %{_libdir}/libsgstructure.so.0.0.0 | |
148 | %attr(755,root,root) %ghost %{_libdir}/libsgstructure.so.0 | |
149 | %attr(755,root,root) %{_libdir}/libsgtgdb.so.0.0.0 | |
150 | %attr(755,root,root) %ghost %{_libdir}/libsgtgdb.so.0 | |
151 | %attr(755,root,root) %{_libdir}/libsgthreads.so.0.0.0 | |
152 | %attr(755,root,root) %ghost %{_libdir}/libsgthreads.so.0 | |
153 | %attr(755,root,root) %{_libdir}/libsgtiming.so.0.0.0 | |
154 | %attr(755,root,root) %ghost %{_libdir}/libsgtiming.so.0 | |
155 | %attr(755,root,root) %{_libdir}/libsgutil.so.0.0.0 | |
156 | %attr(755,root,root) %ghost %{_libdir}/libsgutil.so.0 | |
157 | %attr(755,root,root) %{_libdir}/libsgxml.so.0.0.0 | |
158 | %attr(755,root,root) %ghost %{_libdir}/libsgxml.so.0 | |
fa8420dd SZ |
159 | |
160 | %files devel | |
161 | %defattr(644,root,root,755) | |
bee9ef06 | 162 | %doc TODO |
55f11b29 JK |
163 | %attr(755,root,root) %{_libdir}/libsgbucket.so |
164 | %attr(755,root,root) %{_libdir}/libsgdebug.so | |
165 | %attr(755,root,root) %{_libdir}/libsgenvironment.so | |
166 | %attr(755,root,root) %{_libdir}/libsgephem.so | |
167 | %attr(755,root,root) %{_libdir}/libsgio.so | |
168 | %attr(755,root,root) %{_libdir}/libsgmagvar.so | |
169 | %attr(755,root,root) %{_libdir}/libsgmaterial.so | |
170 | %attr(755,root,root) %{_libdir}/libsgmath.so | |
171 | %attr(755,root,root) %{_libdir}/libsgmisc.so | |
172 | %attr(755,root,root) %{_libdir}/libsgmodel.so | |
173 | %attr(755,root,root) %{_libdir}/libsgnasal.so | |
174 | %attr(755,root,root) %{_libdir}/libsgprops.so | |
175 | %attr(755,root,root) %{_libdir}/libsgroute.so | |
176 | %attr(755,root,root) %{_libdir}/libsgscreen.so | |
177 | %attr(755,root,root) %{_libdir}/libsgserial.so | |
178 | %attr(755,root,root) %{_libdir}/libsgsky.so | |
179 | %attr(755,root,root) %{_libdir}/libsgsound.so | |
180 | %attr(755,root,root) %{_libdir}/libsgstructure.so | |
181 | %attr(755,root,root) %{_libdir}/libsgtgdb.so | |
182 | %attr(755,root,root) %{_libdir}/libsgthreads.so | |
183 | %attr(755,root,root) %{_libdir}/libsgtiming.so | |
184 | %attr(755,root,root) %{_libdir}/libsgutil.so | |
185 | %attr(755,root,root) %{_libdir}/libsgxml.so | |
186 | %{_libdir}/libsgbucket.la | |
187 | %{_libdir}/libsgdebug.la | |
188 | %{_libdir}/libsgenvironment.la | |
189 | %{_libdir}/libsgephem.la | |
190 | %{_libdir}/libsgio.la | |
191 | %{_libdir}/libsgmagvar.la | |
192 | %{_libdir}/libsgmaterial.la | |
193 | %{_libdir}/libsgmath.la | |
194 | %{_libdir}/libsgmisc.la | |
195 | %{_libdir}/libsgmodel.la | |
196 | %{_libdir}/libsgnasal.la | |
197 | %{_libdir}/libsgprops.la | |
198 | %{_libdir}/libsgroute.la | |
199 | %{_libdir}/libsgscreen.la | |
200 | %{_libdir}/libsgserial.la | |
201 | %{_libdir}/libsgsky.la | |
202 | %{_libdir}/libsgsound.la | |
203 | %{_libdir}/libsgstructure.la | |
204 | %{_libdir}/libsgtgdb.la | |
205 | %{_libdir}/libsgthreads.la | |
206 | %{_libdir}/libsgtiming.la | |
207 | %{_libdir}/libsgutil.la | |
208 | %{_libdir}/libsgxml.la | |
e80e10f3 | 209 | %{_includedir}/simgear |
fa8420dd SZ |
210 | |
211 | %files static | |
212 | %defattr(644,root,root,755) | |
48fcbd55 | 213 | %{_libdir}/lib*.a |