%global __brp_check_rpaths %{nil} %global packname briqr %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: Interface to the 'Briq' API License: MIT + file LICENSE URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel >= 3.6.0 Requires: R-core >= 3.6.0 BuildArch: noarch BuildRequires: R-CRAN-tibble >= 2.1.1 BuildRequires: R-CRAN-jsonlite >= 1.6 BuildRequires: R-CRAN-magrittr >= 1.5 BuildRequires: R-CRAN-httr >= 1.4.0 BuildRequires: R-CRAN-dplyr >= 0.8.0.1 Requires: R-CRAN-tibble >= 2.1.1 Requires: R-CRAN-jsonlite >= 1.6 Requires: R-CRAN-magrittr >= 1.5 Requires: R-CRAN-httr >= 1.4.0 Requires: R-CRAN-dplyr >= 0.8.0.1 %description An interface to the 'Briq' API . 'Briq' is a tool that aims to promote employee engagement by helping employees recognize and reward each other. Employees can praise and thank one another (for achieving a company goal, for example) by giving virtual credits (known as 'briqs' or 'bqs') that can be redeemed for various rewards. The 'Briq' API lets you create, read, update and delete users, user groups, transactions and messages. This package provides functions that simplify getting the users, user groups and transactions of your organization into R. %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 %dir %{rlibdir}/%{packname} %doc %{rlibdir}/%{packname}/html %{rlibdir}/%{packname}/Meta %{rlibdir}/%{packname}/help %{rlibdir}/%{packname}/DESCRIPTION %license %{rlibdir}/%{packname}/LICENSE %{rlibdir}/%{packname}/NAMESPACE %doc %{rlibdir}/%{packname}/NEWS.md %{rlibdir}/%{packname}/R %{rlibdir}/%{packname}/INDEX