]> git.pld-linux.org Git - packages/celestia.git/blob - celestia.spec
- finished
[packages/celestia.git] / celestia.spec
1 Summary:        A real-time visual space simulation
2 Summary(pl):    Symulacja przestrzeni kosmicznej w czasie rzeczywistym
3 Name:           celestia
4 Version:        1.3.0
5 Release:        1
6 License:        GPL
7 Group:          X11/Applications/Science
8 Source0:        http://dl.sourceforge.net/celestia/%{name}-%{version}.tar.gz
9 Source1:        %{name}.desktop
10 Source2:        %{name}-solar-%{version}.tar.gz
11 URL:            http://www.shatters.net/celestia/
12 BuildRequires:  autoconf
13 BuildRequires:  automake
14 BuildRequires:  fam-devel
15 BuildRequires:  glut-devel
16 BuildRequires:  kdelibs-devel
17 BuildRequires:  libjpeg-devel
18 BuildRequires:  libpng-devel
19 BuildRequires:  libstdc++-devel
20 BuildRequires:  libtool
21 BuildRequires:  OpenGL-devel
22 Requires:       OpenGL
23 Requires:       %{name}-extrasolar
24 Requires:       %{name}-deepsky
25 Requires:       %{name}-stars
26 Requires:       %{name}-generator
27 Requires:       %{name}-textures-mercury
28 Requires:       %{name}-textures-venus
29 Requires:       %{name}-textures-earth
30 Requires:       %{name}-textures-earth-clouds
31 Requires:       %{name}-textures-earth-night
32 Requires:       %{name}-textures-moon
33 Requires:       %{name}-textures-mars
34 Requires:       %{name}-textures-jupiter
35 Requires:       %{name}-textures-galileanmoons
36 Requires:       %{name}-textures-saturn
37 Requires:       %{name}-textures-triton
38 Requires:       %{name}-textures-pluto
39 Obsoletes:      %{name}-textures-stars
40 Obsoletes:      %{name}-asterisms
41 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42
43 %define         _noautoreqdep   libGL.so.1 libGLU.so.1 libGLcore.so.1
44
45 %description
46 Celestia is a free real-time space simulation that lets you experience
47 our universe in three dimensions. Unlike most planetarium software,
48 Celestia doesn't confine you to the surface of the Earth. You can
49 travel throughout the solar system, to any of over 100,000 stars, or
50 even beyond the galaxy. All travel in Celestia is seamless; the
51 exponential zoom feature lets you explore space across a huge range of
52 scales, from galaxy clusters down to spacecraft only a few meters
53 across. A 'point-and-goto' interface makes it simple to navigate
54 through the universe to the object you want to visit.
55
56 %description -l pl
57 Celestia to wolny symulator przestrzeni komicznej w czasie
58 rzeczywistym, który pozwala do¶wiadczaæ naszego Wszech¶wiata w trzech
59 wymiarach. W odró¿nieniu od innych programów planetarnych Celestia nie
60 przywi±zuje Ciê do powierzchni ziemi. Mo¿esz podró¿owaæ przez Uk³ad
61 S³oneczny do ponad 100,000 gwiazd lub nawet poza galaktykê. Wszystkie
62 podró¿e w Celestii s± niezauwa¿alne; funkcja wyk³adniczego
63 przybli¿enia pozwala Ci odkrywaæ Kosmos w ró¿nych skalach - od
64 spojrzenia na galaktyki do widoku kilkumetrowych statków kosmicznych.
65 Interfejs typu 'poka¿-i-leæ' czyni nawigacjê przez Wszech¶wiat prost±.
66
67 %package task-default
68 Summary:        Default packages for celestia
69 Summary(pl):    Domy¶lne pakiety dla celestii
70 Group:          X11/Applications/Science
71 Requires:       %{name}-extrasolar-default
72 Requires:       %{name}-deepsky-default
73 Requires:       %{name}-stars-default
74 Requires:       %{name}-textures-mercury-default
75 Requires:       %{name}-textures-venus-default
76 Requires:       %{name}-textures-earth-default
77 Requires:       %{name}-textures-earth-clouds-default
78 Requires:       %{name}-textures-earth-night-default
79 Requires:       %{name}-textures-moon-default
80 Requires:       %{name}-textures-mars-default
81 Requires:       %{name}-textures-jupiter-default
82 Requires:       %{name}-textures-galileanmoons-default
83 Requires:       %{name}-textures-saturn-default
84 Requires:       %{name}-textures-triton-default
85 Requires:       %{name}-textures-pluto-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 %descreption 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 deepsky-default
121 Summary:        Galaxy catalog (8 galaxies)
122 Summary(pl):    Katalog o¶miu galaktyk
123 Group:          X11/Applications/Science
124 Requires:       %{name}
125 Provides:       %{name}-deepsky
126 Obsoletes:      %{name}-deepsky
127 Obsoletes:      %{name}-galaxies
128
129 %description deepsky-default
130 Galaxy catalog (8 galaxies).
131
132 %description deepsky-default -l pl
133 Katalog o¶miu galaktyk.
134
135 %package stars-default
136 Summary:        Database with 100 000 stars
137 Summary(pl):    Baza danych 100 000 gwiazd
138 Group:          X11/Applications/Science
139 Requires:       %{name}
140 Provides:       %{name}-stars
141 Obsoletes:      %{name}-stars
142
143 %description stars-default
144 Initial Stars database (with about 100 000 Hipparcos stars).
145
146 %description stars-default -l pl
147 Podstawowa baza danych gwiazd (z oko³o 100 000 gwiazd zbadanych
148 przez sondê kosmiczn± Hipparcos).
149
150 %package textures-mercury-default
151 Summary:        1k Mercury textures
152 Summary(pl):    Tekstury Merkurego o wielko¶ci 1024 x 512
153 Group:          X11/Applications/Science
154 Prereq:         %{name}-generator
155 Requires:       %{name}
156 Provides:       %{name}-textures-mercury
157 Obsoletes:      %{name}-textures-mercury
158
159 %description textures-mercury-default
160 1k Mercury textures.
161
162 %description textures-mercury-default -l pl
163 Tekstury Merkurego o wielko¶ci 1024 x 512.
164
165 %package textures-venus-default
166 Summary:        1k Venus textures
167 Summary(pl):    Tekstury Wenus o wielko¶ci 1024 x 512
168 Group:          X11/Applications/Science
169 Prereq:         %{name}-generator
170 Requires:       %{name}
171 Provides:       %{name}-textures-venus
172 Obsoletes:      %{name}-textures-venus
173
174 %description textures-venus-default
175 1k Venus textures.
176
177 %description textures-venus-default -l pl
178 Tekstury Venus o wielko¶ci 1024 x 512.
179
180 %package textures-earth-default
181 Summary:        2k Earth textures
182 Summary(pl):    Tekstury Ziemi o wielko¶ci 2048 x 1024
183 Group:          X11/Applications/Science
184 Prereq:         %{name}-generator
185 Requires:       %{name}
186 Provides:       %{name}-textures-earth
187 Obsoletes:      %{name}-textures-earth
188
189 %description textures-earth-default
190 2k Earth textures.
191
192 %description textures-earth-default -l pl
193 Tekstury Ziemi o wielko¶ci 2048 x 1024.
194
195 %package textures-earth-clouds-default
196 Summary:        1k Earth cloud textures
197 Summary(pl):    Tekstury ziemskich chmur o wielko¶ci 1024 x 512
198 Group:          X11/Applications/Science
199 Prereq:         %{name}-generator
200 Requires:       %{name}
201 Provides:       %{name}-textures-earth-clouds
202 Obsoletes:      %{name}-textures-earth-clouds
203
204 %description textures-earth-clouds-default
205 1k Earth clouds textures.
206
207 %description textures-earth-clouds-default -l pl
208 Tekstury ziemskich chmur o wielko¶ci 1024 x 512.
209
210 %package textures-earth-night-default
211 Summary:        1k Earth night textures
212 Summary(pl):    Tekstury nocnych ¶wiate³ miast o wielko¶ci 1024 x 512
213 Group:          X11/Applications/Science
214 Prereq:         %{name}-generator
215 Requires:       %{name}
216 Provides:       %{name}-textures-earth-night
217 Obsoletes:      %{name}-textures-earth-night
218
219 %description textures-earth-night-default
220 1k Earth night textures.
221
222 %description textures-earth-night-default -l pl
223 Tekstury nocnych ¶wiate³ miast o wielko¶ci 1024 x 512.
224
225 %package textures-moon-default
226 Summary:        1k Moon textures
227 Summary(pl):    Tekstury 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
232 Obsoletes:      %{name}-textures-moon
233
234 %description textures-moon-default
235 1k Moon textures.
236
237 %description textures-moon-default -l pl
238 Tekstury 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-jupiter-default
256 Summary:        1k Jupiter textures
257 Summary(pl):    Tekstury Jowisza o wielko¶ci 1024 x 512
258 Group:          X11/Applications/Science
259 Prereq:         %{name}-generator
260 Requires:       %{name}
261 Provides:       %{name}-textures-jupiter
262 Obsoletes:      %{name}-textures-jupiter
263
264 %description textures-jupiter-default
265 1k Jupiter textures.
266
267 %description textures-jupiter-default -l pl
268 Tekstury Jowisza 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 %package textures-saturn-default
287 Summary:        256 Saturn textures
288 Summary(pl):    Tekstury Saturna o wielko¶ci 256 x 128
289 Group:          X11/Applications/Science
290 Prereq:         %{name}-generator
291 Requires:       %{name}
292 Provides:       %{name}-textures-saturn
293 Obsoletes:      %{name}-textures-saturn
294
295 %description textures-saturn-default
296 256 Saturn textures.
297
298 %description textures-saturn-default -l pl
299 Tekstury Jowisza o wielko¶ci 256 x 128.
300
301 %package textures-triton-default
302 Summary:        512 Triton textures
303 Summary(pl):    Tekstury Trytona o wielko¶ci 512 x 256
304 Group:          X11/Applications/Science
305 Prereq:         %{name}-generator
306 Requires:       %{name}
307 Provides:       %{name}-textures-triton
308 Obsoletes:      %{name}-textures-triton
309
310 %description textures-triton-default
311 512 Triton textures.
312
313 %description textures-triton-default -l pl
314 Tekstury najwiêkszego ksiê¿yca Neptuna, Trytona
315 o wielko¶ci 512 x 256.
316
317 %package textures-pluto-default
318 Summary:        1k Pluto textures
319 Summary(pl):    Tekstury Plutona o wielko¶ci 1024 x 512
320 Group:          X11/Applications/Science
321 Prereq:         %{name}-generator
322 Requires:       %{name}
323 Provides:       %{name}-textures-pluto
324 Obsoletes:      %{name}-textures-pluto
325
326 %description textures-pluto-default
327 1k Pluto textures.
328
329 %description textures-pluto-default -l pl
330 Tekstury Plutona o wielko¶ci 1024 x 512.
331
332 %prep
333 %setup -q -a2
334
335 echo "You can remove this package safely." > PLACEHOLDER-TASK-DEFAULT
336
337 %build
338 rm -f missing
339 %{__libtoolize}
340 %{__aclocal} -I macros
341 %{__autoconf}
342 %{__automake}
343 CXXFLAGS="%{rpmcflags} -fno-rtti -fno-exceptions"
344 %configure \
345         --disable-rpath \
346         --with-kde \
347         --without-gtk \
348         --without-lua \
349         --with-xinerama
350 %{__make}
351
352 %install
353 rm -rf $RPM_BUILD_ROOT
354 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_applnkdir}/Scientific/Astronomy}
355
356 %{__make} install \
357         DESTDIR=$RPM_BUILD_ROOT
358
359 # desktop/icon
360 install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Scientific/Astronomy/%{name}.desktop
361 cp src/celestia/kde/data/hi48-app-celestia.png $RPM_BUILD_ROOT%{_pixmapsdir}/celestia.png
362
363 # solarsys.ssc generator
364 install -d $RPM_BUILD_ROOT%{_datadir}/apps/%{name}/data/solarsys
365 install solar/* $RPM_BUILD_ROOT%{_datadir}/apps/%{name}/data/solarsys
366 cat > $RPM_BUILD_ROOT%{_datadir}/apps/%{name}/solarsys-gen << EOF
367 #!/bin/sh
368 cd %{_datadir}/apps/%{name}/data
369 LANG=C cat solarsys/* > solarsys.ssc
370 EOF
371
372 %clean
373 rm -rf $RPM_BUILD_ROOT
374
375 # all texture-* here are required in one or another version, so no %%postun
376 %post   -p %{_datadir}/apps/%{name}/solarsys-gen
377 %post   textures-mercury-default        -p %{_datadir}/apps/%{name}/solarsys-gen
378 %post   textures-venus-default          -p %{_datadir}/apps/%{name}/solarsys-gen
379 %post   textures-earth-default          -p %{_datadir}/apps/%{name}/solarsys-gen
380 %post   textures-earth-clouds-default   -p %{_datadir}/apps/%{name}/solarsys-gen
381 %post   textures-earth-night-default    -p %{_datadir}/apps/%{name}/solarsys-gen
382 %post   textures-moon-default           -p %{_datadir}/apps/%{name}/solarsys-gen
383 %post   textures-mars-default           -p %{_datadir}/apps/%{name}/solarsys-gen
384 %post   textures-jupiter-default        -p %{_datadir}/apps/%{name}/solarsys-gen
385 %post   textures-galileanmoons-default  -p %{_datadir}/apps/%{name}/solarsys-gen
386 %post   textures-saturn-default         -p %{_datadir}/apps/%{name}/solarsys-gen
387 %post   textures-triton-default         -p %{_datadir}/apps/%{name}/solarsys-gen
388 %post   textures-pluto-default          -p %{_datadir}/apps/%{name}/solarsys-gen
389
390 %files
391 %defattr(644,root,root,755)
392 %doc README AUTHORS TODO controls.txt ChangeLog
393 %doc %{_datadir}/apps/celestia/manual
394 %attr(755,root,root) %{_bindir}/*
395 %{_datadir}/apps/celestia/data/solarsys/35-earth-satellites
396 %{_datadir}/apps/celestia/data/solarsys/45-mars-moons
397 %{_datadir}/apps/celestia/data/solarsys/52-jupiter-small-moon
398 %{_datadir}/apps/celestia/data/solarsys/65-saturn-moons
399 %{_datadir}/apps/celestia/data/solarsys/70-uranus
400 %{_datadir}/apps/celestia/data/solarsys/75-uranus-moons
401 %{_datadir}/apps/celestia/data/solarsys/80-neptune
402 %{_datadir}/apps/celestia/data/solarsys/84-neptune-moons
403 %{_datadir}/apps/celestia/data/solarsys/92-pluto-moon
404 %{_datadir}/apps/celestia/data/solarsys/99-various
405 %{_datadir}/apps/celestia/data/asterisms.dat
406 %{_datadir}/apps/celestia/data/boundaries.dat
407 %{_datadir}/apps/celestia/data/galileo.xyz
408 %verify(not md5 size mtime) %{_datadir}/apps/celestia/data/solarsys.ssc
409 %{_datadir}/apps/celestia/data/hdnames.dat
410 %{_datadir}/apps/celestia/data/starnames.dat
411 %{_datadir}/apps/celestia/extras
412 %{_datadir}/apps/celestia/favicons
413 %{_datadir}/apps/celestia/fonts
414 %{_datadir}/apps/celestia/models
415 %{_datadir}/apps/celestia/shaders
416 %dir %{_datadir}/apps/celestia/textures
417 %{_datadir}/apps/celestia/textures/lores
418 %{_datadir}/apps/celestia/textures/medres
419 %exclude %{_datadir}/apps/celestia/textures/medres/callisto.jpg
420 %exclude %{_datadir}/apps/celestia/textures/medres/earth*
421 %exclude %{_datadir}/apps/celestia/textures/medres/europa.jpg
422 %exclude %{_datadir}/apps/celestia/textures/medres/ganymede.jpg
423 %exclude %{_datadir}/apps/celestia/textures/medres/io.jpg
424 %exclude %{_datadir}/apps/celestia/textures/medres/jupiter.jpg
425 %exclude %{_datadir}/apps/celestia/textures/medres/mars*
426 %exclude %{_datadir}/apps/celestia/textures/medres/mercury*
427 %exclude %{_datadir}/apps/celestia/textures/medres/moon*
428 %exclude %{_datadir}/apps/celestia/textures/medres/pluto*
429 %exclude %{_datadir}/apps/celestia/textures/medres/saturn*
430 %exclude %{_datadir}/apps/celestia/textures/medres/triton*
431 %exclude %{_datadir}/apps/celestia/textures/medres/venus.jpg
432 %exclude %{_datadir}/apps/celestia/textures/medres/venussurface.jpg
433 %{_datadir}/apps/celestia/textures/flare.jpg
434 %{_datadir}/apps/celestia/textures/logo.png
435 %{_datadir}/apps/celestia/bookmarks.xml
436 %{_datadir}/apps/celestia/celestia.cfg
437 %{_datadir}/apps/celestia/celestiaui.rc
438 %{_datadir}/apps/celestia/controls.txt
439 %{_datadir}/apps/celestia/*.cel
440
441 %{_applnkdir}/Scientific/Astronomy/*
442 %{_pixmapsdir}/*
443 %{_datadir}/config
444 %{_datadir}/doc/HTML/en/%{name}
445 %{_datadir}/mimelnk/application/*
446 %{_datadir}/services/*
447
448 %files task-default
449 %defattr(644,root,root,755)
450 %doc PLACEHOLDER-TASK-DEFAULT
451
452 %files generator
453 %defattr(644,root,root,755)
454 %dir %{_datadir}/apps/celestia
455 %dir %{_datadir}/apps/celestia/data
456 %dir %{_datadir}/apps/celestia/data/solarsys
457 %attr(755,root,root) %{_datadir}/apps/celestia/solarsys-gen
458
459 %files extrasolar-default
460 %defattr(644,root,root,755)
461 %{_datadir}/apps/celestia/data/extrasolar.ssc
462
463 %files deepsky-default
464 %defattr(644,root,root,755)
465 %{_datadir}/apps/celestia/data/deepsky.dsc
466
467 %files stars-default
468 %defattr(644,root,root,755)
469 %{_datadir}/apps/celestia/data/stars.dat
470
471 %files textures-mercury-default
472 %defattr(644,root,root,755)
473 %{_datadir}/apps/celestia/textures/medres/mercury.jpg
474 %{_datadir}/apps/celestia/textures/medres/mercurybump.jpg
475 %{_datadir}/apps/celestia/data/solarsys/00-mercury
476
477 %files textures-venus-default
478 %defattr(644,root,root,755)
479 %{_datadir}/apps/celestia/textures/medres/venus.jpg
480 %{_datadir}/apps/celestia/textures/medres/venussurface.jpg
481 %{_datadir}/apps/celestia/data/solarsys/10-venus
482
483 %files textures-earth-default
484 %defattr(644,root,root,755)
485 %{_datadir}/apps/celestia/textures/medres/earth.png
486 %{_datadir}/apps/celestia/data/solarsys/20-earth
487 %{_datadir}/apps/celestia/data/solarsys/24-earth
488 %{_datadir}/apps/celestia/data/solarsys/28-earth
489
490 %files textures-earth-clouds-default
491 %defattr(644,root,root,755)
492 %{_datadir}/apps/celestia/textures/medres/earth-clouds.png
493 %{_datadir}/apps/celestia/data/solarsys/26-earth-clouds
494
495 %files textures-earth-night-default
496 %defattr(644,root,root,755)
497 %{_datadir}/apps/celestia/textures/medres/earthnight.jpg
498 %{_datadir}/apps/celestia/data/solarsys/22-earth-night
499
500 %files textures-moon-default
501 %defattr(644,root,root,755)
502 %{_datadir}/apps/celestia/textures/medres/moon.jpg
503 %{_datadir}/apps/celestia/textures/medres/moonbump1k.jpg
504 %{_datadir}/apps/celestia/data/solarsys/30-moon
505
506 %files textures-mars-default
507 %defattr(644,root,root,755)
508 %{_datadir}/apps/celestia/textures/medres/mars.jpg
509 %{_datadir}/apps/celestia/textures/medres/marsbump1k.jpg
510 %{_datadir}/apps/celestia/data/solarsys/40-mars
511
512 %files textures-jupiter-default
513 %defattr(644,root,root,755)
514 %{_datadir}/apps/celestia/textures/medres/jupiter.jpg
515 %{_datadir}/apps/celestia/data/solarsys/50-jupiter
516
517 %files textures-galileanmoons-default
518 %defattr(644,root,root,755)
519 %{_datadir}/apps/celestia/textures/medres/callisto.jpg
520 %{_datadir}/apps/celestia/textures/medres/io.jpg
521 %{_datadir}/apps/celestia/textures/medres/europa.jpg
522 %{_datadir}/apps/celestia/textures/medres/ganymede.jpg
523 %{_datadir}/apps/celestia/data/solarsys/55-jupiter-galilean-moons
524
525 %files textures-saturn-default
526 %defattr(644,root,root,755)
527 %{_datadir}/apps/celestia/textures/medres/saturn.jpg
528 %{_datadir}/apps/celestia/data/solarsys/60-saturn
529
530 %files textures-triton-default
531 %defattr(644,root,root,755)
532 %{_datadir}/apps/celestia/textures/medres/triton.jpg
533 %{_datadir}/apps/celestia/data/solarsys/82-neptune-triton
534
535 %files textures-pluto-default
536 %defattr(644,root,root,755)
537 %{_datadir}/apps/celestia/textures/medres/pluto.jpg
538 %{_datadir}/apps/celestia/textures/medres/plutobump1k.jpg
539 %{_datadir}/apps/celestia/data/solarsys/90-pluto
This page took 0.144076 seconds and 4 git commands to generate.