%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) Name: perl-Authen-Smb Version: 0.91 Release: 4mamba Summary: Authen::Smb - Allows you to authenticate users against an NT server. Group: System/Libraries/Perl Vendor: openmamba Distribution: openmamba Packager: Aleph0 URL: http://www.cpan.org Source: http://search.cpan.org/CPAN/authors/id/P/PM/PMKANE/Authen-Smb-%{version}.tar.gz License: Artistic BuildRoot: %{_tmppath}/%{name}-%{version}-root ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: perl-devel >= %perl_major_ver ## AUTOBUILDREQ-END Requires: perl >= %perl_major_ver %description Authen::Smb allows you to authenticate a user against an NT domain. You can specify both a primary and a backup server to use for authentication. The NT names of the machines should be used for specifying servers. An authentication request will return one of four values: NTV_NO_ERROR (0) NTV_SERVER_ERROR (1) NTV_PROTOCOL_ERROR (2) NTV_LOGON_ERROR (3) NTV_NO_ERROR is the only return value possible for a successful authentication. All other return values indicate failure, of one sort or another. %prep %setup -q -n Authen-Smb-%{version} %build perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor %make %make test %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall_perl packlist=`find %{buildroot} -name .packlist` [ -z "$packlist" ] && exit 1 || cat $packlist | \ sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \ sort -u > .packlist && rm $packlist strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'` for dir in `find %{buildroot} -type d | grep $strid`; do echo "%dir ${dir#%buildroot}" >> .packlist done %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" rm -f .packlist %files -f .packlist %defattr(-,root,root) %changelog * Wed Nov 07 2012 Silvan Calarco 0.91-4mamba - perl 5.16 mass rebuild * Mon Nov 03 2008 Silvan Calarco 0.91-3mamba - automatic rebuild by autodist * Mon Jun 23 2008 Tiziana Ferro 0.91-2mamba - fix description, license, mantainer, buildrequirements list * Thu Apr 12 2007 Davide Madrisan 0.91-1mamba - package created by autospec