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