5 %bcond_without tests # do not perform "make test"
7 %include /usr/lib/rpm/macros.perl
9 %define pnam Krb5-Simple
10 Summary: Authen::Krb5::Simple - Basic user authentication using Kerberos 5
11 Summary(pl.UTF-8): Authen::Krb5::Simple - Autentykacja przy pomocy Kerberosa 5
12 Name: perl-Authen-Krb5-Simple
15 License: GPL v1+ or Artistic
16 Group: Development/Languages/Perl
17 Source0: http://www.cpan.org/modules/by-module/Authen/%{pdir}-%{pnam}-%{version}.tar.gz
18 # Source0-md5: 209812d935d778c0a22247b5159bc0f6
19 URL: http://search.cpan.org/dist/Authen-Krb5-Simple/
20 BuildRequires: heimdal-devel
21 BuildRequires: perl-devel >= 1:5.8.0
22 BuildRequires: rpm-perlprov >= 4.1-13
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 The Authen::Krb5::Simple module provides a means to authenticate a
27 user/password using Kerberos 5 protocol. The module's authenticate
28 function takes a username (or user@kerberos_realm) and a password, and
29 authenticates that user using the local Kerberos 5 installation. It
30 was initially created to allow perl scripts to perform authentication
31 against a Microsoft Active Directory (AD) server configured to accept
32 Kerberos client requests.
34 It is important to note: This module only performs simple
35 authentication. It does not get, grant, use, or retain any kerberos
36 tickets. It will check user credentials against the Kerberos server
37 (as configured on the local system) each time the authenticate method
40 #%description -l pl.UTF-8
43 %setup -q -n %{pdir}-%{pnam}-%{version}
46 %{__perl} Makefile.PL \
51 OPTIMIZE="%{rpmcflags}"
53 %{?with_tests:%{__make} test}
56 rm -rf $RPM_BUILD_ROOT
58 %{__make} pure_install \
59 DESTDIR=$RPM_BUILD_ROOT
62 rm -rf $RPM_BUILD_ROOT
65 %defattr(644,root,root,755)
67 %dir %{perl_vendorarch}/Authen/Krb5
68 %{perl_vendorarch}/Authen/Krb5/Simple.pm
69 %dir %{perl_vendorarch}/auto/Authen/Krb5
70 %dir %{perl_vendorarch}/auto/Authen/Krb5/Simple
71 %attr(755,root,root) %{perl_vendorarch}/auto/Authen/Krb5/Simple/Simple.so