File kstars.spec of Package kstars

# spec file for package kstars
# Copyright (c) 2013 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

Name:           kstars
Version:        4.10.0
Release:        0
Summary:        Desktop Planetarium
License:        GPL-2.0+
Group:          Productivity/Scientific/Astronomy
Source0:        %{name}-%{version}.tar.xz
BuildRequires:  Mesa-devel
BuildRequires:  fdupes
BuildRequires:  libcfitsio-devel
BuildRequires:  libeigen2-devel
BuildRequires:  libindi
BuildRequires:  libindi-devel
BuildRequires:  libkde4-devel
%if 0%{?suse_version}
BuildRequires:  update-desktop-files
BuildRequires:  xplanet
BuildRequires:  xz
Recommends:     libindi
Recommends:     xplanet
Provides:       kde4-kstars = 4.3.0
Obsoletes:      kde4-kstars < 4.3.0
Provides:       kstars-data = %{version}
Obsoletes:      kstars-data < %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

KStars is a Desktop Planetarium for KDE. It provides an accurate graphical
simulation of the night sky, from any location on Earth, at any date and time.

%setup -q

%ifarch ppc ppc64
export RPM_OPT_FLAGS="%{optflags} -mminimal-toc"
%cmake_kde4 -d build

cd build
cd ..

# Remove static library
rm -f %{buildroot}%{_kde4_libdir}/libhtmesh.a


%fdupes -s %{buildroot}

%doc AUTHORS COPYING COPYING.DOC ChangeLog README README.customize README.ephemerides README.images kstars.lsm
%doc %{_kde4_htmldir}/en/kstars/

openSUSE Build Service is sponsored by