LogoopenSUSE Build Service > Projects
Sign Up | Log In

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

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

Name:             R-%{packname}
Version:          0.1.2
Release:          1%{?dist}
Summary:          Reparameterized and marginalized posterior sampling forReparameterized and marginalized posterior sampling for

Group:            Development/Libraries/Other
License:          GPL (>= 3)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_0.1.2.tar.gz
BuildRoot:        %{_tmppath}/%{name}-%{version}-build

Requires:         R-coda 
%if %suse_version <=1020
BuildRequires:  te_latex tetex
%if %suse_version > 1020
BuildRequires:  texlive-bin texlive-bin-latex texlive-latex
BuildRequires:  fdupes
%if %suse_version > 1120 
BuildRequires:  texlive-fonts-extra
BuildRequires:    R-base-devel  R-coda

This package fits Bayesian conditional autoregressive models for spatial
and spatiotemporal data on a lattice.  It uses Nvidia GPUs to perform
rejection sampling to obtain independent samples from the joint posterior
distribution of model parameters.

%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