%global __brp_check_rpaths %{nil} %global packname owmr %global packver 0.8.2 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 0.8.2 Release: 3%{?dist}%{?buildtag} Summary: OpenWeatherMap API Wrapper 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.2 Requires: R-core >= 3.1.2 BuildArch: noarch BuildRequires: R-CRAN-magrittr BuildRequires: R-CRAN-httr BuildRequires: R-CRAN-jsonlite BuildRequires: R-CRAN-plyr BuildRequires: R-CRAN-tibble BuildRequires: R-CRAN-tidyr Requires: R-CRAN-magrittr Requires: R-CRAN-httr Requires: R-CRAN-jsonlite Requires: R-CRAN-plyr Requires: R-CRAN-tibble Requires: R-CRAN-tidyr %description Accesses OpenWeatherMap's (owm) API. 'owm' itself is a service providing weather data in the past, in the future and now. Furthermore, 'owm' serves weather map layers usable in frameworks like 'leaflet'. In order to access the API, you need to sign up for an API key. There are free and paid plans. Beside functions for fetching weather data from 'owm', 'owmr' supplies tools to tidy up fetched data (for fast and simple access) and to show it on leaflet maps. %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}