%global __brp_check_rpaths %{nil} %global packname ushr %global packver 0.2.3 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 0.2.3 Release: 3%{?dist}%{?buildtag} Summary: Understanding Suppression of HIV License: MIT + file LICENSE 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-ggplot2 >= 3.1.1 BuildRequires: R-CRAN-tidyr >= 0.8.3 BuildRequires: R-CRAN-dplyr >= 0.8.0.1 BuildRequires: R-stats Requires: R-CRAN-ggplot2 >= 3.1.1 Requires: R-CRAN-tidyr >= 0.8.3 Requires: R-CRAN-dplyr >= 0.8.0.1 Requires: R-stats %description Analyzes longitudinal data of HIV decline in patients on antiretroviral therapy using the canonical biphasic exponential decay model (pioneered, for example, by work in Perelson et al. (1997) ; and Wu and Ding (1999) ). Model fitting and parameter estimation are performed, with additional options to calculate the time to viral suppression. Plotting and summary tools are also provided for fast assessment of model results. %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 %{rlibdir}/%{packname}