perl-Authen-Krb5-Simple-vl.spec 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. %define real_name Authen-Krb5-Simple
  2. Summary: Basic user authentication using Kerberos 5
  3. Name: perl-%{real_name}
  4. Version: 0.43
  5. Release: 2%{?_dist_release}
  6. License: Artistic or GPL+
  7. Group: Development/Libraries
  8. URL: http://search.cpan.org/dist/Authen-Krb5-Simple/
  9. Source: http://search.cpan.org/CPAN/authors/id/D/DS/DSTUART/Authen-Krb5-Simple-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  11. BuildRequires: perl
  12. BuildRequires: perl(ExtUtils::MakeMaker)
  13. BuildRequires: perl(Test::More)
  14. BuildRequires: krb5-devel
  15. Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
  16. %description
  17. The Authen::Krb5::Simple module provides a means to authenticate a
  18. user/password using Kerberos 5 protocol. The module's authenticate function
  19. takes a username (or user@kerberos_realm) and a password, and authenticates
  20. that user using the local Kerberos 5 installation. It was initially created to
  21. allow perl scripts to perform authentication against a Microsoft Active
  22. Directory (AD) server configured to accept Kerberos client requests.
  23. It is important to note: This module only performs simple authentication. It
  24. does not get, grant, use, or retain any kerberos tickets. It will check user
  25. credentials against the Kerberos server (as configured on the local system)
  26. each time the authenticate method is called.
  27. %prep
  28. %setup -q -n %{real_name}-%{version}
  29. %build
  30. perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
  31. make %{?_smp_mflags}
  32. %install
  33. rm -rf %{buildroot}
  34. make pure_install DESTDIR=%{buildroot}
  35. find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
  36. find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null
  37. %{_fixperms} %{buildroot}
  38. %check
  39. make test
  40. %clean
  41. rm -rf %{buildroot}
  42. %files
  43. %defattr(-, root, root, -)
  44. %doc Changes MANIFEST README
  45. %{perl_vendorarch}/*
  46. %{_mandir}/man3/*
  47. %changelog
  48. * Mon Dec 22 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.43-2
  49. - rebuilt with perl 5.16.3
  50. * Sat Mar 10 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.43-1
  51. - initial build for Vine Linux