%global __brp_check_rpaths %{nil} %global packname cloudml %global packver 0.6.1 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 0.6.1 Release: 3%{?dist}%{?buildtag} Summary: Interface to the Google Cloud Machine Learning Platform License: Apache License 2.0 URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz Requires: python2 BuildRequires: R-devel >= 3.3.0 Requires: R-core >= 3.3.0 BuildArch: noarch BuildRequires: R-CRAN-tfruns >= 1.3 BuildRequires: R-CRAN-config BuildRequires: R-CRAN-jsonlite BuildRequires: R-CRAN-packrat BuildRequires: R-CRAN-processx BuildRequires: R-CRAN-rprojroot BuildRequires: R-CRAN-rstudioapi BuildRequires: R-tools BuildRequires: R-utils BuildRequires: R-CRAN-withr BuildRequires: R-CRAN-yaml Requires: R-CRAN-tfruns >= 1.3 Requires: R-CRAN-config Requires: R-CRAN-jsonlite Requires: R-CRAN-packrat Requires: R-CRAN-processx Requires: R-CRAN-rprojroot Requires: R-CRAN-rstudioapi Requires: R-tools Requires: R-utils Requires: R-CRAN-withr Requires: R-CRAN-yaml %description Interface to the Google Cloud Machine Learning Platform , which provides cloud tools for training machine learning models. %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}