LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File R-bayesGARCH.spec of Package R-bayesGARCH (Project devel:languages:R:CRAN-packages)

%global packname  bayesGARCH
%global rlibdir   %{_libdir}/R/library

Name:           R-%{packname}
Version:        2.0.1
Release:        1
Summary:        Bayesian Estimation of the GARCH(1,1) Model with Student-t Innovations

Group:          Development/Libraries/Other
License:        GPL (>= 2)
URL:            None
Source0:        bayesGARCH_2.0.1.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       R-base
Requires:         R-mvtnorm R-coda 
# Package suggestions

BuildRequires:  texlive
BuildRequires:  texinfo
BuildRequires:  fdupes
%if 0%{?suse_version} <= 1220 && 0%{?suse_version} != 1110
BuildRequires:  texlive-fonts-extra

BuildRequires:    R-base-devel R-mvtnorm R-coda
# Package suggestions, not required to build

This package provides the bayesGARCH function which performs the Bayesian
estimation of the GARCH(1,1) model with Student's t innovations.

%setup -q -c -n %{packname}


rm -rf %{buildroot}
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

rm -rf %{buildroot}

%defattr(-, root, root, -)
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS