%global __brp_check_rpaths %{nil} %global packname ARCensReg %global packver 2.1 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 2.1 Release: 3%{?dist}%{?buildtag} Summary: Fitting Univariate Censored Linear Regression Model withAutoregressive Errors License: GPL (>= 2) URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel Requires: R-core BuildArch: noarch BuildRequires: R-CRAN-mvtnorm BuildRequires: R-CRAN-tmvtnorm BuildRequires: R-CRAN-msm BuildRequires: R-CRAN-numDeriv BuildRequires: R-utils BuildRequires: R-graphics BuildRequires: R-stats Requires: R-CRAN-mvtnorm Requires: R-CRAN-tmvtnorm Requires: R-CRAN-msm Requires: R-CRAN-numDeriv Requires: R-utils Requires: R-graphics Requires: R-stats %description It fits an univariate left or right censored linear regression model with autoregressive errors under the normal distribution. It provides estimates and standard errors of the parameters, prediction of future observations and it supports missing values on the dependent variable. It also performs influence diagnostic through local influence for three possible perturbation schemes. %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}