[packages/perl-Crypt-PBKDF2] - new

qboosh qboosh at pld-linux.org
Mon Sep 15 21:12:27 CEST 2025


commit dd09ff442b276571a324abbe9c789e99f762b9af
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Sep 15 21:15:17 2025 +0200

    - new

 perl-Crypt-PBKDF2.spec | 88 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 88 insertions(+)
---
diff --git a/perl-Crypt-PBKDF2.spec b/perl-Crypt-PBKDF2.spec
new file mode 100644
index 0000000..0178f27
--- /dev/null
+++ b/perl-Crypt-PBKDF2.spec
@@ -0,0 +1,88 @@
+#
+# Conditional build:
+%bcond_without	tests	# unit tests
+#
+%define		pdir	Crypt
+%define		pnam	PBKDF2
+Summary:	Crypt::PBKDF2 - The PBKDF2 password hashing algorithm
+Summary(pl.UTF-8):	Crypt::PBKDF2 - algorytm skrótu haseł PBKDF2
+Name:		perl-Crypt-PBKDF2
+Version:	0.161520
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	https://www.cpan.org/modules/by-module/Crypt/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	7a0c8f86ea606125971c36e1b9e21a74
+URL:		https://metacpan.org/dist/Crypt-PBKDF2
+BuildRequires:	perl-ExtUtils-MakeMaker
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+BuildRequires:	rpmbuild(macros) >= 1.745
+%if %{with tests}
+BuildRequires:	perl-Digest >= 1.16
+BuildRequires:	perl-Digest-HMAC >= 1.01
+BuildRequires:	perl-Digest-SHA
+BuildRequires:	perl-Digest-SHA3 >= 0.22
+BuildRequires:	perl-Encode
+BuildRequires:	perl-MIME-Base64
+BuildRequires:	perl-Module-Runtime
+BuildRequires:	perl-Moo >= 2
+BuildRequires:	perl-Scalar-List-Utils
+BuildRequires:	perl-Try-Tiny >= 0.04
+BuildRequires:	perl-Type-Tiny >= 1.000005
+BuildRequires:	perl-Test-Fatal
+BuildRequires:	perl-Test-Simple
+BuildRequires:	perl-namespace-autoclean
+BuildRequires:	perl-strictures >= 2
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+PBKDF2 is a secure password hashing algorithm that uses the techniques
+of "key strengthening" to make the complexity of a brute-force attack
+arbitrarily high. PBKDF2 uses any other cryptographic hash or cipher
+(by convention, usually HMAC-SHA1, but Crypt::PBKDF2 is fully
+pluggable), and allows for an arbitrary number of iterations of the
+hashing function, and a nearly unlimited output hash size (up to 2**32
+- 1 times the size of the output of the backend hash). The hash is
+salted, as any password hash should be, and the salt may also be of
+arbitrary size.
+
+%description -l pl.UTF-8
+PBKDF to bezpieczny algorytm skrótu haseł, wykorzystujący techniki
+"wzmacniania klucza", aby znacząco zwiększyć złożoność ataków
+brute-force. PBKDF2 wykorzystuje inny skrót lub szyfr kryptograficzny
+(zwykle HMAC-SHA1, ale Crypt::PBKDF2 jest tutaj w pełni modyfikowalny)
+i pozwala na dowolną liczbę iteracji funkcji haszującej oraz niemal
+nieograniczony rozmiar skrótu na wyjściu (do 2**32 - 1 razy więcej niż
+rozmiar wyjścia użytej poniżej funkcji skrótu). Skrót jest solony, tak
+jak powinien być każdy skrót hasła, a sól może mieć dowolny rozmiar.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+	INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes
+%{perl_vendorlib}/Crypt/PBKDF2.pm
+%{perl_vendorlib}/Crypt/PBKDF2
+%{_mandir}/man3/Crypt::PBKDF2.3pm*
+%{_mandir}/man3/Crypt::PBKDF2::Hash*.3pm*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Crypt-PBKDF2.git/commitdiff/dd09ff442b276571a324abbe9c789e99f762b9af



More information about the pld-cvs-commit mailing list