%global __brp_check_rpaths %{nil} %global packname wosr %global packver 0.3.0 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 0.3.0 Release: 3%{?dist}%{?buildtag} Summary: Clients to the 'Web of Science' and 'InCites' APIs License: MIT + file LICENSE URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel >= 3.1 Requires: R-core >= 3.1 BuildArch: noarch BuildRequires: R-CRAN-httr BuildRequires: R-CRAN-xml2 BuildRequires: R-CRAN-jsonlite BuildRequires: R-CRAN-pbapply BuildRequires: R-utils BuildRequires: R-tools Requires: R-CRAN-httr Requires: R-CRAN-xml2 Requires: R-CRAN-jsonlite Requires: R-CRAN-pbapply Requires: R-utils Requires: R-tools %description R clients to the 'Web of Science' and 'InCites' APIs, which allow you to programmatically download publication and citation data indexed in the 'Web of Science' and 'InCites' databases. %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}