%global __brp_check_rpaths %{nil} %global packname xesreadR %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: Read and Write XES Files 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.0 Requires: R-core >= 3.0.0 BuildArch: noarch BuildRequires: R-CRAN-bupaR BuildRequires: R-CRAN-dplyr BuildRequires: R-CRAN-XML BuildRequires: R-CRAN-xml2 BuildRequires: R-CRAN-data.table BuildRequires: R-CRAN-tidyr BuildRequires: R-CRAN-purrr BuildRequires: R-CRAN-stringr BuildRequires: R-CRAN-lubridate Requires: R-CRAN-bupaR Requires: R-CRAN-dplyr Requires: R-CRAN-XML Requires: R-CRAN-xml2 Requires: R-CRAN-data.table Requires: R-CRAN-tidyr Requires: R-CRAN-purrr Requires: R-CRAN-stringr Requires: R-CRAN-lubridate %description Read and write XES Files to create event log objects used by the 'bupaR' framework. XES (Extensible Event Stream) is the `IEEE` standard for storing and sharing event data (see for more info). %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}