Name: celestia Version: 1.4.1 Release: 2.3nu%{?dist} Summary: OpenGL real-time visual space simulation Group: Amusements/Graphics License: GPL Source0: http://dl.sf.net/celestia/celestia-%{version}.tar.gz Source3: celestia.desktop Patch0: celestia-1.4.0-compile.patch Patch1: celestia-lua51.patch Patch2: celestia-lua51-resume.patch URL: http://www.shatters.net/celestia/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: gtkglext-devel BuildRequires: libgnomeui-devel BuildRequires: freeglut-devel BuildRequires: libpng-devel BuildRequires: libjpeg-devel BuildRequires: desktop-file-utils BuildRequires: libGLU-devel BuildRequires: libXt-devel BuildRequires: libXmu-devel BuildRequires: lua-devel Requires(post): GConf2 Requires(preun): GConf2 %description Celestia is a real-time space simulation which lets you experience the universe in three dimensions. Celestia does not confine you to the surface of the Earth, it allows you to travel throughout the solar system, to any of over 100,000 stars, or even beyond the galaxy. Travel in Celestia is seamless; the exponential zoom feature lets you explore space across a huge range of scales, from galaxy clusters down to spacecraft only a few meters across. A 'point-and-goto' interface makes it simple to navigate through the universe to the object you want to visit. %prep %setup -q %patch0 -p0 %patch1 -p1 -b .lua51 %patch2 -p1 -b .lua51-resume %build export GTK_LIBS="$( pkg-config --libs gtkglext-x11-1.0 libgnomeui-2.0 )" %configure --with-gnome --with-lua make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 make install DESTDIR=$RPM_BUILD_ROOT unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL install -p -m 644 -D src/celestia/kde/data/hi48-app-celestia.png \ $RPM_BUILD_ROOT%{_datadir}/pixmaps/celestia.png rm $RPM_BUILD_ROOT%{_datadir}/celestia/{controls.txt,COPYING} ln -s ../doc/%{name}-%{version}/controls.txt $RPM_BUILD_ROOT%{_datadir}/%{name}/ #rm -r $RPM_BUILD_ROOT%{_datadir}/celestia/manual install -p -m 644 -D models/*.3ds $RPM_BUILD_ROOT%{_datadir}/%{name}/models/ rm $RPM_BUILD_ROOT%{_datadir}/applications/celestia.desktop desktop-file-install \ --vendor fedora \ --dir $RPM_BUILD_ROOT%{_datadir}/applications \ --add-category X-Fedora \ --add-category Application \ --add-category Graphics \ %{SOURCE3} %find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT %post GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` \ gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/%{name}.schemas &>/dev/null || : %preun if [ "$1" = "0" ] ; then GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` \ gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/%{name}.schemas &>/dev/null || : fi %files -f %{name}.lang %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING README TODO controls.txt coding-standards.html %doc devguide.txt # Seem to have gone away in post-1.4.0 CVS... #%doc manual/*.html manual/*.css %{_bindir}/* %{_sysconfdir}/gconf/schemas/* %{_datadir}/applications/*%{name}.desktop %config %{_datadir}/%{name}/celestia.cfg %{_datadir}/%{name} %{_datadir}/pixmaps/%{name}.png %changelog * Mon Jul 31 2006 Nick Urbanik -1.4.1-2.3nu - Test errorMessage to see if it is null before copying it! This change suggested by Hank Ramsey and added to celestia-lua51-resume.patch - Added developers documentation - Marked celestia.cfg as a configuration file. * Mon Jul 31 2006 Nick Urbanik - 1.4.1-2.2nu - Incorporate patch suggested by Hank Ramsey to eliminate segfault when loading .celx files: celestia-lua51-resume.patch * Tue Jul 18 2006 Nick Urbanik - 1.4.1-2.1nu - Update to add lua - Incorporate http://www.archlinux.org/pipermail/tur-users/attachments/20060603/7dea8cd1/celestia-lua51.bin * Fri May 19 2006 Steven Pritchard 1.4.1-2 - Include accidentally dropped 3ds models. * Tue Mar 28 2006 Steven Pritchard 1.4.1-1 - Update to 1.4.1 - Use "pkg-config --libs gtkglext-x11-1.0 libgnomeui-2.0" instead of "pkg-config --libs gtk+-2.0" * Fri Feb 10 2006 Steven Pritchard 1.4.0.20060210cvs-1 - Update to today's CVS snapshot * Fri Feb 10 2006 Steven Pritchard 1.4.0-3 - Add celestia-1.4.0-compile.patch to fix a bug when compiling with g++ 4.1 * Thu Jan 05 2006 Steven Pritchard 1.4.0-2 - Add BR: libGLU-devel, libXt-devel, libXmu-devel - Add -lpangox-1.0 to GTK_LIBS * Mon Dec 26 2005 Steven Pritchard 1.4.0-1 - Update to 1.4.0 - Remove celestia-1.3.2-compile.patch (seems to be applied upstream) - Use find_lang magic - Remove duplicate desktop file - Fix Help -> Controls * Sat Dec 03 2005 Steven Pritchard 1.3.2-5 - BR libGL-devel instead of xorg-x11-Mesa-libGL * Sun May 22 2005 Jeremy Katz - 1.3.2-4 - rebuild on all arches * Fri Apr 7 2005 Michael Schwendt - rebuilt * Wed Nov 10 2004 Matthias Saou 1.3.2-2 - Bump release to provide Extras upgrade path. * Wed Nov 10 2004 Marius L. Jøhndal - 0:1.3.2-0.fdr.2 - Fixed FC3 compilation. * Sat Aug 28 2004 Marius L. Jøhndal - 0:1.3.2-0.fdr.1 - Updated to 1.3.2. - Switched to using GNOME frontend. - Updated desktop file. - Minor editing of description text. - Converted spec file to UTF-8. * Thu Nov 27 2003 Marius L. Jøhndal - 0:1.3.0-0.fdr.4 - Added build req gtkglarea (bug 740). * Thu Nov 27 2003 Marius L. Jøhndal - 0:1.3.0-0.fdr.3 - Added Encoding=UTF-8 to desktop file (bug 740). - Added work-around for linking problems on FC1 (bug 740). - Updated {minor,numbered}moons.asc (bug 740). * Wed Oct 8 2003 Marius L. Jøhndal - 0:1.3.0-0.fdr.2 - Replaced source tarball with proper release tarball. - Added BuildRequires gnome-libs-devel for gnomeConf.sh. - Build with freeglut instead of glut. * Wed Sep 17 2003 Marius L. Jøhndal - 0:1.3.0-0.fdr.1 - Initial Fedora RPM release. * Thu Apr 17 2003 Matthias Saou - Update to 1.3.0. - Added numberedmoons.ssc addon. * Mon Mar 31 2003 Matthias Saou - Rebuilt for Red Hat Linux 9. * Tue Jan 14 2003 Matthias Saou - Update to 1.2.5. - Included "Minor Moons of the Giant Planets" extra file. - New icon from the KDE part of the source. * Sat Sep 28 2002 Matthias Saou - Rebuilt for Red Hat Linux 8.0. - New style menu entry. * Wed Jul 3 2002 Matthias Saou - Rebuilt to remove the NVidia dependency (oops!). * Wed May 15 2002 Matthias Saou - Sorry, I'm a maniac ;-) * Tue May 14 2002 Julien MOUTTE - Initial RPM release.