File R-permute.spec of Package R-permute
#
# spec file for package R-permute
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%global packname permute
%global rlibdir %{_libdir}/R/library
Name: R-%{packname}
Version: 0.9.5
Release: 0
Summary: Functions for Generating Restricted Permutations of Data
License: GPL-2.0-only
Group: Development/Libraries/Other
URL: http://cran.r-project.org/web/packages/%{packname}
Source: http://cran.r-project.org/src/contrib/%{packname}_0.9-5.tar.gz
BuildRequires: R-base-devel
BuildRequires: R-stats
BuildRequires: fdupes
BuildRequires: texinfo
Requires: R-base
Requires: R-stats
%if 0%{?sle_version} > 120400 || 0%{?is_opensuse}
# Three others commonly needed
BuildRequires: tex(ae.sty)
BuildRequires: tex(fancyvrb.sty)
BuildRequires: tex(inconsolata.sty)
BuildRequires: tex(natbib.sty)
%else
BuildRequires: texlive
%endif
%description
A set of restricted permutation designs for freely exchangeable, line
transects (time series), and spatial grid designs plus permutation of
blocks (groups of samples) is provided. 'permute' also allows split-plot
designs, in which the whole-plots or split-plots or both can be
freely-exchangeable or one of the restricted designs. The 'permute'
package is modelled after the permutation schemes of 'Canoco 3.1' (and
later) by Cajo ter Braak.
%prep
%setup -q -c -n %{packname}
%build
%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
rm -f %{buildroot}%{rlibdir}/R.css
%fdupes %{buildroot}%{rlibdir}/%{packname}
%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/permute/doc
%doc %{rlibdir}/permute/html
%doc %{rlibdir}/permute/NEWS
%{rlibdir}/permute/TODO.md
%{rlibdir}/permute/ChangeLog
%{rlibdir}/permute/R
%{rlibdir}/permute/COPYRIGHTS
%{rlibdir}/permute/help
%{rlibdir}/permute/INDEX
%{rlibdir}/permute/data
%{rlibdir}/permute/DESCRIPTION
%{rlibdir}/permute/NAMESPACE
%{rlibdir}/permute/Meta
%changelog