File R-rattle.spec of Package R-rattle

%global packname  rattle
%global rlibdir   %{_libdir}/R/library

Name:           R-%{packname}
Version:        3.3.0
Release:        1
Summary:        Graphical user interface for data mining in R

Group:          Development/Libraries/Other
License:        GPL-2.0+
URL:            http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:        rattle_%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       R-base

# Package suggestions
#Requires:         R-RGtk2 R-pmml R-bitops R-colorspace R-ada R-amap R-arules R-arulesViz R-biclust R-cairoDevice R-cba R-corrplot R-descr R-doBy R-e1071 R-ellipse R-fBasics R-foreign R-fpc R-gdata R-ggdendro R-ggplot2 R-gplots R-graph R-grid R-gtools R-gWidgetsRGtk2 R-hmeasure R-Hmisc R-kernlab R-latticist R-Matrix R-methods R-mice R-network R-nnet R-odfWeave R-party R-playwith R-plyr R-psych R-randomForest R-RBGL R-RColorBrewer R-reshape R-rggobi R-RGtk2Extras R-ROCR R-RODBC R-rpart R-rpart.plot R-SnowballC R-stringr R-survival R-timeDate R-tm R-verification R-weightedKmeans R-XML R-xlsx R-pkgDepTools R-Rgraphviz 
BuildRequires:  texlive
BuildRequires:  texinfo
BuildRequires:  fdupes
#
%if 0%{?suse_version} <= 1220 && 0%{?suse_version} != 1110
BuildRequires:  texlive-fonts-extra
%endif

BuildRequires:    R-base-devel 
# Package suggestions, not required to build
#BuildRequires: R-RGtk2 R-pmml R-bitops R-colorspace R-ada R-amap R-arules R-arulesViz R-biclust R-cairoDevice R-cba R-corrplot R-descr R-doBy R-e1071 R-ellipse R-fBasics R-foreign R-fpc R-gdata R-ggdendro R-ggplot2 R-gplots R-graph R-grid R-gtools R-gWidgetsRGtk2 R-hmeasure R-Hmisc R-kernlab R-latticist R-Matrix R-methods R-mice R-network R-nnet R-odfWeave R-party R-playwith R-plyr R-psych R-randomForest R-RBGL R-RColorBrewer R-reshape R-rggobi R-RGtk2Extras R-ROCR R-RODBC R-rpart R-rpart.plot R-SnowballC R-stringr R-survival R-timeDate R-tm R-verification R-weightedKmeans R-XML R-xlsx R-pkgDepTools R-Rgraphviz

%description
Rattle (the R Analytic Tool To Learn Easily) provides a Gnome (RGtk2)
based interface to R functionality for data mining. The aim is to provide
a simple and intuitive interface that allows a user to quickly load data
from a CSV file (or via ODBC), transform and explore the data, build and
evaluate models, and export models as PMML (predictive modelling markup
language) or as scores. All of this with knowing little about R. All R
commands are logged and commented through the log tab. Thus they are
available to the user as a script file or as an aide for the user to learn
R or to copy-and-paste directly into R itself. Rattle also exports a
number of utility functions and the graphical user interface, invoked as
rattle(),  does not need to be run to deploy these.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css


%files
%defattr(-, root, root, -)
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/odt
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%doc %{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/arff
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/csv
%{rlibdir}/%{packname}/etc
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/po


%changelog
openSUSE Build Service is sponsored by