%global __brp_check_rpaths %{nil} %global packname arena2r %global packver 1.0.0 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 1.0.0 Release: 3%{?dist}%{?buildtag} Summary: Plots, Summary Statistics and Tools for Arena Simulation Users 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-stats BuildRequires: R-utils BuildRequires: R-CRAN-rlang BuildRequires: R-CRAN-tidyr BuildRequires: R-CRAN-magrittr BuildRequires: R-CRAN-dplyr BuildRequires: R-CRAN-purrr BuildRequires: R-CRAN-shiny BuildRequires: R-CRAN-shinydashboard BuildRequires: R-CRAN-shinyBS BuildRequires: R-CRAN-shinyjs BuildRequires: R-CRAN-ggplot2 Requires: R-stats Requires: R-utils Requires: R-CRAN-rlang Requires: R-CRAN-tidyr Requires: R-CRAN-magrittr Requires: R-CRAN-dplyr Requires: R-CRAN-purrr Requires: R-CRAN-shiny Requires: R-CRAN-shinydashboard Requires: R-CRAN-shinyBS Requires: R-CRAN-shinyjs Requires: R-CRAN-ggplot2 %description Reads Arena CSV output files and generates nice tables and plots. The package contains a Shiny App that can be used to interactively visualize Arena's results. %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}