2018-03-27 21:53:50 +00:00
|
|
|
%global packname argon2
|
|
|
|
%global rlibdir %{_libdir}/R/library
|
|
|
|
|
2022-08-02 23:12:20 +00:00
|
|
|
# Even if I update libargon2 to 20190702 && hack it to export the symbol for secure_wipe_memory
|
|
|
|
# this package fails its tests when built against system argon2 and b2.
|
|
|
|
# Feel free to fix this so we can use the system copies.
|
|
|
|
# 2022-08-02 spot@fedoraproject.org
|
|
|
|
%bcond_without bundled
|
2018-03-27 21:53:50 +00:00
|
|
|
|
|
|
|
Name: R-%{packname}
|
2022-08-02 23:12:20 +00:00
|
|
|
Version: 0.4.0
|
2023-04-21 11:08:47 +00:00
|
|
|
Release: 3%{?dist}
|
2018-03-27 21:53:50 +00:00
|
|
|
Summary: Secure Password Hashing
|
|
|
|
|
|
|
|
License: BSD
|
2019-01-23 00:55:15 +00:00
|
|
|
URL: https://CRAN.R-project.org/package=%{packname}
|
2022-08-02 23:12:20 +00:00
|
|
|
Source0: https://cran.r-project.org/src/contrib/%{packname}_0.4-0.tar.gz
|
|
|
|
Patch0001: 0001-Build-against-system-libraries-0.4.0.patch
|
2018-03-27 21:53:50 +00:00
|
|
|
|
|
|
|
# Here's the R view of the dependencies world:
|
|
|
|
# Depends:
|
|
|
|
# Imports:
|
|
|
|
# Suggests:
|
|
|
|
# LinkingTo:
|
|
|
|
# Enhances:
|
|
|
|
|
|
|
|
BuildRequires: R-devel tex(latex)
|
2022-08-02 23:12:20 +00:00
|
|
|
%if %{with bundled}
|
|
|
|
Provides: bundled(libargon2) = 20190702
|
|
|
|
Provides: bundled(libb2)
|
|
|
|
%else
|
|
|
|
BuildRequires: libargon2-devel >= 20190702
|
2018-03-27 21:53:50 +00:00
|
|
|
BuildRequires: libb2-devel
|
2022-08-02 23:12:20 +00:00
|
|
|
%endif
|
2018-03-27 21:53:50 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Utilities for secure password hashing via the argon2 algorithm. It is a
|
|
|
|
relatively new hashing algorithm and is believed to be very secure. The
|
|
|
|
'argon2' implementation included in the package is the reference
|
|
|
|
implementation. The package also includes some utilities that should be
|
|
|
|
useful for digest authentication, including a wrapper of 'blake2b'. For
|
|
|
|
similar R packages, see sodium and 'bcrypt'. See
|
|
|
|
<https://en.wikipedia.org/wiki/Argon2> or
|
|
|
|
<https://eprint.iacr.org/2015/430.pdf> for more information.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -c -n %{packname}
|
|
|
|
|
|
|
|
# Delete bundled libraries.
|
2022-08-02 23:12:20 +00:00
|
|
|
%if !%{with bundled}
|
2018-03-27 21:53:50 +00:00
|
|
|
pushd %{packname}
|
|
|
|
rm -r src/argon2
|
|
|
|
%patch0001 -p1
|
|
|
|
popd
|
2022-08-02 23:12:20 +00:00
|
|
|
%endif
|
2018-03-27 21:53:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
%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
|
|
|
|
%{_bindir}/R CMD check %{packname}
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%dir %{rlibdir}/%{packname}
|
|
|
|
%doc %{rlibdir}/%{packname}/html
|
|
|
|
%{rlibdir}/%{packname}/DESCRIPTION
|
|
|
|
%doc %{rlibdir}/%{packname}/CITATION
|
|
|
|
%license %{rlibdir}/%{packname}/COPYRIGHTS
|
|
|
|
%license %{rlibdir}/%{packname}/LICENSE
|
|
|
|
%{rlibdir}/%{packname}/INDEX
|
|
|
|
%{rlibdir}/%{packname}/NAMESPACE
|
|
|
|
%{rlibdir}/%{packname}/Meta
|
|
|
|
%{rlibdir}/%{packname}/R
|
|
|
|
%{rlibdir}/%{packname}/help
|
|
|
|
%dir %{rlibdir}/%{packname}/libs
|
|
|
|
%{rlibdir}/%{packname}/libs/%{packname}.so
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-04-21 11:08:47 +00:00
|
|
|
* Fri Apr 21 2023 Iñaki Úcar <iucar@fedoraproject.org> - 0.4.0-3
|
|
|
|
- R-maint-sig mass rebuild
|
|
|
|
|
2023-01-18 20:14:32 +00:00
|
|
|
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
2022-08-02 23:12:20 +00:00
|
|
|
* Tue Aug 2 2022 Tom Callaway <spot@fedoraproject.org> - 0.4.0-1
|
|
|
|
- update to 0.4-0
|
|
|
|
- rebuild for R 4.2.1
|
|
|
|
- use bundled bits
|
|
|
|
|
2022-07-20 19:13:55 +00:00
|
|
|
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-15
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
2022-01-19 19:48:35 +00:00
|
|
|
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-14
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2021-07-21 16:12:41 +00:00
|
|
|
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-13
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-06-07 16:15:22 +00:00
|
|
|
* Mon Jun 7 2021 Tom Callaway <spot@fedoraproject.org> - 0.2.0-12
|
|
|
|
- rebuild for R 4.1.0
|
|
|
|
|
2021-01-25 22:48:24 +00:00
|
|
|
* Mon Jan 25 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-11
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-07-27 10:46:18 +00:00
|
|
|
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-10
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-06-03 16:30:32 +00:00
|
|
|
* Wed Jun 3 2020 Tom Callaway <spot@fedoraproject.og> - 0.2.0-9
|
|
|
|
- rebuild for R 4
|
|
|
|
|
2020-01-28 09:54:38 +00:00
|
|
|
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-09-21 06:48:45 +00:00
|
|
|
* Sat Sep 21 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.2.0-7
|
|
|
|
- rebuilt
|
|
|
|
|
2019-07-24 16:18:52 +00:00
|
|
|
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-03-18 12:25:53 +00:00
|
|
|
* Mon Mar 18 2019 Remi Collet <remi@fedoraproject.org> - 0.2.0-5
|
|
|
|
- rebuild for libargon2 new soname
|
|
|
|
|
2019-01-31 12:01:19 +00:00
|
|
|
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-07-12 19:21:09 +00:00
|
|
|
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-05-16 17:00:46 +00:00
|
|
|
* Wed May 16 2018 Tom Callaway <spot@fedoraproject.org> - 0.2.0-2
|
|
|
|
- rebuild for R 3.5.0
|
|
|
|
|
2018-03-27 21:53:50 +00:00
|
|
|
* Sat Mar 17 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> 0.2.0-1
|
|
|
|
- initial package for Fedora
|