# Conditional build:
%bcond_without tests # do not perform "make test"
#
-%include /usr/lib/rpm/macros.perl
%define pdir Crypt
%define pnam Blowfish
Summary: Crypt::Blowfish - Perl Blowfish encryption module
Summary(pl.UTF-8): Crypt::Blowfish - moduĊ Perla dla szyfrowania Blowfish
Name: perl-Crypt-Blowfish
-Version: 2.10
-Release: 1
+Version: 2.14
+Release: 6
License: BSD-like (see COPYRIGHT)
Group: Development/Languages/Perl
-Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5: 15b53308df3b29a62a9f2f718aace19a
-URL: http://search.cpan.org/dist/Crypt-Blowfish/
+Source0: http://www.cpan.org/modules/by-module/Crypt/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 792b43cd4e49d2c2cf4a9f6990ff7d1b
+URL: https://metacpan.org/dist/Crypt-Blowfish
+%{?with_tests:BuildRequires: perl-Crypt-CBC >= 1.22}
BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: rpmbuild(macros) >= 1.745
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%doc Changes COPYRIGHT README
%{perl_vendorarch}/Crypt/Blowfish.pm
%dir %{perl_vendorarch}/auto/Crypt/Blowfish
-%{perl_vendorarch}/auto/Crypt/Blowfish/*.bs
-%attr(755,root,root) %{perl_vendorarch}/auto/Crypt/Blowfish/*.so
-%{_mandir}/man3/*
+%attr(755,root,root) %{perl_vendorarch}/auto/Crypt/Blowfish/Blowfish.so
+%{_mandir}/man3/Crypt::Blowfish.3pm*