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