%global packname R2OpenBUGS %global packver 3.2-3.2.1 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 3.2.3.2.1 Release: 3%{?dist}%{?buildtag} Summary: Running OpenBUGS from R License: GPL-2 URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel >= 2.13.0 Requires: R-core >= 2.13.0 BuildArch: noarch BuildRequires: R-CRAN-coda >= 0.11.0 BuildRequires: R-boot Requires: R-CRAN-coda >= 0.11.0 Requires: R-boot %description Using this package, it is possible to call a BUGS model, summarize inferences and convergence in a table and graph, and save the simulations in arrays for easy access in R. %prep %setup -q -c -n %{packname} find -type f -executable -exec grep -Iq . {} \; -exec sed -i -e '$a\' {} \; %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 %dir %{rlibdir}/%{packname} %doc %{rlibdir}/%{packname}/html %{rlibdir}/%{packname}/Meta %{rlibdir}/%{packname}/help %{rlibdir}/%{packname}/data %{rlibdir}/%{packname}/DESCRIPTION %{rlibdir}/%{packname}/NAMESPACE %{rlibdir}/%{packname}/R %doc %{rlibdir}/%{packname}/CITATION %doc %{rlibdir}/%{packname}/doc %doc %{rlibdir}/%{packname}/model %doc %{rlibdir}/%{packname}/NEWS %doc %{rlibdir}/%{packname}/validateInstallOpenBUGS %{rlibdir}/%{packname}/INDEX