%global __brp_check_rpaths %{nil} %global packname neuralnet %global packver 1.44.2 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 1.44.2 Release: 3%{?dist}%{?buildtag} Summary: Training of Neural Networks License: GPL (>= 2) URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel >= 2.9.0 Requires: R-core >= 2.9.0 BuildArch: noarch BuildRequires: R-grid BuildRequires: R-MASS BuildRequires: R-grDevices BuildRequires: R-stats BuildRequires: R-utils BuildRequires: R-CRAN-Deriv Requires: R-grid Requires: R-MASS Requires: R-grDevices Requires: R-stats Requires: R-utils Requires: R-CRAN-Deriv %description Training of neural networks using backpropagation, resilient backpropagation with (Riedmiller, 1994) or without weight backtracking (Riedmiller and Braun, 1993) or the modified globally convergent version by Anastasiadis et al. (2005). The package allows flexible settings through custom-choice of error and activation function. Furthermore, the calculation of generalized weights (Intrator O & Intrator N, 1993) is implemented. %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}