%global __brp_check_rpaths %{nil} %global packname YPPE %global packver 1.0.1 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 1.0.1 Release: 3%{?dist}%{?buildtag} Summary: Yang and Prentice Model with Piecewise Exponential BaselineDistribution License: GPL (>= 2) URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel >= 3.4.0 Requires: R-core >= 3.4.0 BuildRequires: R-CRAN-rstan >= 2.18.1 BuildRequires: R-CRAN-StanHeaders >= 2.18.0 BuildRequires: R-CRAN-rstantools >= 2.0.0 BuildRequires: R-CRAN-BH >= 1.66.0 BuildRequires: R-CRAN-RcppEigen >= 0.3.3.3.0 BuildRequires: R-CRAN-Rcpp >= 0.12.0 BuildRequires: R-survival BuildRequires: R-methods BuildRequires: R-MASS BuildRequires: R-CRAN-Formula Requires: R-CRAN-rstan >= 2.18.1 Requires: R-CRAN-rstantools >= 2.0.0 Requires: R-CRAN-Rcpp >= 0.12.0 Requires: R-survival Requires: R-methods Requires: R-MASS Requires: R-CRAN-Formula %description Semiparametric modeling of lifetime data with crossing survival curves via Yang and Prentice model with piecewise exponential baseline distribution. Details about the model can be found in Demarqui and Mayrink (2019) . Model fitting carried out via likelihood-based and Bayesian approaches. The package also provides point and interval estimation for the crossing survival times. %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}