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