%global __brp_check_rpaths %{nil} %global packname cubeview %global packver 0.2.0 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 0.2.0 Release: 3%{?dist}%{?buildtag} Summary: View 3D Raster Cubes Interactively License: MIT + file LICENSE URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel >= 2.10 Requires: R-core >= 2.10 BuildArch: noarch BuildRequires: R-CRAN-base64enc BuildRequires: R-CRAN-htmltools BuildRequires: R-CRAN-htmlwidgets BuildRequires: R-lattice BuildRequires: R-CRAN-raster BuildRequires: R-CRAN-stars BuildRequires: R-CRAN-viridisLite Requires: R-CRAN-base64enc Requires: R-CRAN-htmltools Requires: R-CRAN-htmlwidgets Requires: R-lattice Requires: R-CRAN-raster Requires: R-CRAN-stars Requires: R-CRAN-viridisLite %description Creates a 3D data cube view of a RasterStack/Brick, typically a collection/array of RasterLayers (along z-axis) with the same geographical extent (x and y dimensions) and resolution, provided by package 'raster'. Slices through each dimension (x/y/z), freely adjustable in location, are mapped to the visible sides of the cube. The cube can be freely rotated. Zooming and panning can be used to focus on different areas of the cube. %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}