perl-Authen-Smb/perl-Authen-Smb.spec

73 lines
2.4 KiB
RPMSpec
Raw Permalink Normal View History

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Authen-Smb
Version: 0.91
Release: 5mamba
Summary: Authen::Smb - Allows you to authenticate users against an NT server.
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.cpan.org/
Source: http://search.cpan.org/CPAN/authors/id/P/PM/PMKANE/Authen-Smb-%{version}.tar.gz
License: Artistic
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libperl
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: perl >= 2:5.36.0
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
find %{buildroot} -name *.so -exec chmod u+w {} \;
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
rm -f .packlist
%files -f .packlist
%defattr(-,root,root)
%changelog
* Sun Apr 16 2023 Sdk Build System <sdk@mambasoft.it> 0.91-5mamba
- rebuilt with perl 5.36.0
* Wed Nov 07 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.91-4mamba
- perl 5.16 mass rebuild
* Mon Nov 03 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.91-3mamba
- automatic rebuild by autodist
* Mon Jun 23 2008 Tiziana Ferro <tiziana.ferro@email.it> 0.91-2mamba
- fix description, license, mantainer, buildrequirements list
* Thu Apr 12 2007 Davide Madrisan <davide.madrisan@gmail.com> 0.91-1mamba
- package created by autospec