File celestia.spec of Package celestia
#
# spec file for package celestia (Version 1.6.0)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: celestia
Summary: OpenGL Space Simulator
Version: 1.6.0
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
BuildRequires: fdupes
Source: %{name}-%{version}.tar.bz2
Source1: celestia-rpmlintrc
Patch1: celestia-1.6.0-desktop.patch
Patch2: celestia-1.6.0-config.patch
Patch3: celestia-1.6.0-gcc44.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
%patch2
%patch3
%build
# This package failed when testing with -Wl,-as-needed being default.
# So we disable it here, if you want to retest, just delete this comment and the line below.
export SUSE_ASNEEDED=0
. /etc/opt/kde3/common_options
srcdir=`pwd` CXXFLAGS="$RPM_OPT_FLAGS" \
./configure --with-kde \
--without-gnome \
--with-lua \
--enable-cairo \
--without-gtk \
--enable-libsuffix=`/opt/kde3/bin/kde-config --libsuffix` \
--enable-theora \
--datarootdir=/opt/kde3/share
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
%fdupes -s %buildroot
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %name.lang
%defattr(-,root,root)
%doc AUTHORS COPYING INSTALL README
%{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