%global __brp_check_rpaths %{nil} %global packname lifelogr %global packver 0.1.0 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 0.1.0 Release: 3%{?dist}%{?buildtag} Summary: Life Logging License: GPL (>= 2) 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 BuildArch: noarch BuildRequires: R-CRAN-ggplot2 BuildRequires: R-CRAN-shiny BuildRequires: R-CRAN-dplyr BuildRequires: R-CRAN-lubridate BuildRequires: R-CRAN-modelr BuildRequires: R-CRAN-stringr BuildRequires: R-CRAN-tidyr BuildRequires: R-grDevices BuildRequires: R-CRAN-lazyeval BuildRequires: R-stats BuildRequires: R-CRAN-R6 BuildRequires: R-CRAN-fitbitScraper BuildRequires: R-CRAN-tibble BuildRequires: R-CRAN-plyr Requires: R-CRAN-ggplot2 Requires: R-CRAN-shiny Requires: R-CRAN-dplyr Requires: R-CRAN-lubridate Requires: R-CRAN-modelr Requires: R-CRAN-stringr Requires: R-CRAN-tidyr Requires: R-grDevices Requires: R-CRAN-lazyeval Requires: R-stats Requires: R-CRAN-R6 Requires: R-CRAN-fitbitScraper Requires: R-CRAN-tibble Requires: R-CRAN-plyr %description Provides a framework for combining self-data (exercise, sleep, etc.) from multiple sources (fitbit, Apple Health), creating visualizations, and experimenting on onself. %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}