R-openssl/R-openssl.spec

155 lines
4.9 KiB
RPMSpec
Raw Normal View History

2020-07-25 00:33:59 +00:00
%global packname openssl
%global packver 1.4.2
2018-03-23 02:10:58 +00:00
%global rlibdir %{_libdir}/R/library
# Skip examples or tests that use the network.
%bcond_with network
# jose depends on this package.
%global with_doc 0
2018-03-23 02:10:58 +00:00
Name: R-%{packname}
2020-07-25 00:33:59 +00:00
Version: 1.4.2
Release: 3%{?dist}
2018-03-23 02:10:58 +00:00
Summary: Toolkit for Encryption, Signatures and Certificates Based on OpenSSL
License: MIT
2019-01-23 00:55:24 +00:00
URL: https://CRAN.R-project.org/package=%{packname}
2020-07-25 00:33:59 +00:00
Source0: https://cran.r-project.org/src/contrib/%{packname}_%{packver}.tar.gz
2018-03-23 02:10:58 +00:00
# Here's the R view of the dependencies world:
# Depends:
2019-02-16 09:47:19 +00:00
# Imports: R-askpass
2020-07-25 00:33:59 +00:00
# Suggests: R-testthat >= 2.1.0, R-digest, R-knitr, R-rmarkdown, R-jsonlite, R-jose, R-sodium
2018-03-23 02:10:58 +00:00
# LinkingTo:
# Enhances:
2018-07-31 03:34:11 +00:00
BuildRequires: R-devel
BuildRequires: tex(latex)
2018-03-23 02:10:58 +00:00
BuildRequires: openssl-devel >= 1.0.1
2019-02-16 09:47:19 +00:00
BuildRequires: R-askpass
2020-07-25 00:33:59 +00:00
BuildRequires: R-testthat >= 2.1.0
BuildRequires: R-sodium
2018-03-23 02:10:58 +00:00
%if %{with_doc}
2018-07-31 03:34:11 +00:00
BuildRequires: R-digest
BuildRequires: R-knitr
BuildRequires: R-rmarkdown
BuildRequires: R-jsonlite
BuildRequires: R-jose
2019-06-04 01:52:30 +00:00
BuildRequires: glyphicons-halflings-fonts
2018-03-23 02:10:58 +00:00
%endif
%description
2019-03-23 00:21:18 +00:00
Bindings to OpenSSL libssl and libcrypto, plus custom SSH key parsers.
2019-06-04 01:45:08 +00:00
Supports RSA, DSA and EC curves P-256, P-384, P-521, and curve25519.
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
2018-03-23 02:10:58 +00:00
encryption; RSA for asymmetric (public key) encryption or EC for Diffie
Hellman. High-level envelope functions combine RSA and AES for encrypting
2019-06-04 01:45:08 +00:00
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.
2018-03-23 02:10:58 +00:00
%prep
%setup -q -c -n %{packname}
2020-07-25 00:33:59 +00:00
%if %{without network}
2018-03-23 02:10:58 +00:00
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
2020-07-25 00:33:59 +00:00
%if %{without network}
2018-03-23 02:10:58 +00:00
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 Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.2-3
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2020-07-25 00:33:59 +00:00
* Tue Jul 21 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.4.2-1
- Update to latest version
* Sun Jun 7 2020 Tom Callaway <spot@fedoraproject.org> - 1.4.1-3
- turn off with_doc to break loop
- rebuild for R 4
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2019-08-17 05:41:02 +00:00
* Sat Aug 17 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.4.1-1
- Update to latest version
* Sun Aug 11 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.4-3
- Remove explicit dependencies provided by automatic dependency generator
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2019-06-04 01:52:30 +00:00
* Mon Jun 03 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.4-1
2019-06-04 01:45:08 +00:00
- Update to latest version
2019-06-04 01:52:30 +00:00
- Enable doc building
2019-06-04 01:45:08 +00:00
2019-03-23 00:21:18 +00:00
* Fri Mar 22 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.3-1
- Update to latest version
2019-03-03 09:23:48 +00:00
* Sun Mar 03 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.2.2-1
- Update to latest version
2019-02-16 09:47:19 +00:00
* Sat Feb 16 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.2.1-1
- Update to latest version
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2018-07-31 03:34:11 +00:00
* Mon Jul 30 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.0.2-1
- Update to latest version
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2018-05-17 17:03:41 +00:00
* Thu May 17 2018 Tom Callaway <spot@fedoraproject.org> - 1.0.1-2
- rebuild for R 3.5.0
2018-03-23 02:10:58 +00:00
* Sat Mar 17 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.0.1-1
- initial package for Fedora