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