]> git.pld-linux.org Git - packages/celestia.git/blob - celestia.spec
- ati patch added, NFY, needs solar update
[packages/celestia.git] / celestia.spec
1 %define         _snap   20040708
2 Summary:        A real-time visual space simulation
3 Summary(pl):    Symulacja przestrzeni kosmicznej w czasie rzeczywistym
4 Name:           celestia
5 Version:        1.3.2
6 Release:        0.%{_snap}.1
7 License:        GPL
8 Group:          X11/Applications/Science
9 #Source0:       http://dl.sourceforge.net/celestia/%{name}-%{version}.tar.gz
10 Source0:        %{name}-%{_snap}.tar.bz2
11 # Source0-md5:  3ffcccd9c113fc5ccf4a28ce98f3af2d
12 Source1:        %{name}.desktop
13 Source2:        %{name}-solar-%{version}.tar.gz
14 # Source2-md5:  eabbb0718956528245de3573ae7f8bd7
15 Patch0:         %{name}-gcc34.patch
16 Patch1:         %{name}-lua50.patch
17 Patch2:         %{name}-ati.patch
18 URL:            http://www.shatters.net/celestia/
19 BuildRequires:  OpenGL-devel
20 BuildRequires:  autoconf
21 BuildRequires:  automake
22 BuildRequires:  fam-devel
23 BuildRequires:  glut-devel
24 BuildRequires:  kdelibs-devel
25 BuildRequires:  libjpeg-devel
26 BuildRequires:  libpng-devel
27 BuildRequires:  libstdc++-devel
28 BuildRequires:  libtool
29 BuildRequires:  lua50-devel
30 Requires:       OpenGL
31 Requires:       %{name}-extrasolar
32 Requires:       %{name}-stars
33 Requires:       %{name}-generator
34 Requires:       %{name}-textures-mercury
35 Requires:       %{name}-textures-earth
36 Requires:       %{name}-textures-earth-clouds
37 Requires:       %{name}-textures-moon
38 Requires:       %{name}-textures-mars
39 Requires:       %{name}-textures-galileanmoons
40 Obsoletes:      celestia-textures-stars
41 Obsoletes:      celestia-asterisms
42 Obsoletes:      celestia-galaxies
43 Obsoletes:      celestia-textures-venus-default
44 Obsoletes:      celestia-textures-jupiter-default
45 Obsoletes:      celestia-textures-saturn-default
46 Obsoletes:      celestia-textures-triton-default
47 Obsoletes:      celestia-textures-pluto-default
48 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49
50 %define         _noautoreqdep   libGL.so.1 libGLU.so.1 libGLcore.so.1
51
52 %description
53 Celestia is a free real-time space simulation that lets you experience
54 our universe in three dimensions. Unlike most planetarium software,
55 Celestia doesn't confine you to the surface of the Earth. You can
56 travel throughout the solar system, to any of over 100,000 stars, or
57 even beyond the galaxy. All travel in Celestia is seamless; the
58 exponential zoom feature lets you explore space across a huge range of
59 scales, from galaxy clusters down to spacecraft only a few meters
60 across. A 'point-and-goto' interface makes it simple to navigate
61 through the universe to the object you want to visit.
62
63 %description -l pl
64 Celestia to wolny symulator przestrzeni komicznej w czasie
65 rzeczywistym, który pozwala do¶wiadczaæ naszego Wszech¶wiata w trzech
66 wymiarach. W odró¿nieniu od innych programów planetarnych Celestia nie
67 przywi±zuje Ciê do powierzchni ziemi. Mo¿esz podró¿owaæ przez Uk³ad
68 S³oneczny do ponad 100,000 gwiazd lub nawet poza galaktykê. Wszystkie
69 podró¿e w Celestii s± niezauwa¿alne; funkcja wyk³adniczego
70 przybli¿enia pozwala Ci odkrywaæ Kosmos w ró¿nych skalach - od
71 spojrzenia na galaktyki do widoku kilkumetrowych statków kosmicznych.
72 Interfejs typu 'poka¿-i-leæ' czyni nawigacjê przez Wszech¶wiat prost±.
73
74 %package task-default
75 Summary:        Default packages for celestia
76 Summary(pl):    Domy¶lne pakiety dla celestii
77 Group:          X11/Applications/Science
78 Requires:       %{name}-extrasolar-default
79 Requires:       %{name}-stars-default
80 Requires:       %{name}-textures-mercury-default
81 Requires:       %{name}-textures-earth-default
82 Requires:       %{name}-textures-earth-clouds-default
83 Requires:       %{name}-textures-moon-default
84 Requires:       %{name}-textures-mars-default
85 Requires:       %{name}-textures-galileanmoons-default
86
87 %description task-default
88 Default packages for celestia. This metapackage contains no files
89 and can be safely uninstalled after installation.
90
91 %description task-default -l pl
92 Domy¶lne pakiety dla celestii. Ten metapakiet nie zawiera ¿adnych
93 plików i mo¿e zostaæ usuniêty po instalacji.
94
95 %package generator
96 Summary:        Hack needed because rpm sucks
97 Summary(pl):    Hack potrzebny z powodu obsysania rpm-a
98 Group:          X11/Applications/Science
99
100 %description generator
101 Generates solarsys.ssc .
102
103 %description generator -l pl
104 Tworzy solarsys.ssc .
105
106 %package extrasolar-default
107 Summary:        Catalog of known extrasolar planetary systems
108 Summary(pl):    Katalog znanych uk³adów planetarnych
109 Group:          X11/Applications/Science
110 Requires:       %{name}
111 Provides:       %{name}-extrasolar
112 Obsoletes:      %{name}-extrasolar
113
114 %description extrasolar-default
115 Catalog of known extrasolar planetary systems.
116
117 %description extrasolar-default -l pl
118 Katalog znanych uk³adów planetarnych.
119
120 %package stars-default
121 Summary:        Database with 100 000 stars
122 Summary(pl):    Baza danych 100 000 gwiazd
123 Group:          X11/Applications/Science
124 Requires:       %{name}
125 Provides:       %{name}-stars
126 Obsoletes:      %{name}-stars
127
128 %description stars-default
129 Initial Stars database (with about 100 000 Hipparcos stars).
130
131 %description stars-default -l pl
132 Podstawowa baza danych gwiazd (z oko³o 100 000 gwiazd zbadanych
133 przez sondê kosmiczn± Hipparcos).
134
135 %package textures-mercury-default
136 Summary:        1k Mercury textures
137 Summary(pl):    Tekstury Merkurego o wielko¶ci 1024 x 512
138 Group:          X11/Applications/Science
139 PreReq:         %{name}-generator
140 Requires:       %{name}
141 Provides:       %{name}-textures-mercury
142 Obsoletes:      %{name}-textures-mercury
143
144 %description textures-mercury-default
145 1k Mercury textures.
146
147 %description textures-mercury-default -l pl
148 Tekstury Merkurego o wielko¶ci 1024 x 512.
149
150 %package textures-mercury-bumpmap-default
151 Summary:        1k Mercury bump maps
152 Summary(pl):    Mapa wybojów Merkurego o wielko¶ci 1024 x 512
153 Group:          X11/Applications/Science
154 PreReq:         %{name}-generator
155 Requires:       %{name}
156 Provides:       %{name}-textures-mercury-bumpmap
157 Obsoletes:      %{name}-textures-mercury-bumpmap
158
159 %description textures-mercury-bumpmap-default
160 1k Mercury bump map.
161
162 %description textures-mercury-bumpmap-default -l pl
163 Mapa wybojów Merkurego o wielko¶ci 1024 x 512.
164
165 %package textures-earth-default
166 Summary:        2k Earth textures
167 Summary(pl):    Tekstury Ziemi o wielko¶ci 2048 x 1024
168 Group:          X11/Applications/Science
169 PreReq:         %{name}-generator
170 Requires:       %{name}
171 Provides:       %{name}-textures-earth
172 Obsoletes:      %{name}-textures-earth
173
174 %description textures-earth-default
175 2k Earth textures.
176
177 %description textures-earth-default -l pl
178 Tekstury Ziemi o wielko¶ci 2048 x 1024.
179
180 %package textures-earth-clouds-default
181 Summary:        1k Earth cloud textures
182 Summary(pl):    Tekstury ziemskich chmur o wielko¶ci 1024 x 512
183 Group:          X11/Applications/Science
184 PreReq:         %{name}-generator
185 Requires:       %{name}
186 Provides:       %{name}-textures-earth-clouds
187 Obsoletes:      %{name}-textures-earth-clouds
188
189 %description textures-earth-clouds-default
190 1k Earth clouds textures.
191
192 %description textures-earth-clouds-default -l pl
193 Tekstury ziemskich chmur o wielko¶ci 1024 x 512.
194
195 %package textures-earth-night-default
196 Summary:        1k Earth night textures
197 Summary(pl):    Tekstury nocnych ¶wiate³ miast o wielko¶ci 1024 x 512
198 Group:          X11/Applications/Science
199 PreReq:         %{name}-generator
200 Requires:       %{name}
201 Provides:       %{name}-textures-earth-night
202 Obsoletes:      %{name}-textures-earth-night
203
204 %description textures-earth-night-default
205 1k Earth night textures.
206
207 %description textures-earth-night-default -l pl
208 Tekstury nocnych ¶wiate³ miast o wielko¶ci 1024 x 512.
209
210 %package textures-moon-default
211 Summary:        1k Moon textures
212 Summary(pl):    Tekstury Ksiê¿yca o wielko¶ci 1024 x 512
213 Group:          X11/Applications/Science
214 PreReq:         %{name}-generator
215 Requires:       %{name}
216 Provides:       %{name}-textures-moon
217 Obsoletes:      %{name}-textures-moon
218
219 %description textures-moon-default
220 1k Moon textures.
221
222 %description textures-moon-default -l pl
223 Tekstury Ksiê¿yca o wielko¶ci 1024 x 512.
224
225 %package textures-moon-bumpmap-default
226 Summary:        1k Moon bump map
227 Summary(pl):    Mapa wybojów Ksiê¿yca o wielko¶ci 1024 x 512
228 Group:          X11/Applications/Science
229 PreReq:         %{name}-generator
230 Requires:       %{name}
231 Provides:       %{name}-textures-moon-bumpmap
232 Obsoletes:      %{name}-textures-moon-bumpmap
233
234 %description textures-moon-bumpmap-default
235 1k Moon bump map.
236
237 %description textures-moon-bumpmap-default -l pl
238 Mapa wybojów Ksiê¿yca o wielko¶ci 1024 x 512.
239
240 %package textures-mars-default
241 Summary:        1k Mars textures
242 Summary(pl):    Tekstury Marsa o wielko¶ci 1024 x 512
243 Group:          X11/Applications/Science
244 PreReq:         %{name}-generator
245 Requires:       %{name}
246 Provides:       %{name}-textures-mars
247 Obsoletes:      %{name}-textures-mars
248
249 %description textures-mars-default
250 1k Mars textures.
251
252 %description textures-mars-default -l pl
253 Tekstury Marsa o wielko¶ci 1024 x 512.
254
255 %package textures-mars-bumpmap-default
256 Summary:        1k Mars bump map
257 Summary(pl):    Mapa wybojów Marsa o wielko¶ci 1024 x 512
258 Group:          X11/Applications/Science
259 PreReq:         %{name}-generator
260 Requires:       %{name}
261 Provides:       %{name}-textures-mars-bumpmap
262 Obsoletes:      %{name}-textures-mars-bumpmap
263
264 %description textures-mars-bumpmap-default
265 1k Mars bump map.
266
267 %description textures-mars-bumpmap-default -l pl
268 Mapa wybojów Marsa o wielko¶ci 1024 x 512.
269
270 %package textures-galileanmoons-default
271 Summary:        1k galilean moons textures
272 Summary(pl):    Tekstury ksiê¿yców odkrytych przez Galileusza o wielko¶ci 1024 x 512
273 Group:          X11/Applications/Science
274 PreReq:         %{name}-generator
275 Requires:       %{name}
276 Provides:       %{name}-textures-galileanmoons
277 Obsoletes:      %{name}-textures-galileanmoons
278
279 %description textures-galileanmoons-default
280 1k galilean moons (Io, Europa, Ganymede, Calypso) textures.
281
282 %description textures-galileanmoons-default -l pl
283 Tekstury ksiê¿yców Jowisza odkrytych przez Galileusza (Io,
284 Europa, Ganimedes, Calypso) o wielko¶ci 1024 x 512.
285
286 %prep
287 %setup -q -a2 -n %{name}
288 %patch0 -p1
289 %patch1 -p1
290 %patch2 -p1
291
292 echo "You can remove this package safely." > PLACEHOLDER-TASK-DEFAULT
293
294 %build
295 touch config.h.in
296 %{__libtoolize}
297 %{__aclocal} -I macros
298 %{__autoconf}
299 %{__automake}
300
301 CPPFLAGS="-I/usr/X11R6/include -I/usr/include/lua50"
302 CXXFLAGS="%{rpmcflags} -fno-exceptions"
303
304 %configure \
305         --disable-rpath \
306         --with-kde \
307         --without-gtk \
308         --with-lua \
309         --with-xinerama
310
311 %{__make} ACLOCAL="%{__aclocal} -I macros"
312
313 %install
314 rm -rf $RPM_BUILD_ROOT
315
316 %{__make} install \
317         DESTDIR=$RPM_BUILD_ROOT \
318         kde_htmldir=%{_kdedocdir}
319
320 # desktop/icon
321 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
322 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
323 install src/celestia/kde/data/hi48-app-celestia.png \
324         $RPM_BUILD_ROOT%{_pixmapsdir}/celestia.png
325
326 # solarsys.ssc generator
327 install -d $RPM_BUILD_ROOT%{_datadir}/apps/%{name}/data/solarsys
328 install solar/* $RPM_BUILD_ROOT%{_datadir}/apps/%{name}/data/solarsys
329 cp -r scripts $RPM_BUILD_ROOT%{_datadir}/apps/%{name}/scripts
330
331 cat > $RPM_BUILD_ROOT%{_datadir}/apps/%{name}/solarsys-gen << EOF
332 #!/bin/sh
333 cd %{_datadir}/apps/%{name}/data
334 LANG=C cat solarsys/* > solarsys.ssc
335 EOF
336
337 #%find_lang %{name} --with-kde          #doesn't find any lang files in 1.3.1, don't know why
338
339 %clean
340 rm -rf $RPM_BUILD_ROOT
341
342 # all texture-* here are required in one or another version, so no %%postun
343 %post   -p %{_datadir}/apps/%{name}/solarsys-gen
344 %post   textures-mercury-default        -p %{_datadir}/apps/%{name}/solarsys-gen
345 %post   textures-earth-default          -p %{_datadir}/apps/%{name}/solarsys-gen
346 %post   textures-earth-clouds-default   -p %{_datadir}/apps/%{name}/solarsys-gen
347 %post   textures-moon-default           -p %{_datadir}/apps/%{name}/solarsys-gen
348 %post   textures-mars-default           -p %{_datadir}/apps/%{name}/solarsys-gen
349 %post   textures-galileanmoons-default  -p %{_datadir}/apps/%{name}/solarsys-gen
350
351 # optional, so %%postun is also required
352 %post   textures-mercury-bumpmap-default        -p %{_datadir}/apps/%{name}/solarsys-gen
353 %postun textures-mercury-bumpmap-default        -p %{_datadir}/apps/%{name}/solarsys-gen
354 %post   textures-earth-night-default    -p %{_datadir}/apps/%{name}/solarsys-gen
355 %postun textures-earth-night-default    -p %{_datadir}/apps/%{name}/solarsys-gen
356 %post   textures-mars-bumpmap-default   -p %{_datadir}/apps/%{name}/solarsys-gen
357 %postun textures-mars-bumpmap-default   -p %{_datadir}/apps/%{name}/solarsys-gen
358 %post   textures-moon-bumpmap-default   -p %{_datadir}/apps/%{name}/solarsys-gen
359 %postun textures-moon-bumpmap-default   -p %{_datadir}/apps/%{name}/solarsys-gen
360
361 %files
362 %defattr(644,root,root,755)
363 %doc README AUTHORS TODO controls.txt ChangeLog
364 %doc %{_datadir}/apps/celestia/manual
365 %attr(755,root,root) %{_bindir}/*
366 %{_datadir}/apps/celestia/data/solarsys/04-mercury
367 %{_datadir}/apps/celestia/data/solarsys/08-mercury
368 %{_datadir}/apps/celestia/data/solarsys/10-venus
369 %{_datadir}/apps/celestia/data/solarsys/24-earth
370 %{_datadir}/apps/celestia/data/solarsys/28-earth
371 %{_datadir}/apps/celestia/data/solarsys/35-moon
372 %{_datadir}/apps/celestia/data/solarsys/37-earth-satellites
373 %{_datadir}/apps/celestia/data/solarsys/44-mars
374 %{_datadir}/apps/celestia/data/solarsys/48-mars-moons
375 %{_datadir}/apps/celestia/data/solarsys/50-jupiter
376 %{_datadir}/apps/celestia/data/solarsys/52-jupiter-small-moon
377 %{_datadir}/apps/celestia/data/solarsys/60-saturn
378 %{_datadir}/apps/celestia/data/solarsys/65-saturn-moons
379 %{_datadir}/apps/celestia/data/solarsys/70-uranus
380 %{_datadir}/apps/celestia/data/solarsys/75-uranus-moons
381 %{_datadir}/apps/celestia/data/solarsys/80-neptune
382 %{_datadir}/apps/celestia/data/solarsys/82-neptune-moons
383 %{_datadir}/apps/celestia/data/solarsys/90-pluto
384 %{_datadir}/apps/celestia/data/solarsys/92-pluto-moon
385 %{_datadir}/apps/celestia/data/solarsys/99-various
386 %{_datadir}/apps/celestia/data/asterisms.dat
387 %{_datadir}/apps/celestia/data/asteroids.ssc
388 %{_datadir}/apps/celestia/data/boundaries.dat
389 %{_datadir}/apps/celestia/data/cassini.xyz
390 %{_datadir}/apps/celestia/data/comets.ssc
391 %{_datadir}/apps/celestia/data/deepsky.dsc
392 %{_datadir}/apps/celestia/data/galileo.xyz
393 %{_datadir}/apps/celestia/data/huygens.xyz
394 %{_datadir}/apps/celestia/data/outersys.ssc
395 %verify(not md5 size mtime) %{_datadir}/apps/celestia/data/solarsys.ssc
396 %{_datadir}/apps/celestia/data/solsys_locs.ssc
397 %{_datadir}/apps/celestia/data/spacecraft.ssc
398 %{_datadir}/apps/celestia/data/starnames.dat
399 %{_datadir}/apps/celestia/data/world-capitals.ssc
400 %{_datadir}/apps/celestia/extras
401 %{_datadir}/apps/celestia/favicons
402 %{_datadir}/apps/celestia/fonts
403 %{_datadir}/apps/celestia/models
404 %{_datadir}/apps/celestia/scripts
405 %{_datadir}/apps/celestia/shaders
406 %dir %{_datadir}/apps/celestia/textures
407 %{_datadir}/apps/celestia/textures/lores
408 %{_datadir}/apps/celestia/textures/medres
409 %exclude %{_datadir}/apps/celestia/textures/medres/callisto.jpg
410 %exclude %{_datadir}/apps/celestia/textures/medres/earth-clouds.png
411 %exclude %{_datadir}/apps/celestia/textures/medres/earth.jpg
412 %exclude %{_datadir}/apps/celestia/textures/medres/earthnight.jpg
413 #%exclude %{_datadir}/apps/celestia/textures/medres/earth-spec.jpg
414 #%exclude %{_datadir}/apps/celestia/textures/medres/earth.png
415 %exclude %{_datadir}/apps/celestia/textures/medres/europa.jpg
416 %exclude %{_datadir}/apps/celestia/textures/medres/ganymede.jpg
417 %exclude %{_datadir}/apps/celestia/textures/medres/io.jpg
418 %exclude %{_datadir}/apps/celestia/textures/medres/marsbump.jpg
419 %exclude %{_datadir}/apps/celestia/textures/medres/mars.jpg
420 %exclude %{_datadir}/apps/celestia/textures/medres/mercurybump.jpg
421 %exclude %{_datadir}/apps/celestia/textures/medres/mercury.jpg
422 %exclude %{_datadir}/apps/celestia/textures/medres/moonbump.jpg
423 %exclude %{_datadir}/apps/celestia/textures/medres/moon.jpg
424 %{_datadir}/apps/celestia/textures/flare.jpg
425 %{_datadir}/apps/celestia/textures/logo.png
426 %{_datadir}/apps/celestia/bookmarks.xml
427 %{_datadir}/apps/celestia/celestia.cfg
428 %{_datadir}/apps/celestia/celestia.png
429 %{_datadir}/apps/celestia/celestiaui.rc
430 %{_datadir}/apps/celestia/controls.txt
431 %{_datadir}/apps/celestia/*.cel
432
433 %{_desktopdir}/*
434 %{_pixmapsdir}/*
435 %{_datadir}/config/*
436 %{_datadir}/mimelnk/application/*
437 %{_datadir}/services/*
438
439 %files task-default
440 %defattr(644,root,root,755)
441 %doc PLACEHOLDER-TASK-DEFAULT
442
443 %files generator
444 %defattr(644,root,root,755)
445 %dir %{_datadir}/apps/celestia
446 %dir %{_datadir}/apps/celestia/data
447 %dir %{_datadir}/apps/celestia/data/solarsys
448 %attr(755,root,root) %{_datadir}/apps/celestia/solarsys-gen
449
450 %files extrasolar-default
451 %defattr(644,root,root,755)
452 %{_datadir}/apps/celestia/data/extrasolar.ssc
453
454 %files stars-default
455 %defattr(644,root,root,755)
456 %{_datadir}/apps/celestia/data/stars.dat
457
458 %files textures-mercury-default
459 %defattr(644,root,root,755)
460 %{_datadir}/apps/celestia/textures/medres/mercury.jpg
461 %{_datadir}/apps/celestia/data/solarsys/00-mercury
462
463 %files textures-mercury-bumpmap-default
464 %defattr(644,root,root,755)
465 %{_datadir}/apps/celestia/textures/medres/mercurybump.jpg
466 %{_datadir}/apps/celestia/data/solarsys/02-mercury-bump
467 %{_datadir}/apps/celestia/data/solarsys/06-mercury-bump
468
469 %files textures-earth-default
470 %defattr(644,root,root,755)
471 %{_datadir}/apps/celestia/textures/medres/earth.jpg
472 %{_datadir}/apps/celestia/data/solarsys/20-earth
473
474 %files textures-earth-clouds-default
475 %defattr(644,root,root,755)
476 %{_datadir}/apps/celestia/textures/medres/earth-clouds.png
477 %{_datadir}/apps/celestia/data/solarsys/26-earth-clouds
478
479 %files textures-earth-night-default
480 %defattr(644,root,root,755)
481 %{_datadir}/apps/celestia/textures/medres/earthnight.jpg
482 %{_datadir}/apps/celestia/data/solarsys/22-earth-night
483
484 %files textures-moon-default
485 %defattr(644,root,root,755)
486 %{_datadir}/apps/celestia/textures/medres/moon.jpg
487 %{_datadir}/apps/celestia/data/solarsys/30-moon
488
489 %files textures-moon-bumpmap-default
490 %defattr(644,root,root,755)
491 %{_datadir}/apps/celestia/textures/medres/moonbump.jpg
492 %{_datadir}/apps/celestia/data/solarsys/33-moon-bump
493
494 %files textures-mars-default
495 %defattr(644,root,root,755)
496 %{_datadir}/apps/celestia/textures/medres/mars.jpg
497 %{_datadir}/apps/celestia/data/solarsys/40-mars
498
499 %files textures-mars-bumpmap-default
500 %defattr(644,root,root,755)
501 %{_datadir}/apps/celestia/textures/medres/marsbump.jpg
502 %{_datadir}/apps/celestia/data/solarsys/42-mars-bump
503
504 %files textures-galileanmoons-default
505 %defattr(644,root,root,755)
506 %{_datadir}/apps/celestia/textures/medres/callisto.jpg
507 %{_datadir}/apps/celestia/textures/medres/io.jpg
508 %{_datadir}/apps/celestia/textures/medres/europa.jpg
509 %{_datadir}/apps/celestia/textures/medres/ganymede.jpg
510 %{_datadir}/apps/celestia/data/solarsys/55-jupiter-galilean-moons
This page took 0.074829 seconds and 4 git commands to generate.