%global __brp_check_rpaths %{nil} %global packname simTool %global packver 1.1.7 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 1.1.7 Release: 1%{?dist}%{?buildtag} Summary: Conduct Simulation Studies with a Minimal Amount of Source Code License: GPL-3 URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel >= 2.14.0 Requires: R-core >= 2.14.0 BuildArch: noarch BuildRequires: R-CRAN-tibble >= 2.0.0 BuildRequires: R-CRAN-tidyr >= 1.0.0 BuildRequires: R-CRAN-dplyr >= 0.7.2 BuildRequires: R-CRAN-vctrs >= 0.3.0 BuildRequires: R-CRAN-purrr >= 0.2.3 BuildRequires: R-parallel BuildRequires: R-methods Requires: R-CRAN-tibble >= 2.0.0 Requires: R-CRAN-tidyr >= 1.0.0 Requires: R-CRAN-dplyr >= 0.7.2 Requires: R-CRAN-vctrs >= 0.3.0 Requires: R-CRAN-purrr >= 0.2.3 Requires: R-parallel Requires: R-methods %description Tool for statistical simulations that have two components. One component generates the data and the other one analyzes the data. The main aims of the package are the reduction of the administrative source code (mainly loops and management code for the results) and a simple applicability of the package that allows the user to quickly learn how to work with it. Parallel computing is also supported. Finally, convenient functions are provided to summarize the simulation results. %prep %setup -q -c -n %{packname} find -type f -executable -exec grep -Iq . {} \; -exec sed -i -e '$a\' {} \; [ -d %{packname}/src ] && find %{packname}/src -type f -exec \ sed -i 's@/usr/bin/strip@/usr/bin/true@g' {} \; || true %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 find %{buildroot}%{rlibdir} -type f -exec sed -i "s@%{buildroot}@@g" {} \; %files %{rlibdir}/%{packname}