]> git.pld-linux.org Git - packages/celestia.git/blobdiff - celestia.spec
- fixed
[packages/celestia.git] / celestia.spec
index 9fe0c3d954f0ca241ff5f0068440635eaca11205..73809e85333cd0af28a0abbdacbc2d55a677e4d1 100644 (file)
@@ -1,29 +1,49 @@
 Summary:       A real-time visual space simulation
 Summary(pl):   Symulacja przestrzeni kosmicznej w czasie rzeczywistym
 Name:          celestia
-Version:       1.1.4
-Release:       2
+Version:       1.3.1
+Release:       1
 License:       GPL
-Group:         X11/Applications/Games
-Source0:       http://prdownloads.sourceforge.net/celestia/%{name}-%{version}.tar.gz
+Group:         X11/Applications/Science
+Source0:       http://dl.sourceforge.net/celestia/%{name}-%{version}.tar.gz
+# Source0-md5: fcb73c43f5899f8f7e6d0c619a818a8b
+Source1:       %{name}.desktop
+Source2:       %{name}-solar-%{version}.tar.gz
+# Source2-md5: eabbb0718956528245de3573ae7f8bd7
 URL:           http://www.shatters.net/celestia/
 BuildRequires: OpenGL-devel
 BuildRequires: autoconf
 BuildRequires: automake
+BuildRequires: fam-devel
 BuildRequires: glut-devel
-BuildRequires: gnome-libs-devel
-BuildRequires: gtk+-devel
-BuildRequires: gtkglarea-devel
+BuildRequires: kdelibs-devel
 BuildRequires: libjpeg-devel
 BuildRequires: libpng-devel
 BuildRequires: libstdc++-devel
+BuildRequires: libtool
 Requires:      OpenGL
+Requires:      %{name}-extrasolar
+Requires:      %{name}-stars
+Requires:      %{name}-generator
+Requires:      %{name}-textures-mercury
+Requires:      %{name}-textures-earth
+Requires:      %{name}-textures-earth-clouds
+Requires:      %{name}-textures-moon
+Requires:      %{name}-textures-mars
+Requires:      %{name}-textures-galileanmoons
+Obsoletes:     %{name}-textures-stars
+Obsoletes:     %{name}-asterisms
+Obsoletes:     %{name}-galaxies
+Obsoletes:     %{name}-textures-venus-default
+Obsoletes:     %{name}-textures-jupiter-default
+Obsoletes:     %{name}-textures-saturn-default
+Obsoletes:     %{name}-textures-triton-default
+Obsoletes:     %{name}-textures-pluto-default
+
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _noautoreqdep   libGL.so.1 libGLU.so.1 libGLcore.so.1
-
-%define                _prefix         /usr/X11R6
-%define                _mandir         %{_prefix}/man
+%define                _htmldir        %{_docdir}/kde/HTML
 
 %description
 Celestia is a free real-time space simulation that lets you experience
@@ -47,32 +67,428 @@ przybli
 spojrzenia na galaktyki do widoku kilkumetrowych statków kosmicznych.
 Interfejs typu 'poka¿-i-leæ' czyni nawigacjê przez Wszech¶wiat prost±.
 
+%package task-default
+Summary:       Default packages for celestia
+Summary(pl):   Domy¶lne pakiety dla celestii
+Group:         X11/Applications/Science
+Requires:      %{name}-extrasolar-default
+Requires:      %{name}-stars-default
+Requires:      %{name}-textures-mercury-default
+Requires:      %{name}-textures-earth-default
+Requires:      %{name}-textures-earth-clouds-default
+Requires:      %{name}-textures-moon-default
+Requires:      %{name}-textures-mars-default
+Requires:      %{name}-textures-galileanmoons-default
+
+%description task-default
+Default packages for celestia. This metapackage contains no files
+and can be safely uninstalled after installation.
+
+%description task-default -l pl
+Domy¶lne pakiety dla celestii. Ten metapakiet nie zawiera ¿adnych
+plików i mo¿e zostaæ usuniêty po instalacji.
+
+%package generator
+Summary:       Hack needed because rpm sucks
+Summary(pl):   Hack potrzebny z powodu obsysania rpm-a
+Group:         X11/Applications/Science
+
+%description generator
+Generates solarsys.ssc .
+
+%description generator -l pl
+Tworzy solarsys.ssc .
+
+%package extrasolar-default
+Summary:       Catalog of known extrasolar planetary systems
+Summary(pl):   Katalog znanych uk³adów planetarnych
+Group:         X11/Applications/Science
+Requires:      %{name}
+Provides:      %{name}-extrasolar
+Obsoletes:     %{name}-extrasolar
+
+%description extrasolar-default
+Catalog of known extrasolar planetary systems.
+
+%description extrasolar-default -l pl
+Katalog znanych uk³adów planetarnych.
+
+%package stars-default
+Summary:       Database with 100 000 stars
+Summary(pl):   Baza danych 100 000 gwiazd
+Group:         X11/Applications/Science
+Requires:      %{name}
+Provides:      %{name}-stars
+Obsoletes:     %{name}-stars
+
+%description stars-default
+Initial Stars database (with about 100 000 Hipparcos stars).
+
+%description stars-default -l pl
+Podstawowa baza danych gwiazd (z oko³o 100 000 gwiazd zbadanych
+przez sondê kosmiczn± Hipparcos).
+
+%package textures-mercury-default
+Summary:       1k Mercury textures
+Summary(pl):   Tekstury Merkurego o wielko¶ci 1024 x 512
+Group:         X11/Applications/Science
+Prereq:                %{name}-generator
+Requires:      %{name}
+Provides:      %{name}-textures-mercury
+Obsoletes:     %{name}-textures-mercury
+
+%description textures-mercury-default
+1k Mercury textures.
+
+%description textures-mercury-default -l pl
+Tekstury Merkurego o wielko¶ci 1024 x 512.
+
+%package textures-mercury-bumpmap-default
+Summary:       1k Mercury bump maps
+Summary(pl):   Mapa wybojów Merkurego o wielko¶ci 1024 x 512
+Group:         X11/Applications/Science
+Prereq:                %{name}-generator
+Requires:      %{name}
+Provides:      %{name}-textures-mercury-bumpmap
+Obsoletes:     %{name}-textures-mercury-bumpmap
+
+%description textures-mercury-bumpmap-default
+1k Mercury bump map.
+
+%description textures-mercury-bumpmap-default -l pl
+Mapa wybojów Merkurego o wielko¶ci 1024 x 512.
+
+%package textures-earth-default
+Summary:       2k Earth textures
+Summary(pl):   Tekstury Ziemi o wielko¶ci 2048 x 1024
+Group:         X11/Applications/Science
+Prereq:                %{name}-generator
+Requires:      %{name}
+Provides:      %{name}-textures-earth
+Obsoletes:     %{name}-textures-earth
+
+%description textures-earth-default
+2k Earth textures.
+
+%description textures-earth-default -l pl
+Tekstury Ziemi o wielko¶ci 2048 x 1024.
+
+%package textures-earth-clouds-default
+Summary:       1k Earth cloud textures
+Summary(pl):   Tekstury ziemskich chmur o wielko¶ci 1024 x 512
+Group:         X11/Applications/Science
+Prereq:                %{name}-generator
+Requires:      %{name}
+Provides:      %{name}-textures-earth-clouds
+Obsoletes:     %{name}-textures-earth-clouds
+
+%description textures-earth-clouds-default
+1k Earth clouds textures.
+
+%description textures-earth-clouds-default -l pl
+Tekstury ziemskich chmur o wielko¶ci 1024 x 512.
+
+%package textures-earth-night-default
+Summary:       1k Earth night textures
+Summary(pl):   Tekstury nocnych ¶wiate³ miast o wielko¶ci 1024 x 512
+Group:         X11/Applications/Science
+Prereq:                %{name}-generator
+Requires:      %{name}
+Provides:      %{name}-textures-earth-night
+Obsoletes:     %{name}-textures-earth-night
+
+%description textures-earth-night-default
+1k Earth night textures.
+
+%description textures-earth-night-default -l pl
+Tekstury nocnych ¶wiate³ miast o wielko¶ci 1024 x 512.
+
+%package textures-moon-default
+Summary:       1k Moon textures
+Summary(pl):   Tekstury Ksiê¿yca o wielko¶ci 1024 x 512
+Group:         X11/Applications/Science
+Prereq:                %{name}-generator
+Requires:      %{name}
+Provides:      %{name}-textures-moon
+Obsoletes:     %{name}-textures-moon
+
+%description textures-moon-default
+1k Moon textures.
+
+%description textures-moon-default -l pl
+Tekstury Ksiê¿yca o wielko¶ci 1024 x 512.
+
+%package textures-moon-bumpmap-default
+Summary:       1k Moon bump map
+Summary(pl):   Mapa wybojów Ksiê¿yca o wielko¶ci 1024 x 512
+Group:         X11/Applications/Science
+Prereq:                %{name}-generator
+Requires:      %{name}
+Provides:      %{name}-textures-moon-bumpmap
+Obsoletes:     %{name}-textures-moon-bumpmap
+
+%description textures-moon-bumpmap-default
+1k Moon bump map.
+
+%description textures-moon-bumpmap-default -l pl
+Mapa wybojów Ksiê¿yca o wielko¶ci 1024 x 512.
+
+%package textures-mars-default
+Summary:       1k Mars textures
+Summary(pl):   Tekstury Marsa o wielko¶ci 1024 x 512
+Group:         X11/Applications/Science
+Prereq:                %{name}-generator
+Requires:      %{name}
+Provides:      %{name}-textures-mars
+Obsoletes:     %{name}-textures-mars
+
+%description textures-mars-default
+1k Mars textures.
+
+%description textures-mars-default -l pl
+Tekstury Marsa o wielko¶ci 1024 x 512.
+
+%package textures-mars-bumpmap-default
+Summary:       1k Mars bump map
+Summary(pl):   Mapa wybojów Marsa o wielko¶ci 1024 x 512
+Group:         X11/Applications/Science
+Prereq:                %{name}-generator
+Requires:      %{name}
+Provides:      %{name}-textures-mars-bumpmap
+Obsoletes:     %{name}-textures-mars-bumpmap
+
+%description textures-mars-bumpmap-default
+1k Mars bump map.
+
+%description textures-mars-bumpmap-default -l pl
+Mapa wybojów Marsa o wielko¶ci 1024 x 512.
+
+%package textures-galileanmoons-default
+Summary:       1k galilean moons textures
+Summary(pl):   Tekstury ksiê¿yców odkrytych przez Galileusza o wielko¶ci 1024 x 512
+Group:         X11/Applications/Science
+Prereq:                %{name}-generator
+Requires:      %{name}
+Provides:      %{name}-textures-galileanmoons
+Obsoletes:     %{name}-textures-galileanmoons
+
+%description textures-galileanmoons-default
+1k galilean moons (Io, Europa, Ganymede, Calypso) textures.
+
+%description textures-galileanmoons-default -l pl
+Tekstury ksiê¿yców Jowisza odkrytych przez Galileusza (Io,
+Europa, Ganimedes, Calypso) o wielko¶ci 1024 x 512.
+
 %prep
-%setup -q
+%setup -q -a2
+
+echo "You can remove this package safely." > PLACEHOLDER-TASK-DEFAULT
 
 %build
 rm -f missing
-aclocal -I macros
-autoconf
-automake -a -f
-CFLAGS="-I%{_includedir} %{rpmcflags}"
-CPPFLAGS="-I%{_includedir} %{rpmcflags}"
-CXXFLAGS="-I%{_includedir} %{rpmcflags} -fno-rtti -fno-exceptions"
+%{__libtoolize}
+%{__aclocal} -I macros
+%{__autoconf}
+%{__automake}
+CPPFLAGS="-I/usr/X11R6/include"
+CXXFLAGS="%{rpmcflags} -fno-exceptions"
+kde_htmldir="%{_htmldir}"; export kde_htmldir
 %configure \
-       --enable-gtk
+       --disable-rpath \
+       --with-kde \
+       --without-gtk \
+       --without-lua \
+       --with-xinerama
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__make} -e DESTDIR=$RPM_BUILD_ROOT install
+install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}}
 
-gzip -9nf README AUTHORS TODO controls.txt
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+# desktop/icon
+install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
+cp src/celestia/kde/data/hi48-app-celestia.png $RPM_BUILD_ROOT%{_pixmapsdir}/celestia.png
+
+# solarsys.ssc generator
+install -d $RPM_BUILD_ROOT%{_datadir}/apps/%{name}/data/solarsys
+install solar/* $RPM_BUILD_ROOT%{_datadir}/apps/%{name}/data/solarsys
+cat > $RPM_BUILD_ROOT%{_datadir}/apps/%{name}/solarsys-gen << EOF
+#!/bin/sh
+cd %{_datadir}/apps/%{name}/data
+LANG=C cat solarsys/* > solarsys.ssc
+EOF
+
+#%find_lang %{name} --with-kde         #doesn't find any lang files in 1.3.1, don't know why
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+# all texture-* here are required in one or another version, so no %%postun
+%post  -p %{_datadir}/apps/%{name}/solarsys-gen
+%post  textures-mercury-default        -p %{_datadir}/apps/%{name}/solarsys-gen
+%post  textures-earth-default          -p %{_datadir}/apps/%{name}/solarsys-gen
+%post  textures-earth-clouds-default   -p %{_datadir}/apps/%{name}/solarsys-gen
+%post  textures-moon-default           -p %{_datadir}/apps/%{name}/solarsys-gen
+%post  textures-mars-default           -p %{_datadir}/apps/%{name}/solarsys-gen
+%post  textures-galileanmoons-default  -p %{_datadir}/apps/%{name}/solarsys-gen
+
+# optional, so %%postun is also required
+%post  textures-mercury-bumpmap-default        -p %{_datadir}/apps/%{name}/solarsys-gen
+%postun        textures-mercury-bumpmap-default        -p %{_datadir}/apps/%{name}/solarsys-gen
+%post  textures-earth-night-default    -p %{_datadir}/apps/%{name}/solarsys-gen
+%postun        textures-earth-night-default    -p %{_datadir}/apps/%{name}/solarsys-gen
+%post  textures-mars-bumpmap-default   -p %{_datadir}/apps/%{name}/solarsys-gen
+%postun        textures-mars-bumpmap-default   -p %{_datadir}/apps/%{name}/solarsys-gen
+%post  textures-moon-bumpmap-default   -p %{_datadir}/apps/%{name}/solarsys-gen
+%postun        textures-moon-bumpmap-default   -p %{_datadir}/apps/%{name}/solarsys-gen
+
 %files
 %defattr(644,root,root,755)
-%doc *.gz 
+%doc README AUTHORS TODO controls.txt ChangeLog
+%doc %{_datadir}/apps/celestia/manual
 %attr(755,root,root) %{_bindir}/*
-%{_datadir}/*
+%{_datadir}/apps/celestia/data/solarsys/04-mercury
+%{_datadir}/apps/celestia/data/solarsys/08-mercury
+%{_datadir}/apps/celestia/data/solarsys/10-venus
+%{_datadir}/apps/celestia/data/solarsys/24-earth
+%{_datadir}/apps/celestia/data/solarsys/28-earth
+%{_datadir}/apps/celestia/data/solarsys/35-moon
+%{_datadir}/apps/celestia/data/solarsys/37-earth-satellites
+%{_datadir}/apps/celestia/data/solarsys/44-mars
+%{_datadir}/apps/celestia/data/solarsys/48-mars-moons
+%{_datadir}/apps/celestia/data/solarsys/50-jupiter
+%{_datadir}/apps/celestia/data/solarsys/52-jupiter-small-moon
+%{_datadir}/apps/celestia/data/solarsys/60-saturn
+%{_datadir}/apps/celestia/data/solarsys/65-saturn-moons
+%{_datadir}/apps/celestia/data/solarsys/70-uranus
+%{_datadir}/apps/celestia/data/solarsys/75-uranus-moons
+%{_datadir}/apps/celestia/data/solarsys/80-neptune
+%{_datadir}/apps/celestia/data/solarsys/82-neptune-moons
+%{_datadir}/apps/celestia/data/solarsys/90-pluto
+%{_datadir}/apps/celestia/data/solarsys/92-pluto-moon
+%{_datadir}/apps/celestia/data/solarsys/99-various
+%{_datadir}/apps/celestia/data/asterisms.dat
+%{_datadir}/apps/celestia/data/boundaries.dat
+%{_datadir}/apps/celestia/data/deepsky.dsc
+%{_datadir}/apps/celestia/data/galileo.xyz
+%verify(not md5 size mtime) %{_datadir}/apps/celestia/data/solarsys.ssc
+%{_datadir}/apps/celestia/data/hdnames.dat
+%{_datadir}/apps/celestia/data/solsys_locs.ssc
+%{_datadir}/apps/celestia/data/starnames.dat
+%{_datadir}/apps/celestia/data/world-capitals.ssc
+%{_datadir}/apps/celestia/extras
+%{_datadir}/apps/celestia/favicons
+%{_datadir}/apps/celestia/fonts
+%{_datadir}/apps/celestia/models
+%{_datadir}/apps/celestia/shaders
+%dir %{_datadir}/apps/celestia/textures
+%{_datadir}/apps/celestia/textures/lores
+%{_datadir}/apps/celestia/textures/medres
+%exclude %{_datadir}/apps/celestia/textures/medres/mercury.jpg
+%exclude %{_datadir}/apps/celestia/textures/medres/mercurybump.jpg
+%exclude %{_datadir}/apps/celestia/textures/medres/earth.jpg
+%exclude %{_datadir}/apps/celestia/textures/medres/earth-clouds.png
+%exclude %{_datadir}/apps/celestia/textures/medres/earthnight.jpg
+%exclude %{_datadir}/apps/celestia/textures/medres/moon.jpg
+%exclude %{_datadir}/apps/celestia/textures/medres/moonbump.jpg
+%exclude %{_datadir}/apps/celestia/textures/medres/mars.jpg
+%exclude %{_datadir}/apps/celestia/textures/medres/marsbump.jpg
+%exclude %{_datadir}/apps/celestia/textures/medres/marsbump1k.jpg
+%exclude %{_datadir}/apps/celestia/textures/medres/callisto.jpg
+%exclude %{_datadir}/apps/celestia/textures/medres/io.jpg
+%exclude %{_datadir}/apps/celestia/textures/medres/europa.jpg
+%exclude %{_datadir}/apps/celestia/textures/medres/ganymede.jpg
+%{_datadir}/apps/celestia/textures/astar.jpg
+%{_datadir}/apps/celestia/textures/bstar.jpg
+%{_datadir}/apps/celestia/textures/flare.jpg
+%{_datadir}/apps/celestia/textures/gstar.jpg
+%{_datadir}/apps/celestia/textures/logo.png
+%{_datadir}/apps/celestia/textures/mstar.jpg
+%{_datadir}/apps/celestia/bookmarks.xml
+%{_datadir}/apps/celestia/celestia.cfg
+%{_datadir}/apps/celestia/celestiaui.rc
+%{_datadir}/apps/celestia/controls.txt
+%{_datadir}/apps/celestia/*.cel
+
+%{_desktopdir}/*
+%{_pixmapsdir}/*
+%{_datadir}/config/*
+%{_datadir}/mimelnk/application/*
+%{_datadir}/services/*
+
+%files task-default
+%defattr(644,root,root,755)
+%doc PLACEHOLDER-TASK-DEFAULT
+
+%files generator
+%defattr(644,root,root,755)
+%dir %{_datadir}/apps/celestia
+%dir %{_datadir}/apps/celestia/data
+%dir %{_datadir}/apps/celestia/data/solarsys
+%attr(755,root,root) %{_datadir}/apps/celestia/solarsys-gen
+
+%files extrasolar-default
+%defattr(644,root,root,755)
+%{_datadir}/apps/celestia/data/extrasolar.ssc
+
+%files stars-default
+%defattr(644,root,root,755)
+%{_datadir}/apps/celestia/data/stars.dat
+
+%files textures-mercury-default
+%defattr(644,root,root,755)
+%{_datadir}/apps/celestia/textures/medres/mercury.jpg
+%{_datadir}/apps/celestia/data/solarsys/00-mercury
+
+%files textures-mercury-bumpmap-default
+%defattr(644,root,root,755)
+%{_datadir}/apps/celestia/textures/medres/mercurybump.jpg
+%{_datadir}/apps/celestia/data/solarsys/02-mercury-bump
+%{_datadir}/apps/celestia/data/solarsys/06-mercury-bump
+
+%files textures-earth-default
+%defattr(644,root,root,755)
+%{_datadir}/apps/celestia/textures/medres/earth.jpg
+%{_datadir}/apps/celestia/data/solarsys/20-earth
+
+%files textures-earth-clouds-default
+%defattr(644,root,root,755)
+%{_datadir}/apps/celestia/textures/medres/earth-clouds.png
+%{_datadir}/apps/celestia/data/solarsys/26-earth-clouds
+
+%files textures-earth-night-default
+%defattr(644,root,root,755)
+%{_datadir}/apps/celestia/textures/medres/earthnight.jpg
+%{_datadir}/apps/celestia/data/solarsys/22-earth-night
+
+%files textures-moon-default
+%defattr(644,root,root,755)
+%{_datadir}/apps/celestia/textures/medres/moon.jpg
+%{_datadir}/apps/celestia/data/solarsys/30-moon
+
+%files textures-moon-bumpmap-default
+%defattr(644,root,root,755)
+%{_datadir}/apps/celestia/textures/medres/moonbump.jpg
+%{_datadir}/apps/celestia/data/solarsys/33-moon-bump
+
+%files textures-mars-default
+%defattr(644,root,root,755)
+%{_datadir}/apps/celestia/textures/medres/mars.jpg
+%{_datadir}/apps/celestia/data/solarsys/40-mars
+
+%files textures-mars-bumpmap-default
+%defattr(644,root,root,755)
+%{_datadir}/apps/celestia/textures/medres/marsbump.jpg
+%{_datadir}/apps/celestia/textures/medres/marsbump1k.jpg
+%{_datadir}/apps/celestia/data/solarsys/42-mars-bump
+
+%files textures-galileanmoons-default
+%defattr(644,root,root,755)
+%{_datadir}/apps/celestia/textures/medres/callisto.jpg
+%{_datadir}/apps/celestia/textures/medres/io.jpg
+%{_datadir}/apps/celestia/textures/medres/europa.jpg
+%{_datadir}/apps/celestia/textures/medres/ganymede.jpg
+%{_datadir}/apps/celestia/data/solarsys/55-jupiter-galilean-moons
This page took 0.127873 seconds and 4 git commands to generate.