%define real_name CGI-Auth Summary: Simple session-based password authentication for CGI applications Name: perl-%{real_name} Version: 3.00 Release: %mkrel 3 License: BSD-like Group: Development/Perl URL: http://search.cpan.org/dist/%{real_name} Source0: http://search.cpan.org/CPAN/authors/id/C/CC/CCWALLACE/%{real_name}-%{version}.tar.bz2 BuildRequires: perl-devel #BuildRequires: perl-CGI-Simple BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %description "CGI::Auth" provides password authentication for web-based applications. It uses server-based session files which are referred to by a parameter in all links and forms inside the scripts guarded by "CGI::Auth". At the beginning of each script, a "CGI::Auth" object should be created and its "check" method called. When this happens, "check" checks for a 'session_file' CGI parameter. If that parameter exists and has a matching session file in the session directory, "check" returns, and the rest of the script can execute. If the session file parameter or the file itself doesn't exist, "check" presents the user with a login form and exits the script. The login form will then be submitted to the same script (specified in "-formaction"). When "check" is called this time, it verifies the user's login information in the userfile, creates a session file and provides the session file parameter to the rest of the script. %prep %setup -q -n %{real_name}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make #%%check #make test %install rm -rf %{buildroot} %makeinstall_std %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc Changes README extra %{perl_vendorlib}/CGI/* %{_mandir}/*/* %changelog * Wed Jul 23 2008 Thierry Vignaud <tvignaud@mandriva.com> 3.00-3mdv2009.0 + Revision: 241164 - rebuild - kill re-definition of %%buildroot on Pixel's request + Olivier Blin <oblin@mandriva.com> - restore BuildRoot * Mon May 14 2007 Oden Eriksson <oeriksson@mandriva.com> 3.00-1mdv2008.0 + Revision: 26732 - disable the tests for now because of unknown iurt problems - fix deps - Import perl-CGI-Auth * Mon May 14 2007 Oden Eriksson <oeriksson@mandriva.com> 3.00-1mdv2007.1 - initial Mandriva package