Summary: Pure-perl Lanman and NT MD4 hash functions Name: perl-Crypt-SmbHash Version: 0.12 Release: 2%{?dist} License: GPL Group: Development/Libraries Url: http://search.cpan.org/dist/Crypt-SmbHash/ Source0: http://search.cpan.org/CPAN/authors/id/B/BJ/BJKUIT/Crypt-SmbHash-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) BuildRequires: perl(Digest::MD4) Requires: perl(Digest::MD4) BuildArch: noarch %description This module generates Lanman and NT MD4 style password hashes, using perl-only code for portability. The module aids in the administration of Samba style systems. %prep %setup -q -n Crypt-SmbHash-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %{__make} %{?_smp_mflags} %check %{__make} test %install %{__rm} -rf %{buildroot} %{__make} pure_install PERL_INSTALL_ROOT=%{buildroot} /usr/bin/find %{buildroot} -type f -name .packlist -exec %{__rm} -f {} ';' /usr/bin/find %{buildroot} -type d -depth -exec /bin/rmdir {} 2>/dev/null ';' %{__chmod} -R u+w %{buildroot}/* %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root,0755) %doc Changes README %{perl_vendorlib}/Crypt/ %{_mandir}/man3/Crypt::SmbHash.3pm* %changelog * Wed Jan 25 2006 Paul Howarth 0.12-2 - Added buildreq perl(Digest::MD4) to ensure that the test suite runs in the same environment as the installed package will do (i.e. with the optional Digest::MD4 module installed) * Tue Jan 17 2006 Paul Howarth 0.12-1 - Initial build