%global __brp_check_rpaths %{nil}
%global packname ramlegacy
%global packver 0.2.0
%global rlibdir /usr/local/lib/R/library
Name: R-CRAN-%{packname}
Version: 0.2.0
Release: 3%{?dist}%{?buildtag}
Summary: Download and Read RAM Legacy Stock Assessment Database
License: MIT + file LICENSE
URL: https://cran.r-project.org/package=%{packname}
Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz
BuildRequires: R-devel >= 2.10
Requires: R-core >= 2.10
BuildArch: noarch
BuildRequires: R-CRAN-crayon >= 1.3.4
BuildRequires: R-CRAN-httr >= 1.3.1
BuildRequires: R-CRAN-readxl >= 1.1.0
BuildRequires: R-CRAN-cli >= 1.0.0
BuildRequires: R-CRAN-rappdirs >= 0.3.1
Requires: R-CRAN-crayon >= 1.3.4
Requires: R-CRAN-httr >= 1.3.1
Requires: R-CRAN-readxl >= 1.1.0
Requires: R-CRAN-cli >= 1.0.0
Requires: R-CRAN-rappdirs >= 0.3.1
%description
Contains functions to download, cache and read in 'Excel' version of the
RAM Legacy Stock Assessment Data Base, an online compilation of stock
assessment results for commercially exploited marine populations from
around the world. The database is named after Dr. Ransom A. Myers whose
original stock-recruitment database, is no longer being updated. More
information about the database can be found at .
Ricard, D., Minto, C., Jensen, O.P. and Baum, J.K. (2012)
.
%prep
%setup -q -c -n %{packname}
find -type f -executable -exec grep -Iq . {} \; -exec sed -i -e '$a\' {} \;
%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
%{rlibdir}/%{packname}