%global __brp_check_rpaths %{nil} %global __requires_exclude ^libmpi %global packname iraceplot %global packver 1.3 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 1.3 Release: 1%{?dist}%{?buildtag} Summary: Plots for Visualizing the Data Produced by the 'irace' Package License: MIT + file LICENSE URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel >= 3.4 Requires: R-core >= 3.4 BuildArch: noarch BuildRequires: R-CRAN-irace >= 3.5 BuildRequires: R-CRAN-ggplot2 >= 3.3.6 BuildRequires: R-CRAN-rmarkdown >= 2.7 BuildRequires: R-CRAN-matrixStats >= 0.55 BuildRequires: R-CRAN-cli BuildRequires: R-CRAN-dplyr BuildRequires: R-CRAN-DT BuildRequires: R-CRAN-forcats BuildRequires: R-CRAN-ggforce BuildRequires: R-CRAN-gridExtra BuildRequires: R-CRAN-knitr BuildRequires: R-CRAN-labeling BuildRequires: R-CRAN-plotly BuildRequires: R-CRAN-rlang BuildRequires: R-stats BuildRequires: R-CRAN-tibble BuildRequires: R-CRAN-tidyr BuildRequires: R-CRAN-truncnorm BuildRequires: R-utils BuildRequires: R-CRAN-viridisLite BuildRequires: R-CRAN-withr Requires: R-CRAN-irace >= 3.5 Requires: R-CRAN-ggplot2 >= 3.3.6 Requires: R-CRAN-rmarkdown >= 2.7 Requires: R-CRAN-matrixStats >= 0.55 Requires: R-CRAN-cli Requires: R-CRAN-dplyr Requires: R-CRAN-DT Requires: R-CRAN-forcats Requires: R-CRAN-ggforce Requires: R-CRAN-gridExtra Requires: R-CRAN-knitr Requires: R-CRAN-labeling Requires: R-CRAN-plotly Requires: R-CRAN-rlang Requires: R-stats Requires: R-CRAN-tibble Requires: R-CRAN-tidyr Requires: R-CRAN-truncnorm Requires: R-utils Requires: R-CRAN-viridisLite Requires: R-CRAN-withr %description Graphical visualization tools for analyzing the data produced by 'irace'. The 'iraceplot' package enables users to analyze the performance and the parameter space data sampled by the configuration during the search process. It provides a set of functions that generate different plots to visualize the configurations sampled during the execution of 'irace' and their performance. The functions just require the log file generated by 'irace' and, in some cases, they can be used with user-provided data. %prep %setup -q -c -n %{packname} # fix end of executable files find -type f -executable -exec grep -Iq . {} \; -exec sed -i -e '$a\' {} \; # prevent binary stripping [ -d %{packname}/src ] && find %{packname}/src -type f -exec \ sed -i 's@/usr/bin/strip@/usr/bin/true@g' {} \; || true [ -d %{packname}/src ] && find %{packname}/src/Make* -type f -exec \ sed -i 's@-g0@@g' {} \; || true # don't allow local prefix in executable scripts find -type f -executable -exec sed -Ei 's@#!( )*/usr/local/bin@#!/usr/bin@g' {} \; %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 # remove buildroot from installed files find %{buildroot}%{rlibdir} -type f -exec sed -i "s@%{buildroot}@@g" {} \; %files %{rlibdir}/%{packname}