R-argon2/R-argon2.spec

113 lines
3.4 KiB
RPMSpec
Raw Normal View History

2018-03-27 21:53:50 +00:00
%global packname argon2
%global rlibdir %{_libdir}/R/library
Name: R-%{packname}
Version: 0.2.0
2021-06-07 16:15:22 +00:00
Release: 12%{?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}
2018-03-27 21:53:50 +00:00
Source0: https://cran.r-project.org/src/contrib/%{packname}_0.2-0.tar.gz
Patch0001: 0001-Build-against-system-libraries.patch
# Here's the R view of the dependencies world:
# Depends:
# Imports:
# Suggests:
# LinkingTo:
# Enhances:
BuildRequires: R-devel tex(latex)
BuildRequires: libargon2-devel >= 20161029
BuildRequires: libb2-devel
%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.
pushd %{packname}
rm -r src/argon2
%patch0001 -p1
popd
%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
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
* Mon Jan 25 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* 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
* 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
* 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
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* 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