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 http://bugs.opensuse.org/
#


Name:           kstars
Version:        15.08.1
Release:        0
Summary:        Desktop Planetarium
License:        GPL-2.0+
Group:          Productivity/Scientific/Astronomy
Url:            http://edu.kde.org/kstars/
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

%description
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.

%prep
%setup -q

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

%install
%kf5_makeinstall -C build

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

%fdupes -s %{buildroot}

%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING COPYING.DOC ChangeLog README README.customize README.ephemerides README.images
%{_kf5_applicationsdir}/org.kde.kstars.desktop
%{_kf5_appsdir}/kstars/
%{_kf5_bindir}/kstars
%{_kf5_configdir}/kstars.knsrc
%dir %{_kf5_configkcfgdir}
%{_kf5_configkcfgdir}/kstars.kcfg
%doc %{_kf5_htmldir}/en/kstars/
%{_kf5_iconsdir}/hicolor/*/*/*
%dir %_datadir/appdata
%_datadir/appdata/org.kde.kstars.appdata.xml
%_kf5_kxmlguidir/kstars/

%changelog
openSUSE Build Service is sponsored by