%global __brp_check_rpaths %{nil} %global packname encryptr %global packver 0.1.3 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 0.1.3 Release: 3%{?dist}%{?buildtag} Summary: Easily Encrypt and Decrypt Data Frame/Tibble Columns or Filesusing RSA Public/Private Keys License: MIT + 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-dplyr BuildRequires: R-CRAN-knitr BuildRequires: R-CRAN-openssl BuildRequires: R-CRAN-purrr BuildRequires: R-CRAN-readr BuildRequires: R-CRAN-rlang Requires: R-CRAN-dplyr Requires: R-CRAN-knitr Requires: R-CRAN-openssl Requires: R-CRAN-purrr Requires: R-CRAN-readr Requires: R-CRAN-rlang %description It is important to ensure that sensitive data is protected. This straightforward package is aimed at the end-user. Strong RSA encryption using a public/private key pair is used to encrypt data frame or tibble columns. A public key can be shared to allow others to encrypt data to be sent to you. This is particularly aimed a healthcare settings so patient data can be pseudonymised. %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}