%global __brp_check_rpaths %{nil} %global packname neo4r %global packver 0.1.1 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 0.1.1 Release: 3%{?dist}%{?buildtag} Summary: A 'Neo4J' Driver License: MIT + file LICENSE URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel Requires: R-core BuildArch: noarch BuildRequires: R-CRAN-attempt BuildRequires: R-CRAN-data.table BuildRequires: R-CRAN-glue BuildRequires: R-CRAN-httr BuildRequires: R-CRAN-igraph BuildRequires: R-CRAN-jsonlite BuildRequires: R-CRAN-magrittr BuildRequires: R-CRAN-purrr BuildRequires: R-CRAN-R6 BuildRequires: R-CRAN-rlang BuildRequires: R-CRAN-rstudioapi BuildRequires: R-CRAN-shiny BuildRequires: R-CRAN-tibble BuildRequires: R-CRAN-tidyr BuildRequires: R-CRAN-tidyselect BuildRequires: R-utils Requires: R-CRAN-attempt Requires: R-CRAN-data.table Requires: R-CRAN-glue Requires: R-CRAN-httr Requires: R-CRAN-igraph Requires: R-CRAN-jsonlite Requires: R-CRAN-magrittr Requires: R-CRAN-purrr Requires: R-CRAN-R6 Requires: R-CRAN-rlang Requires: R-CRAN-rstudioapi Requires: R-CRAN-shiny Requires: R-CRAN-tibble Requires: R-CRAN-tidyr Requires: R-CRAN-tidyselect Requires: R-utils %description A Modern and Flexible 'Neo4J' Driver, allowing you to query data on a 'Neo4J' server and handle the results in R. It's modern in the sense it provides a driver that can be easily integrated in a data analysis workflow, especially by providing an API working smoothly with other data analysis and graph packages. It's flexible in the way it returns the results, by trying to stay as close as possible to the way 'Neo4J' returns data. That way, you have the control over the way you will compute the results. At the same time, the result is not too complex, so that the "heavy lifting" of data wrangling is not left to the user. %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}