File rkward.spec of Package rkward

#
# spec file for package rkward
#
# Copyright (c) 2018 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:           rkward
Version:        0.7.0b
Release:        0
Summary:        Graphical frontend for R language
License:        GPL-2.0
Group:          Productivity/Scientific/Math
Summary(fr):    Interface graphique pour le langage R 

Url:            http://rkward.sourceforge.net/ 
Source0:        %{name}-%{version}.tar.gz

BuildRoot:      %{_tmppath}/%{name}-%{version}-build

BuildRequires:  R-base-devel
BuildRequires:  cmake
BuildRequires:  gcc-fortran
BuildRequires:  gettext
BuildRequires:  kf5-filesystem
BuildRequires:  kconfig-devel
BuildRequires:  kcoreaddons-devel
BuildRequires:  kcrash-devel
BuildRequires:  kdewebkit-devel
BuildRequires:  kdoctools-devel
BuildRequires:  ki18n-devel
BuildRequires:  knotifications-devel
BuildRequires:  kparts-devel
BuildRequires:  ktexteditor-devel
BuildRequires:  kwidgetsaddons-devel
BuildRequires:  kwindowsystem-devel
BuildRequires:  kxmlgui-devel
BuildRequires:  cmake(Qt5Core)
BuildRequires:  cmake(Qt5Network)
BuildRequires:  cmake(Qt5PrintSupport)
BuildRequires:  cmake(Qt5Script)
BuildRequires:  cmake(Qt5WebKitWidgets)
BuildRequires:  cmake(Qt5Widgets)
BuildRequires:  cmake(Qt5Xml)
BuildRequires:  update-desktop-files
# rkward needs the R-base version it was compiled with - boo#993268
%requires_eq    R-base

%description
RKWard aims to provide an easily extensible, easy to use IDE/GUI for the
R-project. RKWard tries to combine the power of the R-language with the
(relative) ease of use of commercial statistics tools. Long term plans
include integration with office suites

%description -l fr
RKWard fournis un environnement de développement graphique intégré
aisément extensible et simple d'utilisation. RKWard tente de
combiner la puissance du langage R et la (relative) simplicité d'utilisation
des outils statistiques commerciaux. L'objectif à long terme est de voir son
intégration dans les suites bureautiques.

%prep
%setup -q

%build
%cmake_kf5 -d build -- -DNO_R_XML=1
%make_jobs

%install
cd build
%makeinstall

%suse_update_desktop_file -n org.kde.rkward

%find_lang %{name}

%files -f build/%{name}.lang
%defattr(-,root,root,-)
%doc README COPYING TODO AUTHORS
%doc %{_kf5_mandir}/man1/rkward.1.gz
%dir %{_kf5_sharedir}/doc/HTML/en/rkwardplugins
%doc %{_kf5_sharedir}/doc/HTML/en/rkwardplugins/index.cache.bz2
%doc %{_kf5_sharedir}/doc/HTML/en/rkwardplugins/index.docbook
%doc %{_kf5_sharedir}/doc/HTML/en/rkwardplugins/menu_hierarchy_example.png
%doc %{_kf5_sharedir}/doc/HTML/en/rkwardplugins/t_test_plugin_example.png
%{_libdir}/R/library/rkward/
%{_libdir}/R/library/rkwardtests/
%{_kf5_applicationsdir}/org.kde.rkward.desktop
%{_kf5_applicationsdir}/org.kde.rkward-open.desktop
%{_kf5_sharedir}/icons/hicolor/16x16/apps/rkward.png
%{_kf5_sharedir}/icons/hicolor/22x22/apps/rkward.png
%{_kf5_sharedir}/icons/hicolor/32x32/apps/rkward.png
%{_kf5_sharedir}/icons/hicolor/48x48/apps/rkward.png
%{_kf5_sharedir}/icons/hicolor/64x64/apps/rkward.png
%{_kf5_sharedir}/icons/hicolor/128x128/apps/rkward.png
%{_kf5_sharedir}/icons/hicolor/scalable/apps/rkward.svgz
%{_kf5_bindir}/rkward*
%{_kf5_libdir}/libexec/
%{_kf5_sharedir}/rkward/
%{_kf5_servicesdir}/rkward.protocol
%if 0%{?suse_version} > 1320 || (0%{?suse_version} == 1315 && 0%{?sle_version} >= 120300)
# we have the syntax-highlighting framework since Leap 42.3
%dir %{_kf5_sharedir}/org.kde.syntax-highlighting
%dir %{_kf5_sharedir}/org.kde.syntax-highlighting/syntax
%{_kf5_sharedir}/org.kde.syntax-highlighting/syntax/rkward.xml
%else
%dir %{_kf5_sharedir}/katepart5
%dir %{_kf5_sharedir}/katepart5/syntax
%{_kf5_sharedir}/katepart5/syntax/rkward.xml
%endif
%{_kf5_sharedir}/mime/packages/vnd.rkward.r.xml
%{_kf5_kxmlguidir}/rkward/

# language files

%dir %{_kf5_sharedir}/rkward/po/
%lang(bs)  %{_kf5_sharedir}/rkward/po/bs/
%lang(ca)  %{_kf5_sharedir}/rkward/po/ca/
%lang(cs)  %{_kf5_sharedir}/rkward/po/cs/
%lang(de)  %{_kf5_sharedir}/rkward/po/de/
%lang(es)  %{_kf5_sharedir}/rkward/po/es/
%lang(gl)  %{_kf5_sharedir}/rkward/po/gl/
%lang(ja)  %{_kf5_sharedir}/rkward/po/ja/
%lang(nl)  %{_kf5_sharedir}/rkward/po/nl/
%lang(pl)  %{_kf5_sharedir}/rkward/po/pl/
%lang(pt)  %{_kf5_sharedir}/rkward/po/pt/
%lang(pt_BR)  %{_kf5_sharedir}/rkward/po/pt_BR/
%lang(sk)  %{_kf5_sharedir}/rkward/po/sk/
%lang(sv)  %{_kf5_sharedir}/rkward/po/sv/
%lang(uk)  %{_kf5_sharedir}/rkward/po/uk/
%lang(x-test) %{_kf5_sharedir}/rkward/po/x-test/

%doc %lang(en) %{_kf5_sharedir}/doc/HTML/en/rkward/

%changelog
openSUSE Build Service is sponsored by