diff --git a/Crypt-PasswdMD5-1.40.tgz b/Crypt-PasswdMD5-1.40.tgz new file mode 100644 index 0000000..1534d41 Binary files /dev/null and b/Crypt-PasswdMD5-1.40.tgz differ diff --git a/perl-Crypt-PasswdMD5.spec b/perl-Crypt-PasswdMD5.spec new file mode 100644 index 0000000..50c1ede --- /dev/null +++ b/perl-Crypt-PasswdMD5.spec @@ -0,0 +1,50 @@ +Name: perl-Crypt-PasswdMD5 +Version: 1.4.0 +Release: 14 +Summary: Provides interoperable MD5-based crypt() functions +License: GPL+ or Artistic +URL: https://metacpan.org/release/Crypt-PasswdMD5 +Source0: https://cpan.metacpan.org/authors/id/R/RS/RSAVAGE/Crypt-PasswdMD5-1.40.tgz + +BuildArch: noarch +BuildRequires: perl-interpreter perl-generators perl(ExtUtils::MakeMaker) perl(strict) perl(warnings) +BuildRequires: perl(Digest::MD5) >= 2.53 perl(Exporter) perl(Test::More) >= 0.94 +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) perl(Digest::MD5) >= 2.53 + +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Digest::MD5\\)$ + +%description +This perl package provides MD5-based crypt() functions. + +%package help +Summary: Documents for perl-Crypt-PasswdMD5 +Requires: man info + +%description help +Documents for Package perl-Crypt-PasswdMD5 + +%prep +%autosetup -p1 -n Crypt-PasswdMD5-1.40 + +%build +perl Makefile.PL INSTALLDIRS=vendor +%make_build + +%install +make pure_install DESTDIR=%{buildroot} +find %{buildroot} -type f -name .packlist -exec rm -f {} ';' +chmod -R u+w %{buildroot}/* + +%check +%make_build test + +%files +%{perl_vendorlib}/Crypt + +%files help +%doc Changes README +%{_mandir}/man3/* + +%changelog +* Mon Mar 9 2020 Chen Dingxiao - 1.4.0-14 +- Package init