%global __brp_check_rpaths %{nil} %global packname spsh %global packver 1.1.0 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 1.1.0 Release: 3%{?dist}%{?buildtag} Summary: Estimation and Prediction of Parameters of Various SoilHydraulic Property Models 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-DEoptim >= 2.2.4 BuildRequires: R-CRAN-pracma >= 2.1.4 BuildRequires: R-CRAN-FME >= 1.3.5 BuildRequires: R-CRAN-hypergeo >= 1.2.13 BuildRequires: R-CRAN-lhs >= 0.16.0 BuildRequires: R-CRAN-Rdpack Requires: R-CRAN-DEoptim >= 2.2.4 Requires: R-CRAN-pracma >= 2.1.4 Requires: R-CRAN-FME >= 1.3.5 Requires: R-CRAN-hypergeo >= 1.2.13 Requires: R-CRAN-lhs >= 0.16.0 Requires: R-CRAN-Rdpack %description Estimates model parameters of soil hydraulic property functions by inverting measured data. A wide range of hydraulic models, weighting schemes, global optimization algorithms, Markov chain Monte Carlo samplers, and extended statistical analyses of results are provided. Prediction of soil hydraulic property model parameters and common soil properties using pedotransfer functions is facilitated. Parameter estimation is based on identically and independentally distributed (weighted) model residuals, and simple model selection criteria (Hoege, M., Woehling, T., and Nowak, W. (2018) ) can be calculated. The included models are the van Genuchten-Mualem in its unimodal, bimodal and trimodal form, the the Kosugi 2 parametric-Mualem model, and the Fredlund-Xing model. All models can be extended to account for non-capillary water storage and conductivity (Weber, T.K.D., Durner, W., Streck, T. and Diamantopoulos, E. (2019) . The isothermal vapour conductivity (Saito, H., Simunek, J. and Mohanty, B.P. (2006) ) is calculated based on volumetric air space and a selection of different tortuosity models: (Grable, A.R., Siemer, E.G. (1968) , Lai, S.H., Tiedje J.M., Erickson, E. (1976) , Moldrup, P., Olesen, T., Rolston, D.E., and Yamaguchi, T. (1997) , Moldrup, P., Olesen, T., Yoshikawa, S., Komatsu, T., and Rolston, D.E. (2004) , Moldrup, P., Olesen, T., Yoshikawa, S., Komatsu, T., and Rolston, D.E. (2005) , Millington, R.J., Quirk, J.P. (1961) , Penman, H.L. (1940) , and Xu, X, Nieber, J.L. Gupta, S.C. (1992) ). %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}