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


Name:           kstars
Version:        4.10.0
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:  libeigen2-devel
BuildRequires:  libindi
BuildRequires:  libindi-devel
BuildRequires:  libkde4-devel
%if 0%{?suse_version}
BuildRequires:  update-desktop-files
%endif
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
%kde4_runtime_requires

%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_kde4 -d build
%make_jobs

%install
cd build
%kde4_makeinstall
cd ..

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

%kde_post_install

%fdupes -s %{buildroot}

%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING COPYING.DOC ChangeLog README README.customize README.ephemerides README.images kstars.lsm
%{_kde4_applicationsdir}/kstars.desktop
%{_kde4_appsdir}/kstars/
%{_kde4_bindir}/kstars
%{_kde4_configdir}/kstars.knsrc
%{_kde4_configkcfgdir}/kstars.kcfg
%doc %{_kde4_htmldir}/en/kstars/
%{_kde4_iconsdir}/hicolor/*/apps/kstars.*

%changelog
openSUSE Build Service is sponsored by