File kstars.spec of Package kstars

# spec file for package kstars
# Copyright (c) 2015 SUSE LINUX 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:        15.08.1
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:  libeigen3-devel
BuildRequires:  libindi-devel
BuildRequires:  update-desktop-files
BuildRequires:  xplanet
BuildRequires:  extra-cmake-modules
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Qml)
BuildRequires:  pkgconfig(Qt5Quick)
BuildRequires:  pkgconfig(Qt5Xml)
BuildRequires:  pkgconfig(Qt5Sql)
BuildRequires:  pkgconfig(Qt5Svg)
BuildRequires:  pkgconfig(Qt5OpenGL)
BuildRequires:  pkgconfig(Qt5PrintSupport)
BuildRequires:  pkgconfig(Qt5Multimedia)
BuildRequires:  pkgconfig(Qt5Declarative)
BuildRequires:  pkgconfig(Qt5Test)
BuildRequires:  kconfig-devel
BuildRequires:  kdoctools-devel
BuildRequires:  kguiaddons-devel
BuildRequires:  kwidgetsaddons-devel
BuildRequires:  knewstuff-devel
BuildRequires:  kdbusaddons-devel
BuildRequires:  ki18n-devel
BuildRequires:  kinit-devel
BuildRequires:  kjobwidgets-devel
BuildRequires:  kio-devel
BuildRequires:  kwindowsystem-devel
BuildRequires:  kxmlgui-devel
BuildRequires:  kplotting-devel
BuildRequires:  ktexteditor-devel
BuildRequires:  kiconthemes-devel
Recommends:     libindi
Recommends:     xplanet
Obsoletes:      %{name}5 < %{version}
Provides:       %{name}5 = %{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_kf5 -d build

%kf5_makeinstall -C build

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

%fdupes -s %{buildroot}

%dir %{_kf5_configkcfgdir}
%doc %{_kf5_htmldir}/en/kstars/
%dir %_datadir/appdata

openSUSE Build Service is sponsored by