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