%define name stellarium %define version 0.10.4 %define release %mkrel 2 %define title Stellarium Name: %{name} Version: %{version} Release: %{release} Summary: Desktop planetarium Group: Sciences/Astronomy License: GPLv2+ URL: http://www.stellarium.org Source: http://downloads.sourceforge.net/stellarium/%{name}-%{version}.tar.gz Patch0: stellarium-0.10.3-fonts.patch Patch1: stellarium-0.10.4-LC_NUMERIC.patch Buildrequires: mesaglu-devel Buildrequires: SDL-devel Buildrequires: SDL_mixer-devel Buildrequires: png-devel Buildrequires: jpeg-devel Buildrequires: freetype2-devel Buildrequires: qt4-devel >= 3:4.4.1 BuildRequires: gettext-devel Buildrequires: cmake Buildrequires: imagemagick BuildRoot: %{_tmppath}/%{name}-%{version} %description Stellarium renders 3D photo-realistic skies in real time. With stellarium, you really see what you can see with your eyes, binoculars or a small telescope. %prep %setup -q %patch0 -p1 %patch1 -p1 %build %cmake_qt4 %make %install rm -rf %{buildroot} cd build make install DESTDIR=%{buildroot} INSTALL="%{_bindir}/install -c -p" cd - mkdir -p %{buildroot}%{_datadir}/applications cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF [Desktop Entry] Name=%{title} Comment=Desktop planetarium Exec=%{_bindir}/%{name} Icon=%{name} Terminal=false Type=Application StartupNotify=true Categories=Science;Astronomy;Qt; EOF install -d -m 755 %{buildroot}{%{_iconsdir},%{_miconsdir},%{_liconsdir}} convert %{buildroot}%{_datadir}/stellarium/data/stellarium.ico[1] \ %{buildroot}%{_liconsdir}/stellarium.png convert %{buildroot}%{_datadir}/stellarium/data/stellarium.ico[2] \ %{buildroot}%{_iconsdir}/stellarium.png convert %{buildroot}%{_datadir}/stellarium/data/stellarium.ico[4] \ %{buildroot}%{_miconsdir}/stellarium.png %find_lang %{name} %{name} stellarium-skycultures %clean rm -rf %{buildroot} %files -f %{name}.lang %defattr(-,root,root,0755) %doc README COPYING AUTHORS %{_bindir}/%{name} %{_datadir}/%{name} %{_mandir}/man1/*.1.* %{_datadir}/applications/mandriva-%{name}.desktop %{_iconsdir}/%{name}.png %{_liconsdir}/%{name}.png %{_miconsdir}/%{name}.png %changelog * Sun Mar 21 2010 Wanderlei Cavassin <cavassin@mandriva.com.br> 0.10.4-2mdv2010.1 + Revision: 526080 - fix landscape rendering in several locales (from upstream svn) * Tue Mar 02 2010 Sandro Cazzaniga <kharec@mandriva.org> 0.10.4-1mdv2010.1 + Revision: 513697 - update to 0.10.4 * Sat Jan 30 2010 Frederik Himpe <fhimpe@mandriva.org> 0.10.3-1mdv2010.1 + Revision: 498489 - Update to new version 0.10.3 - Does not require boost anymore - Don't install DejaVu fonts (patch from Fedora) - Remove cjk fontmap patch: no more fontmap used in this version * Wed Mar 11 2009 Frederik Himpe <fhimpe@mandriva.org> 0.10.2-1mdv2009.1 + Revision: 353960 - update to new version 0.10.2 * Fri Feb 06 2009 Frederik Himpe <fhimpe@mandriva.org> 0.10.1-1mdv2009.1 + Revision: 338254 - Update to new version 0.10.1 + Funda Wang <fwang@mandriva.org> - requires qt >= 4.4.1, which measn mdk >= 2009 * Sun Oct 12 2008 Funda Wang <fwang@mandriva.org> 0.10.0-1mdv2009.1 + Revision: 292736 - update file list - New version 0.10.0 - ther eis no manpages any more, so drop manpage patch + Thierry Vignaud <tv@mandriva.org> - rebuild early 2009.0 package (before pixel changes) + Pixel <pixel@mandriva.com> - rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas * Tue May 06 2008 Funda Wang <fwang@mandriva.org> 0.9.1-5mdv2009.0 + Revision: 202028 - cooker are using ttc file * Tue May 06 2008 Funda Wang <fwang@mandriva.org> 0.9.1-4mdv2009.0 + Revision: 202009 - fix cjk fontmap of stellarium * Mon Feb 18 2008 Thierry Vignaud <tv@mandriva.org> 0.9.1-3mdv2008.1 + Revision: 171130 - rebuild - fix "foobar is blabla" summary (=> "blabla") so that it looks nice in rpmdrake * Sun Feb 17 2008 Guillaume Rousse <guillomovitch@mandriva.org> 0.9.1-2mdv2008.1 + Revision: 170039 - add png icons (fix #37818) * Fri Jan 25 2008 Guillaume Rousse <guillomovitch@mandriva.org> 0.9.1-1mdv2008.1 + Revision: 158112 - new version + Olivier Blin <oblin@mandriva.com> - restore BuildRoot + Thierry Vignaud <tv@mandriva.org> - kill re-definition of %%buildroot on Pixel's request - kill desktop-file-validate's 'warning: key "Encoding" in group "Desktop Entry" is deprecated' * Sat Jul 14 2007 Emmanuel Andry <eandry@mandriva.org> 0.9.0-1mdv2008.0 + Revision: 52053 - buildrequires jpeg-devel - New version - drop patches 1 and 2 - specify license as GPLv2 - fix URL - drop debian menu * Wed May 16 2007 Lenny Cartier <lenny@mandriva.org> 0.8.2-3mdv2008.0 + Revision: 27358 - Fix menu entry * Sun Mar 18 2007 Colin Guthrie <cguthrie@mandriva.org> 0.8.2-2mdv2007.1 + Revision: 145797 - Some patches from Debian. Fixes segfaults on some OpenGL + 64 bit systems * Sat Feb 10 2007 Emmanuel Andry <eandry@mandriva.org> 0.8.2-1mdv2007.1 + Revision: 118732 - New version 0.8.2 * Fri Oct 27 2006 Nicolas Lécureuil <neoclust@mandriva.org> 0.8.1-3mdv2007.1 + Revision: 73086 - import stellarium-0.8.1-3mdv2007.1 * Sun Aug 06 2006 Emmanuel Andry <eandry@mandriva.org> 0.8.1-2mdv2007.1 - drop buildrequires libxorg-x11-devel (fix x86_64 build) not needed - add buildrequires SDL_mixer-devel - optimize localization * Sun Jul 23 2006 Emmanuel Andry <eandry@mandriva.org> 0.8.1-1mdv2007.1 - 0.8.1 - drop patch0 (applied upstream) - fix buildrequires * Wed Jun 21 2006 Nicolas Lécureuil <neoclust@mandriva.org> 0.8.0-3mdv2007.1 - Fix Menu ( ticket # 23216) * Sun Jun 18 2006 Emmanuel Andry <eandry@mandriva.org> 0.8.0-2mdv2007.0 - fix buildrequires - xdg compliant - added patch from sourceforge to fix gcc4.1 compilation * Fri May 05 2006 Lenny Cartier <lenny@mandriva.com> 0.8.0-1mdk - 0.8.0 * Sat Oct 01 2005 Nicolas Lécureuil <neoclust@mandriva.org> 0.7.1-2mdk - Fix BuildRequires * Tue Sep 20 2005 Emmanuel Andry <eandry@free.fr> 0.7.1-1mdk - 0.7.1 * Sun Sep 11 2005 Emmanuel Andry <eandry@free.fr> 0.7.0-1mdk - Updated source and URL - 0.7.0 * Fri Apr 08 2005 Emmanuel Andry <eandry@free.fr> 0.6.2-1mdk - 0.6.2 * Wed Oct 20 2004 Lenny Cartier <lenny@mandrakesoft.com> 0.6.1-1mdk - 0.6.1 * Mon Jul 19 2004 Michael Scherer <misc@mandrake.org> 0.6.0-2mdk - rebuild for new gcc ( patch 0 ) * Thu Jun 03 2004 Lenny Cartier <lenny@mandrakesoft.com> 0.6.0-1mdk - 0.6.0