%global __brp_check_rpaths %{nil} %global packname hansard %global packver 0.8.0 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 0.8.0 Release: 3%{?dist}%{?buildtag} Summary: Provides Easy Downloading Capabilities for the UK Parliament API License: MIT + file LICENSE URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel >= 3.2.0 Requires: R-core >= 3.2.0 BuildArch: noarch BuildRequires: R-CRAN-jsonlite BuildRequires: R-CRAN-dplyr BuildRequires: R-CRAN-tibble BuildRequires: R-CRAN-lubridate BuildRequires: R-CRAN-tidyr BuildRequires: R-CRAN-snakecase Requires: R-CRAN-jsonlite Requires: R-CRAN-dplyr Requires: R-CRAN-tibble Requires: R-CRAN-lubridate Requires: R-CRAN-tidyr Requires: R-CRAN-snakecase %description Provides functions to download data from the APIs. Because of the structure of the API, there is a named function for each type of available data for ease of use, as well as some functions designed to retrieve specific pieces of commonly used data. Functions for each new API will be added as and when they become available. %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}