Name: celestia Version: 1.5.1 Release: 1%{?dist} Summary: OpenGL real-time visual space simulation Group: Applications/Emulators License: GPLv2+ Source0: http://dl.sf.net/celestia/celestia-%{version}.tar.gz Source3: celestia.desktop Patch0: celestia-1.5.1-gcc43.patch Patch1: celestia-1.5.0-gcc44.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 BuildRequires: gettext-devel Requires(pre): GConf2 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 -p1 -b .gcc43 %patch1 -p1 -b .gcc44 # Make sure we compile with the right CFLAGS/CXXFLAGS (from Hans de Goede). sed -i 's/CFLAGS="\$CFLAGS \$CELESTIAFLAGS \$CELESTIA_CFLAGS"/CFLAGS="\$CFLAGS \$CELESTIAFLAGS"/' configure sed -i 's/CXXFLAGS="\$CXXFLAGS \$CELESTIAFLAGS \$CELESTIA_CXXFLAGS"/CXXFLAGS="\$CXXFLAGS \$CELESTIAFLAGS"/' configure # sigh stop autoxxx from rerunning because of our patches above. touch aclocal.m4 touch configure touch config.h.in touch `find -name Makefile.in` %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 GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 make install DESTDIR=$RPM_BUILD_ROOT 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 Education \ %{SOURCE3} %find_lang %{name} --all-name %clean rm -rf $RPM_BUILD_ROOT %pre if [ "$1" -gt 1 ]; then GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` \ gconftool-2 --makefile-uninstall-rule \ %{_sysconfdir}/gconf/schemas/%{name}.schemas &>/dev/null || : killall -HUP gconfd-2 &>/dev/null || : fi %post GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` \ gconftool-2 --makefile-install-rule \ %{_sysconfdir}/gconf/schemas/%{name}.schemas &>/dev/null || : %preun if [ "$1" -eq "0" ] ; then GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` \ gconftool-2 --makefile-uninstall-rule \ %{_sysconfdir}/gconf/schemas/%{name}.schemas &>/dev/null || : killall -HUP gconfd-2 &>/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 %{_datadir}/%{name} %{_datadir}/pixmaps/%{name}.png %changelog * Sun Apr 12 2009 Lubomir Rintel - 1.5.1-1 - New upstream release * Sun Mar 1 2009 Lubomir Rintel - 1.5.0-3 - Fix build with GCC 4.4 * Mon Feb 23 2009 Fedora Release Engineering - 1.5.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Sat Mar 1 2008 Marek Mahut - 1.5.0-1 - Upstream release 1.5.0 and dropping unnecessary patches - celestia-1.5.0-gcc43.patch (#434441) - Moving to education category (#220793) * Tue Feb 19 2008 Fedora Release Engineering - 1.4.1-8 - Autorebuild for GCC 4.3 * Wed Nov 22 2006 Steven Pritchard 1.4.1-7 - Really fix the cmod models problem (#203525). (Thanks to Hans de Goede.) - Hopefully really handle the gconf schema properly. * Mon Aug 28 2006 Steven Pritchard 1.4.1-6 - Add --disable-schemas-install to configure. * Tue Aug 22 2006 Steven Pritchard 1.4.1-5 - Turn on -fno-strict-aliasing to work around bug #203525. * Mon Jul 31 2006 Steven Pritchard 1.4.1-4 - We modified configure.in, so now we need automake17 and gettext-devel. * Mon Jul 31 2006 Nick Urbanik 1.4.1-3 - Test errorMessage to see if it is null before copying it! This change suggested by Hank Ramsey and added to celestia-1.4.1-lua51-resume.patch - Added developers documentation - Incorporate patch suggested by Hank Ramsey to eliminate segfault when loading .celx files: celestia-1.4.1-lua51-resume.patch - 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.