]> git.pld-linux.org Git - packages/celestia.git/blob - celestia.spec
- add lua scripts
[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 cp -r scripts $RPM_BUILD_ROOT%{_datadir}/apps/%{name}/scripts
328
329 cat > $RPM_BUILD_ROOT%{_datadir}/apps/%{name}/solarsys-gen << EOF
330 #!/bin/sh
331 cd %{_datadir}/apps/%{name}/data
332 LANG=C cat solarsys/* > solarsys.ssc
333 EOF
334
335 #%find_lang %{name} --with-kde          #doesn't find any lang files in 1.3.1, don't know why
336
337 %clean
338 rm -rf $RPM_BUILD_ROOT
339
340 # all texture-* here are required in one or another version, so no %%postun
341 %post   -p %{_datadir}/apps/%{name}/solarsys-gen
342 %post   textures-mercury-default        -p %{_datadir}/apps/%{name}/solarsys-gen
343 %post   textures-earth-default          -p %{_datadir}/apps/%{name}/solarsys-gen
344 %post   textures-earth-clouds-default   -p %{_datadir}/apps/%{name}/solarsys-gen
345 %post   textures-moon-default           -p %{_datadir}/apps/%{name}/solarsys-gen
346 %post   textures-mars-default           -p %{_datadir}/apps/%{name}/solarsys-gen
347 %post   textures-galileanmoons-default  -p %{_datadir}/apps/%{name}/solarsys-gen
348
349 # optional, so %%postun is also required
350 %post   textures-mercury-bumpmap-default        -p %{_datadir}/apps/%{name}/solarsys-gen
351 %postun textures-mercury-bumpmap-default        -p %{_datadir}/apps/%{name}/solarsys-gen
352 %post   textures-earth-night-default    -p %{_datadir}/apps/%{name}/solarsys-gen
353 %postun textures-earth-night-default    -p %{_datadir}/apps/%{name}/solarsys-gen
354 %post   textures-mars-bumpmap-default   -p %{_datadir}/apps/%{name}/solarsys-gen
355 %postun textures-mars-bumpmap-default   -p %{_datadir}/apps/%{name}/solarsys-gen
356 %post   textures-moon-bumpmap-default   -p %{_datadir}/apps/%{name}/solarsys-gen
357 %postun textures-moon-bumpmap-default   -p %{_datadir}/apps/%{name}/solarsys-gen
358
359 %files
360 %defattr(644,root,root,755)
361 %doc README AUTHORS TODO controls.txt ChangeLog
362 %doc %{_datadir}/apps/celestia/manual
363 %attr(755,root,root) %{_bindir}/*
364 %{_datadir}/apps/celestia/data/solarsys/04-mercury
365 %{_datadir}/apps/celestia/data/solarsys/08-mercury
366 %{_datadir}/apps/celestia/data/solarsys/10-venus
367 %{_datadir}/apps/celestia/data/solarsys/24-earth
368 %{_datadir}/apps/celestia/data/solarsys/28-earth
369 %{_datadir}/apps/celestia/data/solarsys/35-moon
370 %{_datadir}/apps/celestia/data/solarsys/37-earth-satellites
371 %{_datadir}/apps/celestia/data/solarsys/44-mars
372 %{_datadir}/apps/celestia/data/solarsys/48-mars-moons
373 %{_datadir}/apps/celestia/data/solarsys/50-jupiter
374 %{_datadir}/apps/celestia/data/solarsys/52-jupiter-small-moon
375 %{_datadir}/apps/celestia/data/solarsys/60-saturn
376 %{_datadir}/apps/celestia/data/solarsys/65-saturn-moons
377 %{_datadir}/apps/celestia/data/solarsys/70-uranus
378 %{_datadir}/apps/celestia/data/solarsys/75-uranus-moons
379 %{_datadir}/apps/celestia/data/solarsys/80-neptune
380 %{_datadir}/apps/celestia/data/solarsys/82-neptune-moons
381 %{_datadir}/apps/celestia/data/solarsys/90-pluto
382 %{_datadir}/apps/celestia/data/solarsys/92-pluto-moon
383 %{_datadir}/apps/celestia/data/solarsys/99-various
384 %{_datadir}/apps/celestia/data/asterisms.dat
385 %{_datadir}/apps/celestia/data/asteroids.ssc
386 %{_datadir}/apps/celestia/data/boundaries.dat
387 %{_datadir}/apps/celestia/data/cassini.xyz
388 %{_datadir}/apps/celestia/data/comets.ssc
389 %{_datadir}/apps/celestia/data/deepsky.dsc
390 %{_datadir}/apps/celestia/data/galileo.xyz
391 %{_datadir}/apps/celestia/data/huygens.xyz
392 %{_datadir}/apps/celestia/data/outersys.ssc
393 %verify(not md5 size mtime) %{_datadir}/apps/celestia/data/solarsys.ssc
394 %{_datadir}/apps/celestia/data/solsys_locs.ssc
395 %{_datadir}/apps/celestia/data/spacecraft.ssc
396 %{_datadir}/apps/celestia/data/starnames.dat
397 %{_datadir}/apps/celestia/data/world-capitals.ssc
398 %{_datadir}/apps/celestia/extras
399 %{_datadir}/apps/celestia/favicons
400 %{_datadir}/apps/celestia/fonts
401 %{_datadir}/apps/celestia/models
402 %{_datadir}/apps/celestia/scripts
403 %{_datadir}/apps/celestia/shaders
404 %dir %{_datadir}/apps/celestia/textures
405 %{_datadir}/apps/celestia/textures/lores
406 %{_datadir}/apps/celestia/textures/medres
407 %exclude %{_datadir}/apps/celestia/textures/medres/callisto.jpg
408 %exclude %{_datadir}/apps/celestia/textures/medres/earth-clouds.png
409 %exclude %{_datadir}/apps/celestia/textures/medres/earth.jpg
410 %exclude %{_datadir}/apps/celestia/textures/medres/earthnight.jpg
411 #%exclude %{_datadir}/apps/celestia/textures/medres/earth-spec.jpg
412 #%exclude %{_datadir}/apps/celestia/textures/medres/earth.png
413 %exclude %{_datadir}/apps/celestia/textures/medres/europa.jpg
414 %exclude %{_datadir}/apps/celestia/textures/medres/ganymede.jpg
415 %exclude %{_datadir}/apps/celestia/textures/medres/io.jpg
416 %exclude %{_datadir}/apps/celestia/textures/medres/marsbump.jpg
417 %exclude %{_datadir}/apps/celestia/textures/medres/mars.jpg
418 %exclude %{_datadir}/apps/celestia/textures/medres/mercurybump.jpg
419 %exclude %{_datadir}/apps/celestia/textures/medres/mercury.jpg
420 %exclude %{_datadir}/apps/celestia/textures/medres/moonbump.jpg
421 %exclude %{_datadir}/apps/celestia/textures/medres/moon.jpg
422 %{_datadir}/apps/celestia/textures/flare.jpg
423 %{_datadir}/apps/celestia/textures/logo.png
424 %{_datadir}/apps/celestia/bookmarks.xml
425 %{_datadir}/apps/celestia/celestia.cfg
426 %{_datadir}/apps/celestia/celestia.png
427 %{_datadir}/apps/celestia/celestiaui.rc
428 %{_datadir}/apps/celestia/controls.txt
429 %{_datadir}/apps/celestia/*.cel
430
431 %{_desktopdir}/*
432 %{_pixmapsdir}/*
433 %{_datadir}/config/*
434 %{_datadir}/mimelnk/application/*
435 %{_datadir}/services/*
436
437 %files task-default
438 %defattr(644,root,root,755)
439 %doc PLACEHOLDER-TASK-DEFAULT
440
441 %files generator
442 %defattr(644,root,root,755)
443 %dir %{_datadir}/apps/celestia
444 %dir %{_datadir}/apps/celestia/data
445 %dir %{_datadir}/apps/celestia/data/solarsys
446 %attr(755,root,root) %{_datadir}/apps/celestia/solarsys-gen
447
448 %files extrasolar-default
449 %defattr(644,root,root,755)
450 %{_datadir}/apps/celestia/data/extrasolar.ssc
451
452 %files stars-default
453 %defattr(644,root,root,755)
454 %{_datadir}/apps/celestia/data/stars.dat
455
456 %files textures-mercury-default
457 %defattr(644,root,root,755)
458 %{_datadir}/apps/celestia/textures/medres/mercury.jpg
459 %{_datadir}/apps/celestia/data/solarsys/00-mercury
460
461 %files textures-mercury-bumpmap-default
462 %defattr(644,root,root,755)
463 %{_datadir}/apps/celestia/textures/medres/mercurybump.jpg
464 %{_datadir}/apps/celestia/data/solarsys/02-mercury-bump
465 %{_datadir}/apps/celestia/data/solarsys/06-mercury-bump
466
467 %files textures-earth-default
468 %defattr(644,root,root,755)
469 %{_datadir}/apps/celestia/textures/medres/earth.jpg
470 %{_datadir}/apps/celestia/data/solarsys/20-earth
471
472 %files textures-earth-clouds-default
473 %defattr(644,root,root,755)
474 %{_datadir}/apps/celestia/textures/medres/earth-clouds.png
475 %{_datadir}/apps/celestia/data/solarsys/26-earth-clouds
476
477 %files textures-earth-night-default
478 %defattr(644,root,root,755)
479 %{_datadir}/apps/celestia/textures/medres/earthnight.jpg
480 %{_datadir}/apps/celestia/data/solarsys/22-earth-night
481
482 %files textures-moon-default
483 %defattr(644,root,root,755)
484 %{_datadir}/apps/celestia/textures/medres/moon.jpg
485 %{_datadir}/apps/celestia/data/solarsys/30-moon
486
487 %files textures-moon-bumpmap-default
488 %defattr(644,root,root,755)
489 %{_datadir}/apps/celestia/textures/medres/moonbump.jpg
490 %{_datadir}/apps/celestia/data/solarsys/33-moon-bump
491
492 %files textures-mars-default
493 %defattr(644,root,root,755)
494 %{_datadir}/apps/celestia/textures/medres/mars.jpg
495 %{_datadir}/apps/celestia/data/solarsys/40-mars
496
497 %files textures-mars-bumpmap-default
498 %defattr(644,root,root,755)
499 %{_datadir}/apps/celestia/textures/medres/marsbump.jpg
500 %{_datadir}/apps/celestia/data/solarsys/42-mars-bump
501
502 %files textures-galileanmoons-default
503 %defattr(644,root,root,755)
504 %{_datadir}/apps/celestia/textures/medres/callisto.jpg
505 %{_datadir}/apps/celestia/textures/medres/io.jpg
506 %{_datadir}/apps/celestia/textures/medres/europa.jpg
507 %{_datadir}/apps/celestia/textures/medres/ganymede.jpg
508 %{_datadir}/apps/celestia/data/solarsys/55-jupiter-galilean-moons
This page took 0.190422 seconds and 4 git commands to generate.