%define _without_test 1 %define realname Catalyst-Plugin-Authentication-Store-LDAP %define abbrevname Catalyst-P-A-Store-LDAP %define name perl-%abbrevname %define modprefix Catalyst %define version 0.04 %define release %mkrel 8 Summary: Catalyst - Authentication from an LDAP Directory Name: %{name} Version: %{version} Release: %{release} License: Artistic/GPL Group: Development/Perl URL: http://search.cpan.org/dist/%{realname}/ Source: ftp://ftp.perl.org/pub/CPAN/modules/by-module/%{modprefix}/%{realname}-%{version}.tar.bz2 %if %{mdkversion} < 1010 BuildRequires: perl-devel %endif BuildRequires: perl(Catalyst::Plugin::Authentication) BuildRequires: perl(Class::Accessor::Fast) BuildRequires: perl(Net::LDAP) BuildRequires: perl(Test::More) Provides: perl-%realname Obsoletes: perl-%realname BuildArch: noarch Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %description This plugin uses Net::LDAP to let your application authenticate against an LDAP directory. It has a pretty high degree of flexibility, given the wide variation of LDAP directories and schemas from one system to another. It authenticates users in two steps: 1) A search of the directory is performed, looking for a user object that matches the username you pass. This is done with the bind credentials supplied in the "binddn" and "bindpw" configuration options. 2) If that object is found, we then re-bind to the directory as that object. Assuming this is successful, the user is Authenticated. %prep %setup -q -n %{realname}-%{version} %build %__perl Makefile.PL INSTALLDIRS=vendor %make %check %if %{!?_without_test:1}%{?_without_test:0} %__make test %endif %install rm -rf %{buildroot} %makeinstall_std %files %defattr(-,root,root) %doc TODO Changes %{perl_vendorlib}/%{modprefix} %{_mandir}/*/* %clean rm -rf %{buildroot} %changelog * Wed Oct 01 2008 Oden Eriksson <oeriksson@mandriva.com> 0.04-8mdv2009.0 + Revision: 290360 - don't run the borked test + Thierry Vignaud <tvignaud@mandriva.com> - rebuild - kill re-definition of %%buildroot on Pixel's request + Olivier Blin <oblin@mandriva.com> - restore BuildRoot + Buchan Milne <bgmilne@mandriva.org> - Allow disabling tests (which requires ldap access to ldap.openldap.org) * Sat Sep 15 2007 Guillaume Rousse <guillomovitch@mandriva.org> 0.04-5mdv2008.0 + Revision: 85930 - rebuild * Tue Aug 08 2006 Scott Karns <scottk@mandriva.org> + 2006-08-08 02:17:42 (54343) - Rebuild, spec file cleanup * Tue Aug 08 2006 Scott Karns <scottk@mandriva.org> + 2006-08-08 02:14:37 (54335) - import perl-Catalyst-P-A-Store-LDAP-0.04-3mdk * Wed May 17 2006 Scott Karns <scottk@mandriva.org> 0.04-3mdk - Updated BuildRequires - Added source URL * Fri Apr 14 2006 Rafael Garcia-Suarez <rgarciasuarez@mandriva.com> 0.04-2mdk - Abbreviate rpm name to fit in the 64 char limit * Thu Mar 23 2006 Rafael Garcia-Suarez <rgarciasuarez@mandriva.com> 0.04-1mdk - 0.04 * Tue Mar 07 2006 Buchan Milne <bgmilne@mandriva.com> 0.03-1mdk - Initial MDV RPM based on perl-Catalyst-Plugin-Authentication-LDAP