%global __brp_check_rpaths %{nil} %global packname lgarch %global packver 0.6-2 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 0.6.2 Release: 3%{?dist}%{?buildtag} Summary: Simulation and Estimation of Log-GARCH Models License: GPL-2 URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel >= 2.15.0 Requires: R-core >= 2.15.0 BuildRequires: R-CRAN-zoo Requires: R-CRAN-zoo %description Simulation and estimation of univariate and multivariate log-GARCH models. The main functions of the package are: lgarchSim(), mlgarchSim(), lgarch() and mlgarch(). The first two functions simulate from a univariate and a multivariate log-GARCH model, respectively, whereas the latter two estimate a univariate and multivariate log-GARCH model, respectively. %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}