diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d15d059 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/openssl_1.0.1.tar.gz diff --git a/R-openssl.spec b/R-openssl.spec new file mode 100644 index 0000000..793657e --- /dev/null +++ b/R-openssl.spec @@ -0,0 +1,96 @@ +%global packname openssl +%global rlibdir %{_libdir}/R/library + +# Skip examples or tests that use the network. +%bcond_with network + +# rmarkdown is not yet available. +# jose depends on this package. +%global with_doc 0 + +Name: R-%{packname} +Version: 1.0.1 +Release: 1%{?dist} +Summary: Toolkit for Encryption, Signatures and Certificates Based on OpenSSL + +License: MIT +URL: https://cran.r-project.org/web/packages/%{packname}/index.html +Source0: https://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz + +# Here's the R view of the dependencies world: +# Depends: +# Imports: +# Suggests: R-testthat R-digest R-knitr R-rmarkdown R-jsonlite R-jose +# LinkingTo: +# Enhances: + +Suggests: R-jose +BuildRequires: R-devel tex(latex) +BuildRequires: openssl-devel >= 1.0.1 +BuildRequires: R-testthat +%if %{with_doc} +BuildRequires: R-digest R-knitr R-rmarkdown R-jsonlite R-jose +%endif + +%description +Bindings to OpenSSL libssl and libcrypto, plus custom SSH pubkey parsers. +Supports RSA, DSA and EC curves P-256, P-384 and P-521. Cryptographic +signatures can either be created and verified manually or via x509 +certificates. AES can be used in cbc, ctr or gcm mode for symmetric +encryption; RSA for asymmetric (public key) encryption or EC for Diffie +Hellman. High-level envelope functions combine RSA and AES for encrypting +arbitrary sized data. Other utilities include key generators, hash +functions (md5, sha1, sha256, etc), base64 encoder, a secure random number +generator, and 'bignum' math methods for manually performing crypto +calculations on large multibyte integers. + + +%prep +%setup -q -c -n %{packname} + +%if !%{with network} +rm %{packname}/tests/testthat/test_google.R +%endif + + +%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 + + +%check +%if !%{with network} +args="--no-examples" +%endif +%if %{with_doc} +%{_bindir}/R CMD check %{packname} $args +%else +_R_CHECK_FORCE_SUGGESTS_=0 %{_bindir}/R CMD check %{packname} --ignore-vignettes $args +%endif + + +%files +%dir %{rlibdir}/%{packname} +%doc %{rlibdir}/%{packname}/doc +%doc %{rlibdir}/%{packname}/html +%{rlibdir}/%{packname}/DESCRIPTION +%doc %{rlibdir}/%{packname}/NEWS +%license %{rlibdir}/%{packname}/LICENSE +%{rlibdir}/%{packname}/INDEX +%{rlibdir}/%{packname}/NAMESPACE +%{rlibdir}/%{packname}/Meta +%{rlibdir}/%{packname}/R +%{rlibdir}/%{packname}/help +%{rlibdir}/%{packname}/cacert.pem +%dir %{rlibdir}/%{packname}/libs +%{rlibdir}/%{packname}/libs/%{packname}.so + + +%changelog +* Sat Mar 17 2018 Elliott Sales de Andrade - 1.0.1-1 +- initial package for Fedora diff --git a/README.md b/README.md deleted file mode 100644 index 8fe2bef..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# R-openssl - -The R-openssl package \ No newline at end of file diff --git a/sources b/sources new file mode 100644 index 0000000..3d71646 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (openssl_1.0.1.tar.gz) = e5a599c5f5d31f3a777e6a2e6ad2c0b32689d36408b675f99ca9aadffd6d81ad6b0af0022fa29c5540d7e86c11786f75b7be0414df15b9ed77dc33a6abe5ddd2