2018-03-19 21:41:12 +00:00
|
|
|
%global packname iterators
|
|
|
|
%global rlibdir %{_datadir}/R/library
|
|
|
|
|
|
|
|
|
|
|
|
Name: R-%{packname}
|
|
|
|
Version: 1.0.9
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Provides Iterator Construct for R
|
|
|
|
|
|
|
|
License: ASL 2.0
|
|
|
|
URL: https://cran.r-project.org/web/packages/%{packname}/index.html
|
|
|
|
Source0: https://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
|
|
|
|
|
|
|
|
# Here's the R view of the dependencies world:
|
|
|
|
# Depends: R-utils
|
|
|
|
# Imports:
|
|
|
|
# Suggests: R-RUnit
|
|
|
|
# LinkingTo:
|
|
|
|
# Enhances:
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
Requires: R-core
|
|
|
|
|
|
|
|
Requires: R-utils
|
|
|
|
Recommends: R-RUnit
|
|
|
|
BuildRequires: R-devel tex(latex) R-utils
|
|
|
|
BuildRequires: R-RUnit
|
|
|
|
|
|
|
|
%description
|
|
|
|
Support for iterators, which allow a programmer to traverse through all
|
|
|
|
the elements of a vector, list, or other collection of data.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -c -n %{packname}
|
|
|
|
|
2018-03-24 00:07:07 +00:00
|
|
|
# Fix permissions.
|
|
|
|
chmod +x %{packname}/inst/unitTests/runTestSuite.sh
|
|
|
|
|
2018-03-19 21:41:12 +00:00
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%{_bindir}/R CMD check %{packname}
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%dir %{rlibdir}/%{packname}
|
|
|
|
%doc %{rlibdir}/%{packname}/doc
|
|
|
|
%doc %{rlibdir}/%{packname}/html
|
|
|
|
%{rlibdir}/%{packname}/DESCRIPTION
|
|
|
|
%{rlibdir}/%{packname}/INDEX
|
|
|
|
%{rlibdir}/%{packname}/NAMESPACE
|
|
|
|
%{rlibdir}/%{packname}/Meta
|
|
|
|
%{rlibdir}/%{packname}/R
|
|
|
|
%{rlibdir}/%{packname}/help
|
|
|
|
%{rlibdir}/%{packname}/examples
|
|
|
|
%{rlibdir}/%{packname}/unitTests
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Sat Mar 17 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.0.9-1
|
|
|
|
- initial package for Fedora
|