File celestia.spec of Package celestia

#
# spec file for package celestia (Version 1.5.1)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           celestia
Summary:        OpenGL Space Simulator
Version:        1.5.1
Release:        1
License:        GPL v2 or later
Group:          Productivity/Scientific/Astronomy
Url:            http://celestia.sourceforge.net
BuildRequires:  gettext-tools kdelibs3-devel popt-devel
BuildRequires:  cairo-devel
BuildRequires:  lua-devel
BuildRequires:  libtheora-devel
%if 0%{?suse_version} > 1020
BuildRequires:  fdupes
%endif
Source:         %{name}-%{version}.tar.bz2
Source1:        celestia-rpmlintrc
Patch1:         celestia-1.5.1-strcmp.patch
Patch2:         celestia-1.5.1-desktop.patch
Patch3:         celestia-1.5.1-gcc43.patch
Patch4:         celestia-1.5.1-config.patch
Patch5:         celestia-1.5.1-theora.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%define         kdedir /opt/kde3

%description
Celestia is a free real-time space simulation that lets you experience
our universe in three dimensions. Unlike most planetarium software,
Celestia does not confine you to the surface of the Earth. You can
travel throughout the solar system to any of over 100,000 stars or even
beyond the galaxy. All 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.



Authors:
--------
    Chris Laurel <claurel@www.shatters.net>
    Clint Weisbrod <cweisbrod@adelphia.net>
    Fridger Schrempp <t00fri@mail.desy.de>
    Bob Ippolito <bob@redivi.com>
    Christophe Teyssier <chris@teyssier.org>

%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch3
%patch4 -p1
%patch5 -p1
. /etc/opt/kde3/common_options

%build
. /etc/opt/kde3/common_options
srcdir=`pwd` CXXFLAGS="$RPM_OPT_FLAGS" \
./configure --with-kde \
            --without-gnome \
%if 0%{suse_version} > 1010
            --with-lua \
%endif
            --enable-cairo \
            --without-gtk \
            $configkde \
            --disable-final \
            --enable-libsuffix=`/opt/kde3/bin/kde-config --libsuffix` \
			--enable-theora 
make %{?jobs:-j %jobs}

%install
. /etc/opt/kde3/common_options
make DESTDIR=$RPM_BUILD_ROOT install
install -d $RPM_BUILD_ROOT/usr/share/pixmaps
install -m644 src/celestia/kde/data/hi32-app-celestia.png $RPM_BUILD_ROOT/usr/share/pixmaps/celestia.png
rm $RPM_BUILD_ROOT%{kdedir}/share/doc/HTML/en/celestia/common
%suse_update_desktop_file -G "Space Simulator" %name Education Astronomy
%find_lang %name 
%find_lang celestia_constellations
cat celestia_constellations.lang >>%name.lang
%if 0%{?suse_version} > 1020
%fdupes -s %buildroot
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %name.lang
%defattr(-,root,root)
%doc AUTHORS COPYING INSTALL README TODO
%{kdedir}/bin/celestia
%{kdedir}/share/applications/kde/celestia.desktop
%{kdedir}/share/celestia
%{kdedir}/share/apps/celestia
%{kdedir}/share/config/celestiarc
%{kdedir}/share/mimelnk/application/x-celestia-script.desktop
%{kdedir}/share/services/celestia.protocol
%{kdedir}/share/icons/hicolor/*
%{_datadir}/pixmaps/*.png

%changelog
* Wed Jun 25 2008 dmueller@suse.de
- merge from the OBS
* Mon May 19 2008 lars@linux-schulserver.de
- update to 1.5.1:
  + Added fonts for Russian, Chinese, and Japanese
  + Updated translations
  + Fixed date formatting for non-UTF8 locales
  + Fixed crash for dates prior to JD -1.5 when local format is used
  + Fixed star glare clipping bug
  + Fixed bug that caused some stars to be drawn untextured
- added celestia-1.5.1-config.patch to allow ~/.celestia config
- enabled theora, lua and cairo
* Fri May 16 2008 dmueller@suse.de
- fix build on x86_64
* Thu Apr 24 2008 stbinner@suse.de
- update to version 1.5, for a list of new features see
  http://www.shatters.net/celestia/150-feature-summary.html
* Tue Nov 06 2007 dmueller@suse.de
- really fix build with gcc 4.3
* Thu Oct 25 2007 stbinner@suse.de
- fix build with gcc 4.3
* Mon Oct 22 2007 stbinner@suse.de
- update to version 1.4.1, for changes see ChangeLog
* Sun Aug 19 2007 stbinner@suse.de
- fix build on 10.0
* Fri Aug 03 2007 stbinner@suse.de
- add a GenericName entry to the .desktop file
* Tue May 15 2007 coolo@suse.de
- use %%find_lang
* Wed Nov 08 2006 prusnak@suse.cz
- fixed subscript out of range [#216330]
* Tue Nov 07 2006 ro@suse.de
- fix permissions for icon file
* Thu Jun 15 2006 dmueller@suse.de
- build parallel
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Oct 27 2005 stbinner@suse.de
- fix compilation with gcc 4.1
* Tue Aug 23 2005 nadvornik@suse.cz
- use update_admin [#106072]
* Tue Apr 19 2005 nadvornik@suse.de
- fixed to compile with gcc4
* Thu Feb 17 2005 adrian@suse.de
- menu entry moved to xdg dir
* Fri Dec 10 2004 ro@suse.de
- install icon file
* Fri Oct 29 2004 ro@suse.de
- remove gtk from neededforbuild
* Mon Aug 30 2004 nadvornik@suse.cz
- update to 1.3.2
* Wed Mar 24 2004 nadvornik@suse.cz
- fixed options for aclocal
* Thu Feb 12 2004 nadvornik@suse.cz
- updated to 1.3.1
* Sat Jan 10 2004 adrian@suse.de
- build as user
* Sat Aug 09 2003 adrian@suse.de
- add Categories
* Mon Jul 28 2003 nadvornik@suse.cz
- update to 1.3.0
* Wed Jun 18 2003 ro@suse.de
- added directory to filelist
* Thu Feb 13 2003 nadvornik@suse.cz
- updated to 1.2.5: KDE support
* Fri Sep 27 2002 ro@suse.de
- Added alsa alsa-devel to neededforbuild (esound)
* Fri Aug 30 2002 nadvornik@suse.cz
- added workaround for a crash during demo run
* Wed Jul 24 2002 nadvornik@suse.cz
- updated to 1.2.4
* Fri Apr 19 2002 nadvornik@suse.cz
- new package, replacement for openuniverse
openSUSE Build Service is sponsored by