commit f136341bfb1351ea24f9e188582b879a17294603 Author: dogsheng <960055655@qq.com> Date: Tue Nov 19 11:52:39 2019 +0800 Package init diff --git a/NTLM-1.09.tar.gz b/NTLM-1.09.tar.gz new file mode 100644 index 0000000..6b8c971 Binary files /dev/null and b/NTLM-1.09.tar.gz differ diff --git a/perl-NTLM.spec b/perl-NTLM.spec new file mode 100644 index 0000000..24facca --- /dev/null +++ b/perl-NTLM.spec @@ -0,0 +1,51 @@ +Name: perl-NTLM +Version: 1.09 +Release: 20 +Summary: An NTLM authentication module +License: GPL+ or Artistic +URL: https://metacpan.org/release/NTLM +Source0: https://cpan.metacpan.org/authors/id/N/NB/NBEBOUT/NTLM-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl-generators perl(ExtUtils::MakeMaker) perl(Digest::HMAC_MD5) +BuildRequires: perl(Test::More) perl(Test::Pod) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +This module implements the NTLM authentication mechanism. +It can be used to perform NTLM style authentication for any desired protocol. + +%package help +Summary: Documentation for perl-NTLM + +%description help +Documentation for perl-NTLM. + +%prep +%autosetup -n NTLM-%{version} -p1 + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +%make_build + +%install +make pure_install PERL_INSTALL_ROOT=%buildroot +find %buildroot -type f -name .packlist -exec rm -f {} \; +find %buildroot -depth -type d -exec rmdir {} 2>/dev/null \; + +%{__chmod} -Rf a+rX,u+w,g-w,o-w %buildroot/* + +%check +make test + +%files +%{perl_vendorlib}/* +%exclude %{_libdir}/perl5/perllocal.pod + +%files help +%doc Changes README +%{_mandir}/man3/* + + +%changelog +* Fri Oct 25 2019 Zaiwang Li - 1.09-20 +- Init Package