File R-magic.spec of Package R-magic
%global packname magic
%global rlibdir %{_datadir}/R/library
Name: R-%{packname}
Version: 1.5.9
Release: 1%{?dist}
Summary: Create and Investigate Magic Squares
License: GPL-2
URL: https://CRAN.R-project.org/package=%{packname}
Source0: https://cran.r-project.org/src/contrib/%{packname}_1.5-9.tar.gz
# Here's the R view of the dependencies world:
# Depends: R-abind
# Imports:
# Suggests:
# LinkingTo:
# Enhances:
BuildArch: noarch
BuildRequires: R-base-devel
BuildRequires: tex(latex)
BuildRequires: R-abind
%description
A collection of efficient, vectorized algorithms for the creation and
investigation of magic squares and hypercubes, including a variety of
functions for the manipulation and analysis of arbitrarily dimensioned
arrays. The package includes methods for creating normal magic squares of
any order greater than 2. The ultimate intention is for the package to be
a computerized embodiment all magic square knowledge, including direct
numerical verification of properties of magic squares (such as recent
results on the determinant of odd-ordered semimagic squares). Some
antimagic functionality is included. The package also serves as a rebuttal
to the often-heard comment "I thought R was just for statistics".
%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
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%changelog
* Mon Feb 03 2020 Detlef Steuer <steuer@hsu-hh.de> - 1.5.9-1
- initial package for openSUSE / SLE