%global __brp_check_rpaths %{nil} %global packname piratings %global packver 0.1.9 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 0.1.9 Release: 3%{?dist}%{?buildtag} Summary: Calculate Pi Ratings for Teams Competing in Sport Matches License: GPL-2 URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel >= 2.10 Requires: R-core >= 2.10 BuildArch: noarch BuildRequires: R-methods BuildRequires: R-CRAN-ggplot2 Requires: R-methods Requires: R-CRAN-ggplot2 %description Calculate and optimize dynamic performance ratings of association football teams competing in matches, in accordance with the method used in the research paper "Determining the level of ability of football teams by dynamic ratings based on the relative discrepancies in scores between adversaries", by Constantinou and Fenton (2013) This dynamic rating system has proven to provide superior results for predicting association football outcomes. %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}