%global __brp_check_rpaths %{nil}
%global packname geospark
%global packver 0.3.1
%global rlibdir /usr/local/lib/R/library
Name: R-CRAN-%{packname}
Version: 0.3.1
Release: 3%{?dist}%{?buildtag}
Summary: Bring Local Sf to Spark
License: Apache License (>= 2.0)
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-dbplyr >= 1.3.0
BuildRequires: R-CRAN-sparklyr >= 1.0.0
BuildRequires: R-CRAN-dplyr >= 0.8.3
Requires: R-CRAN-dbplyr >= 1.3.0
Requires: R-CRAN-sparklyr >= 1.0.0
Requires: R-CRAN-dplyr >= 0.8.3
%description
R binds 'GeoSpark' extending 'sparklyr'
R package to make distributed 'geocomputing'
easier. Sf is a package that provides [simple features]
access for R and which is
a leading 'geospatial' data processing tool. 'Geospark' R package bring
the same simple features access like sf but running on Spark distributed
system.
%prep
%setup -q -c -n %{packname}
find -type f -executable -exec grep -Iq . {} \; -exec sed -i -e '$a\' {} \;
%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}