%global __brp_check_rpaths %{nil} %global packname ump %global packver 0.5-8 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 0.5.8 Release: 3%{?dist}%{?buildtag} Summary: Uniformly Most Powerful Tests License: MIT + file LICENSE URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel >= 3.0.2 Requires: R-core >= 3.0.2 BuildRequires: R-stats BuildRequires: R-graphics Requires: R-stats Requires: R-graphics %description Does uniformly most powerful (UMP) and uniformly most powerful unbiased (UMPU) tests. At present only distribution implemented is binomial distribution. Also does fuzzy tests and confidence intervals (following Geyer and Meeden, 2005, ) for the binomial distribution (one-tailed procedures based on UMP test and two-tailed procedures based on UMPU test). %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}