File R-aplpack.spec of Package R-aplpack
%global packname aplpack
%global rlibdir %{_libdir}/R/library
Name: R-%{packname}
Version: 1.3.0
Release: 1
Summary: Another Plot PACKage: stem.leaf, bagplot, faces, spin3R, plotsummary, plothulls, and some slider functions
Group: Development/Libraries/Other
License: GPL-2.0+
URL: None
Source0: aplpack_%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: R-base
Requires: R-tcltk
# Package suggestions
#Requires: R-tkrplot
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-tcltk
# Package suggestions, not required to build
#BuildRequires: R-tkrplot
%description
set of functions for drawing some special plots: stem.leaf plots a stem
and leaf plot, stem.leaf.backback plots back-to-back versions of stem and
leafs, bagplot plots a bagplot, skyline.hist plots several histgramm in
one plot of a one dimensional data set, plotsummary plots a graphical
summary of a data set with one or more variables, plothulls plots
sequentially hulls of a bivariate data set, faces plots chernoff faces,
spin3R for an inspection of a 3-dim point cloud, slider functions for
interactive graphics.
%prep
%setup -q -c -n %{packname}
%build
%install
rm -rf %{buildroot}
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
%clean
rm -rf %{buildroot}
%files
%defattr(-, root, root, -)
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/src
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%changelog