%global __brp_check_rpaths %{nil} %global packname RWildbook %global packver 0.9.3 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 0.9.3 Release: 3%{?dist}%{?buildtag} Summary: Interface for the 'Wildbook' Wildlife Data Management Framework License: GPL (>= 2) URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel >= 3.0.0 Requires: R-core >= 3.0.0 BuildArch: noarch BuildRequires: R-CRAN-jsonlite BuildRequires: R-CRAN-data.table BuildRequires: R-utils BuildRequires: R-CRAN-marked Requires: R-CRAN-jsonlite Requires: R-CRAN-data.table Requires: R-utils Requires: R-CRAN-marked %description Provides an interface with the 'Wildbook' mark-recapture ecological database framework. It helps users to pull data from the 'Wildbook' framework and format data for further analysis with mark-recapture applications like 'Program MARK' (which can be accessed via the 'RMark' package in 'R'). Further information on the 'Wildbook' framework is available at: . %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 %{rlibdir}/%{packname}