]> git.pld-linux.org Git - packages/celestia.git/blob - celestia.spec
- multiple galaxy files possible
[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}-stars
25 Requires:       %{name}-generator
26 Requires:       %{name}-textures-mercury
27 Requires:       %{name}-textures-venus
28 Requires:       %{name}-textures-earth
29 Requires:       %{name}-textures-earth-clouds
30 Requires:       %{name}-textures-earth-night
31 Requires:       %{name}-textures-moon
32 Requires:       %{name}-textures-mars
33 Requires:       %{name}-textures-jupiter
34 Requires:       %{name}-textures-galileanmoons
35 Requires:       %{name}-textures-saturn
36 Requires:       %{name}-textures-triton
37 Requires:       %{name}-textures-pluto
38 Obsoletes:      %{name}-textures-stars
39 Obsoletes:      %{name}-asterisms
40 Obsoletes:      %{name}-galaxies
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}-stars-default
73 Requires:       %{name}-textures-mercury-default
74 Requires:       %{name}-textures-venus-default
75 Requires:       %{name}-textures-earth-default
76 Requires:       %{name}-textures-earth-clouds-default
77 Requires:       %{name}-textures-earth-night-default
78 Requires:       %{name}-textures-moon-default
79 Requires:       %{name}-textures-mars-default
80 Requires:       %{name}-textures-jupiter-default
81 Requires:       %{name}-textures-galileanmoons-default
82 Requires:       %{name}-textures-saturn-default
83 Requires:       %{name}-textures-triton-default
84 Requires:       %{name}-textures-pluto-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 %descreption 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-venus-default
150 Summary:        1k Venus textures
151 Summary(pl):    Tekstury Wenus o wielko¶ci 1024 x 512
152 Group:          X11/Applications/Science
153 Prereq:         %{name}-generator
154 Requires:       %{name}
155 Provides:       %{name}-textures-venus
156 Obsoletes:      %{name}-textures-venus
157
158 %description textures-venus-default
159 1k Venus textures.
160
161 %description textures-venus-default -l pl
162 Tekstury Venus 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-mars-default
225 Summary:        1k Mars textures
226 Summary(pl):    Tekstury Marsa o wielko¶ci 1024 x 512
227 Group:          X11/Applications/Science
228 Prereq:         %{name}-generator
229 Requires:       %{name}
230 Provides:       %{name}-textures-mars
231 Obsoletes:      %{name}-textures-mars
232
233 %description textures-mars-default
234 1k Mars textures.
235
236 %description textures-mars-default -l pl
237 Tekstury Marsa o wielko¶ci 1024 x 512.
238
239 %package textures-jupiter-default
240 Summary:        1k Jupiter textures
241 Summary(pl):    Tekstury Jowisza o wielko¶ci 1024 x 512
242 Group:          X11/Applications/Science
243 Prereq:         %{name}-generator
244 Requires:       %{name}
245 Provides:       %{name}-textures-jupiter
246 Obsoletes:      %{name}-textures-jupiter
247
248 %description textures-jupiter-default
249 1k Jupiter textures.
250
251 %description textures-jupiter-default -l pl
252 Tekstury Jowisza o wielko¶ci 1024 x 512.
253
254 %package textures-galileanmoons-default
255 Summary:        1k galilean moons textures
256 Summary(pl):    Tekstury ksiê¿yców odkrytych przez Galileusza o wielko¶ci 1024 x 512
257 Group:          X11/Applications/Science
258 Prereq:         %{name}-generator
259 Requires:       %{name}
260 Provides:       %{name}-textures-galileanmoons
261 Obsoletes:      %{name}-textures-galileanmoons
262
263 %description textures-galileanmoons-default
264 1k galilean moons (Io, Europa, Ganymede, Calypso) textures.
265
266 %description textures-galileanmoons-default -l pl
267 Tekstury ksiê¿yców Jowisza odkrytych przez Galileusza (Io,
268 Europa, Ganimedes, Calypso) o wielko¶ci 1024 x 512.
269
270 %package textures-saturn-default
271 Summary:        256 Saturn textures
272 Summary(pl):    Tekstury Saturna o wielko¶ci 256 x 128
273 Group:          X11/Applications/Science
274 Prereq:         %{name}-generator
275 Requires:       %{name}
276 Provides:       %{name}-textures-saturn
277 Obsoletes:      %{name}-textures-saturn
278
279 %description textures-saturn-default
280 256 Saturn textures.
281
282 %description textures-saturn-default -l pl
283 Tekstury Jowisza o wielko¶ci 256 x 128.
284
285 %package textures-triton-default
286 Summary:        512 Triton textures
287 Summary(pl):    Tekstury Trytona o wielko¶ci 512 x 256
288 Group:          X11/Applications/Science
289 Prereq:         %{name}-generator
290 Requires:       %{name}
291 Provides:       %{name}-textures-triton
292 Obsoletes:      %{name}-textures-triton
293
294 %description textures-triton-default
295 512 Triton textures.
296
297 %description textures-triton-default -l pl
298 Tekstury najwiêkszego ksiê¿yca Neptuna, Trytona
299 o wielko¶ci 512 x 256.
300
301 %package textures-pluto-default
302 Summary:        1k Pluto textures
303 Summary(pl):    Tekstury Plutona o wielko¶ci 1024 x 512
304 Group:          X11/Applications/Science
305 Prereq:         %{name}-generator
306 Requires:       %{name}
307 Provides:       %{name}-textures-pluto
308 Obsoletes:      %{name}-textures-pluto
309
310 %description textures-pluto-default
311 1k Pluto textures.
312
313 %description textures-pluto-default -l pl
314 Tekstury Plutona o wielko¶ci 1024 x 512.
315
316 %prep
317 %setup -q -a2
318
319 echo "You can remove this package safely." > PLACEHOLDER-TASK-DEFAULT
320
321 %build
322 rm -f missing
323 %{__libtoolize}
324 %{__aclocal} -I macros
325 %{__autoconf}
326 %{__automake}
327 CXXFLAGS="%{rpmcflags} -fno-rtti -fno-exceptions"
328 %configure \
329         --disable-rpath \
330         --with-kde \
331         --without-gtk \
332         --without-lua \
333         --with-xinerama
334 %{__make}
335
336 %install
337 rm -rf $RPM_BUILD_ROOT
338 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_applnkdir}/Scientific/Astronomy}
339
340 %{__make} install \
341         DESTDIR=$RPM_BUILD_ROOT
342
343 # desktop/icon
344 install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Scientific/Astronomy/%{name}.desktop
345 cp src/celestia/kde/data/hi48-app-celestia.png $RPM_BUILD_ROOT%{_pixmapsdir}/celestia.png
346
347 # solarsys.ssc generator
348 install -d $RPM_BUILD_ROOT%{_datadir}/apps/%{name}/data/solarsys
349 install solar/* $RPM_BUILD_ROOT%{_datadir}/apps/%{name}/data/solarsys
350 cat > $RPM_BUILD_ROOT%{_datadir}/apps/%{name}/solarsys-gen << EOF
351 #!/bin/sh
352 cd %{_datadir}/apps/%{name}/data
353 LANG=C cat solarsys/* > solarsys.ssc
354 EOF
355
356 %clean
357 rm -rf $RPM_BUILD_ROOT
358
359 # all texture-* here are required in one or another version, so no %%postun
360 %post   -p %{_datadir}/apps/%{name}/solarsys-gen
361 %post   textures-mercury-default        -p %{_datadir}/apps/%{name}/solarsys-gen
362 %post   textures-venus-default          -p %{_datadir}/apps/%{name}/solarsys-gen
363 %post   textures-earth-default          -p %{_datadir}/apps/%{name}/solarsys-gen
364 %post   textures-earth-clouds-default   -p %{_datadir}/apps/%{name}/solarsys-gen
365 %post   textures-earth-night-default    -p %{_datadir}/apps/%{name}/solarsys-gen
366 %post   textures-moon-default           -p %{_datadir}/apps/%{name}/solarsys-gen
367 %post   textures-mars-default           -p %{_datadir}/apps/%{name}/solarsys-gen
368 %post   textures-jupiter-default        -p %{_datadir}/apps/%{name}/solarsys-gen
369 %post   textures-galileanmoons-default  -p %{_datadir}/apps/%{name}/solarsys-gen
370 %post   textures-saturn-default         -p %{_datadir}/apps/%{name}/solarsys-gen
371 %post   textures-triton-default         -p %{_datadir}/apps/%{name}/solarsys-gen
372 %post   textures-pluto-default          -p %{_datadir}/apps/%{name}/solarsys-gen
373
374 %files
375 %defattr(644,root,root,755)
376 %doc README AUTHORS TODO controls.txt ChangeLog
377 %doc %{_datadir}/apps/celestia/manual
378 %attr(755,root,root) %{_bindir}/*
379 %{_datadir}/apps/celestia/data/solarsys/35-earth-satellites
380 %{_datadir}/apps/celestia/data/solarsys/45-mars-moons
381 %{_datadir}/apps/celestia/data/solarsys/52-jupiter-small-moon
382 %{_datadir}/apps/celestia/data/solarsys/65-saturn-moons
383 %{_datadir}/apps/celestia/data/solarsys/70-uranus
384 %{_datadir}/apps/celestia/data/solarsys/75-uranus-moons
385 %{_datadir}/apps/celestia/data/solarsys/80-neptune
386 %{_datadir}/apps/celestia/data/solarsys/84-neptune-moons
387 %{_datadir}/apps/celestia/data/solarsys/92-pluto-moon
388 %{_datadir}/apps/celestia/data/solarsys/99-various
389 %{_datadir}/apps/celestia/data/asterisms.dat
390 %{_datadir}/apps/celestia/data/boundaries.dat
391 %{_datadir}/apps/celestia/data/deepsky.dsc
392 %{_datadir}/apps/celestia/data/galileo.xyz
393 %verify(not md5 size mtime) %{_datadir}/apps/celestia/data/solarsys.ssc
394 %{_datadir}/apps/celestia/data/hdnames.dat
395 %{_datadir}/apps/celestia/data/starnames.dat
396 %{_datadir}/apps/celestia/extras
397 %{_datadir}/apps/celestia/favicons
398 %{_datadir}/apps/celestia/fonts
399 %{_datadir}/apps/celestia/models
400 %{_datadir}/apps/celestia/shaders
401 %dir %{_datadir}/apps/celestia/textures
402 %{_datadir}/apps/celestia/textures/lores
403 %{_datadir}/apps/celestia/textures/medres
404 %exclude %{_datadir}/apps/celestia/textures/medres/callisto.jpg
405 %exclude %{_datadir}/apps/celestia/textures/medres/earth*
406 %exclude %{_datadir}/apps/celestia/textures/medres/europa.jpg
407 %exclude %{_datadir}/apps/celestia/textures/medres/ganymede.jpg
408 %exclude %{_datadir}/apps/celestia/textures/medres/io.jpg
409 %exclude %{_datadir}/apps/celestia/textures/medres/jupiter.jpg
410 %exclude %{_datadir}/apps/celestia/textures/medres/mars*
411 %exclude %{_datadir}/apps/celestia/textures/medres/mercury*
412 %exclude %{_datadir}/apps/celestia/textures/medres/moon*
413 %exclude %{_datadir}/apps/celestia/textures/medres/pluto*
414 %exclude %{_datadir}/apps/celestia/textures/medres/saturn*
415 %exclude %{_datadir}/apps/celestia/textures/medres/triton*
416 %exclude %{_datadir}/apps/celestia/textures/medres/venus.jpg
417 %exclude %{_datadir}/apps/celestia/textures/medres/venussurface.jpg
418 %{_datadir}/apps/celestia/textures/flare.jpg
419 %{_datadir}/apps/celestia/textures/logo.png
420 %{_datadir}/apps/celestia/bookmarks.xml
421 %{_datadir}/apps/celestia/celestia.cfg
422 %{_datadir}/apps/celestia/celestiaui.rc
423 %{_datadir}/apps/celestia/controls.txt
424 %{_datadir}/apps/celestia/*.cel
425
426 %{_applnkdir}/Scientific/Astronomy/*
427 %{_pixmapsdir}/*
428 %{_datadir}/config
429 %{_datadir}/doc/HTML/en/%{name}
430 %{_datadir}/mimelnk/application/*
431 %{_datadir}/services/*
432
433 %files task-default
434 %defattr(644,root,root,755)
435 %doc PLACEHOLDER-TASK-DEFAULT
436
437 %files generator
438 %defattr(644,root,root,755)
439 %dir %{_datadir}/apps/celestia
440 %dir %{_datadir}/apps/celestia/data
441 %dir %{_datadir}/apps/celestia/data/solarsys
442 %attr(755,root,root) %{_datadir}/apps/celestia/solarsys-gen
443
444 %files extrasolar-default
445 %defattr(644,root,root,755)
446 %{_datadir}/apps/celestia/data/extrasolar.ssc
447
448 %files stars-default
449 %defattr(644,root,root,755)
450 %{_datadir}/apps/celestia/data/stars.dat
451
452 %files textures-mercury-default
453 %defattr(644,root,root,755)
454 %{_datadir}/apps/celestia/textures/medres/mercury.jpg
455 %{_datadir}/apps/celestia/textures/medres/mercurybump.jpg
456 %{_datadir}/apps/celestia/data/solarsys/00-mercury
457
458 %files textures-venus-default
459 %defattr(644,root,root,755)
460 %{_datadir}/apps/celestia/textures/medres/venus.jpg
461 %{_datadir}/apps/celestia/textures/medres/venussurface.jpg
462 %{_datadir}/apps/celestia/data/solarsys/10-venus
463
464 %files textures-earth-default
465 %defattr(644,root,root,755)
466 %{_datadir}/apps/celestia/textures/medres/earth.png
467 %{_datadir}/apps/celestia/data/solarsys/20-earth
468 %{_datadir}/apps/celestia/data/solarsys/24-earth
469 %{_datadir}/apps/celestia/data/solarsys/28-earth
470
471 %files textures-earth-clouds-default
472 %defattr(644,root,root,755)
473 %{_datadir}/apps/celestia/textures/medres/earth-clouds.png
474 %{_datadir}/apps/celestia/data/solarsys/26-earth-clouds
475
476 %files textures-earth-night-default
477 %defattr(644,root,root,755)
478 %{_datadir}/apps/celestia/textures/medres/earthnight.jpg
479 %{_datadir}/apps/celestia/data/solarsys/22-earth-night
480
481 %files textures-moon-default
482 %defattr(644,root,root,755)
483 %{_datadir}/apps/celestia/textures/medres/moon.jpg
484 %{_datadir}/apps/celestia/textures/medres/moonbump1k.jpg
485 %{_datadir}/apps/celestia/data/solarsys/30-moon
486
487 %files textures-mars-default
488 %defattr(644,root,root,755)
489 %{_datadir}/apps/celestia/textures/medres/mars.jpg
490 %{_datadir}/apps/celestia/textures/medres/marsbump1k.jpg
491 %{_datadir}/apps/celestia/data/solarsys/40-mars
492
493 %files textures-jupiter-default
494 %defattr(644,root,root,755)
495 %{_datadir}/apps/celestia/textures/medres/jupiter.jpg
496 %{_datadir}/apps/celestia/data/solarsys/50-jupiter
497
498 %files textures-galileanmoons-default
499 %defattr(644,root,root,755)
500 %{_datadir}/apps/celestia/textures/medres/callisto.jpg
501 %{_datadir}/apps/celestia/textures/medres/io.jpg
502 %{_datadir}/apps/celestia/textures/medres/europa.jpg
503 %{_datadir}/apps/celestia/textures/medres/ganymede.jpg
504 %{_datadir}/apps/celestia/data/solarsys/55-jupiter-galilean-moons
505
506 %files textures-saturn-default
507 %defattr(644,root,root,755)
508 %{_datadir}/apps/celestia/textures/medres/saturn.jpg
509 %{_datadir}/apps/celestia/data/solarsys/60-saturn
510
511 %files textures-triton-default
512 %defattr(644,root,root,755)
513 %{_datadir}/apps/celestia/textures/medres/triton.jpg
514 %{_datadir}/apps/celestia/data/solarsys/82-neptune-triton
515
516 %files textures-pluto-default
517 %defattr(644,root,root,755)
518 %{_datadir}/apps/celestia/textures/medres/pluto.jpg
519 %{_datadir}/apps/celestia/textures/medres/plutobump1k.jpg
520 %{_datadir}/apps/celestia/data/solarsys/90-pluto
This page took 0.094359 seconds and 3 git commands to generate.