File rkward.spec of Package rkward

# spec file for package rkward
# Copyright (c) 2012 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:           rkward
Version:        0.5.7
Release:        1
Summary:        Graphical frontend for R language
Summary(fr):    Interface graphique pour le langage R 

Group:          Productivity/Scientific/Math
License:        GPL-2.0
Source0:        %{name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

BuildRequires:  R-base-devel desktop-file-utils gettext
BuildRequires:  cmake gcc-fortran libkde4-devel
BuildRequires:  update-desktop-files
BuildRequires:  kde4-filesystem
Requires:       R-base
Requires:       kdebase4-runtime

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.

%if %suse_version < 1120
%define _kde4_htmldir /usr/share/doc/kde/HTML/

%setup -q 

%cmake_kde4 -d build

cd build

desktop-file-install \
  --vendor="" \
  --dir=%{buildroot}%{kde4_datadir}/applications/kde4 \
%suse_update_desktop_file -n rkward

#This file is conflicting with the kdelibs one
rm -f $RPM_BUILD_ROOT%{_datadir}/kde4/apps/katepart/syntax/r.xml
# already in R-base package
rm -f $RPM_BUILD_ROOT%{_libdir}/R/library/R.css

%find_lang %{name}


touch --no-create %{_datadir}/icons/locolor
touch --no-create %{_datadir}/icons/crystalsvg

touch --no-create %{_datadir}/icons/locolor
touch --no-create %{_datadir}/icons/crystalsvg

%files -f build/%{name}.lang
%doc %{_mandir}/man1/rkward.1.gz
%dir %{_datadir}/doc/kde/HTML/en/rkwardplugins
%doc %{_datadir}/doc/kde/HTML/en/rkwardplugins/common
%doc %{_datadir}/doc/kde/HTML/en/rkwardplugins/index.cache.bz2
%doc %{_datadir}/doc/kde/HTML/en/rkwardplugins/index.docbook
%doc %{_datadir}/doc/kde/HTML/en/rkwardplugins/menu_hierarchy_example.png
%doc %{_datadir}/doc/kde/HTML/en/rkwardplugins/t_test_plugin_example.png
%dir %{_datadir}/kde4/apps/katepart
%dir %{_datadir}/kde4/apps/katepart/syntax

openSUSE Build Service is sponsored by