[packages/perl-Crypt-Eksblowfish] - descriptions and dependencies; use Module::Build directly instead of MakeMaker wrapper

qboosh qboosh at pld-linux.org
Mon Sep 15 19:57:04 CEST 2025


commit 4fb1e905dc9f220759aae03602f9dcc0bd108737
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Sep 15 19:55:29 2025 +0200

    - descriptions and dependencies; use Module::Build directly instead of MakeMaker wrapper

 perl-Crypt-Eksblowfish.spec | 61 ++++++++++++++++++++++++++++++++-------------
 1 file changed, 43 insertions(+), 18 deletions(-)
---
diff --git a/perl-Crypt-Eksblowfish.spec b/perl-Crypt-Eksblowfish.spec
index 7799f46..5821c5e 100644
--- a/perl-Crypt-Eksblowfish.spec
+++ b/perl-Crypt-Eksblowfish.spec
@@ -1,54 +1,79 @@
 #
 # Conditional build:
-%bcond_without	tests	# do not perform "make test"
+%bcond_without	tests	# unit tests
 #
 %define		pdir	Crypt
 %define		pnam	Eksblowfish
 Summary:	Crypt::Eksblowfish - the Eksblowfish block cipher
+Summary(pl.UTF-8):	Crypt::Eksblowfish - szyfr blokowy Eksblowfish
 Name:		perl-Crypt-Eksblowfish
 Version:	0.009
 Release:	16
-License:	Artistic
+# same as perl
+License:	GPL v1+ or Artistic
 Group:		Development/Languages/Perl
-Source0:	http://www.cpan.org/modules/by-module/Crypt/%{pdir}-%{pnam}-%{version}.tar.gz
+Source0:	https://www.cpan.org/modules/by-module/Crypt/%{pdir}-%{pnam}-%{version}.tar.gz
 # Source0-md5:	d2907b00cc500fc523bf86bb427d9bb8
-URL:		http://search.cpan.org/dist/Crypt-Eksblowfish/
+URL:		https://metacpan.org/dist/Crypt-Eksblowfish
+BuildRequires:	perl-ExtUtils-CBuilder >= 0.15
+BuildRequires:	perl-Module-Build
 BuildRequires:	perl-devel >= 1:5.8.0
+%if %{with tests}
+BuildRequires:	perl-Class-Mix >= 0.001
+BuildRequires:	perl-MIME-Base64 >= 2.21
+BuildRequires:	perl-Test-Simple
+%endif
 BuildRequires:	rpm-perlprov >= 4.1-13
-BuildRequires:	perl-Class-Mix
+BuildRequires:	rpmbuild(macros) >= 1.745
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Crypt::Eksblowfish - An object of this type encapsulates a keyed instance of the Eksblowfish block cipher, ready to encrypt and decrypt
+Eksblowfish is a variant of the Blowfish cipher, modified to make the
+key setup very expensive. ("Eks" stands for "expensive key schedule".)
+This doesn't make it significantly cryptographically stronger, but is
+intended to hinder brute-force attacks. It also makes it unsuitable
+for any application requiring key agility. It was designed by Niels
+Provos and David Mazieres for password hashing in OpenBSD.
+
+%description -l pl.UTF-8
+Eksblowfish to wariant szyfru Blowfish, zmodyfikowany w celu
+uczynienia tworzenia kluczy bardzo kosztownym ("Eks" jest skrótem od
+"expensive key schedule",  czyli drogiego planowania klucza). Nie
+czyni to szyfru kryptograficznie silniejszym, ale ma na celu
+utrudnienie ataków "brute force". Czyni go to też nie nadającym się do
+zastosowań wymagających elastyczności klucza. Został zaprojektowany
+przez Nielsa Provosa i Davida Mazieresa na potrzeby tworzenia skrótów
+haseł w OpenBSD.
 
 %prep
 %setup -q -n %{pdir}-%{pnam}-%{version}
 
 %build
-%{__perl} Makefile.PL \
-	INSTALLDIRS=vendor
+%{__perl} ./Build.PL \
+	--config cc="%{__cc}" \
+	--config optimize="%{rpmcflags} %{rpmcppflags}" \
+	--installdirs=vendor
 
-%{__make} \
-	CC="%{__cc}" \
-	OPTIMIZE="%{rpmcflags}"
+./Build
 
-%{?with_tests:%{__make} test}
+%{?with_tests:./Build test}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install \
-	DESTDIR=$RPM_BUILD_ROOT
+./Build install \
+	destdir=$RPM_BUILD_ROOT
 
+%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Crypt/Eksblowfish/Eksblowfish.bs
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
 %doc Changes README
-%{perl_vendorarch}/Crypt/*.pm
-%dir %{perl_vendorarch}/Crypt/Eksblowfish
-%{perl_vendorarch}/Crypt/Eksblowfish/*.pm
+%{perl_vendorarch}/Crypt/Eksblowfish.pm
+%{perl_vendorarch}/Crypt/Eksblowfish
 %dir %{perl_vendorarch}/auto/Crypt/Eksblowfish
 %attr(755,root,root) %{perl_vendorarch}/auto/Crypt/Eksblowfish/Eksblowfish.so
-%{_mandir}/man3/Crypt::*.3pm*
+%{_mandir}/man3/Crypt::Eksblowfish.3pm*
+%{_mandir}/man3/Crypt::Eksblowfish::*.3pm*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Crypt-Eksblowfish.git/commitdiff/4fb1e905dc9f220759aae03602f9dcc0bd108737



More information about the pld-cvs-commit mailing list