File R-partykit.spec of Package R-partykit
%global packname partykit
%global rlibdir %{_libdir}/R/library
Name: R-%{packname}
Version: 0.8_2
Release: 1
Summary: A Toolkit for Recursive Partytioning
Group: Development/Libraries/Other
License: GPL-2.0+
URL: http://cran.r-project.org/web/packages/%{packname}/index.html
Source0: partykit_0.8-2.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: R-base
Requires: R-graphics R-grid
# Package suggestions
#Requires: R-XML R-pmml R-rJava R-rpart R-mvtnorm R-Formula R-sandwich R-strucchange R-vcd R-AER R-mlbench R-TH.data R-coin R-RWeka R-mvpart R-datasets R-psychotools R-psychotree
BuildRequires: texlive
BuildRequires: texinfo
BuildRequires: fdupes
#
%if 0%{?suse_version} <= 1220 && 0%{?suse_version} != 1110
BuildRequires: texlive-fonts-extra
%endif
BuildRequires: R-base-devel R-graphics R-grid
BuildRequires: gcc-c++
# Package suggestions, not required to build
#BuildRequires: R-XML R-pmml R-rJava R-rpart R-mvtnorm R-Formula R-sandwich R-strucchange R-vcd R-AER R-mlbench R-TH.data R-coin R-RWeka R-mvpart R-datasets R-psychotools R-psychotree
%description
A toolkit with infrastructure for representing, summarizing, and
visualizing tree-structured regression and classification models. This
unified infrastructure can be used for reading/coercing tree models from
different sources (rpart, RWeka, PMML) yielding objects that share
functionality for print/plot/predict methods. Furthermore, new and
improved reimplementations of conditional inference trees (ctree) and
model-based recursive partitioning (mob) from the party package are
provided based on the new infrastructure.
%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}/demo
%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}/data
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/pmml
%changelog