%global __brp_check_rpaths %{nil} %global packname ApacheLogProcessor %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: Process the Apache Web Server Log Files License: LGPL-3 | 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-foreach BuildRequires: R-parallel BuildRequires: R-CRAN-doParallel BuildRequires: R-utils BuildRequires: R-CRAN-stringr Requires: R-CRAN-foreach Requires: R-parallel Requires: R-CRAN-doParallel Requires: R-utils Requires: R-CRAN-stringr %description Provides capabilities to process Apache HTTPD Log files.The main functionalities are to extract data from access and error log files to data frames. %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}