%global __brp_check_rpaths %{nil} %global packname physiology %global packver 1.2.1 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 1.2.1 Release: 3%{?dist}%{?buildtag} Summary: Calculate physiologic characteristics of awake and anesthetizedadults, children and infants License: GPL-3 URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel >= 3.4 Requires: R-core >= 3.4 BuildRequires: R-CRAN-Rcpp Requires: R-CRAN-Rcpp %description A variety of formulae are provided for estimation of physiologic characteristics of infants, children, and adults. Calculations include: body surface area, ideal weight, airway dead-space, the alveolar gas equation, and GFR. Each formula is referenced to the original publication. Future functions will cover more material with a focus on anaesthesia, critical care and peri-operative medicine. %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 %dir %{rlibdir}/%{packname} %doc %{rlibdir}/%{packname}/html %{rlibdir}/%{packname}/Meta %{rlibdir}/%{packname}/help %{rlibdir}/%{packname}/data %{rlibdir}/%{packname}/DESCRIPTION %{rlibdir}/%{packname}/NAMESPACE %doc %{rlibdir}/%{packname}/NEWS.md %{rlibdir}/%{packname}/R %doc %{rlibdir}/%{packname}/doc %doc %{rlibdir}/%{packname}/WORDLIST %{rlibdir}/%{packname}/INDEX %{rlibdir}/%{packname}/libs