forked from pool/perl-Apache-AuthCookie
124 lines
4.1 KiB
RPMSpec
124 lines
4.1 KiB
RPMSpec
![]() |
#
|
||
|
# spec file for package perl-Apache-AuthCookie (Version 3.10)
|
||
|
#
|
||
|
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||
|
# This file and all modifications and additions to the pristine
|
||
|
# package are under the same license as the package itself.
|
||
|
#
|
||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||
|
#
|
||
|
|
||
|
# norootforbuild
|
||
|
|
||
|
Name: perl-Apache-AuthCookie
|
||
|
BuildRequires: apache2-mod_perl
|
||
|
URL: http://search.cpan.org/~mschout/Apache-AuthCookie
|
||
|
License: Artistic License
|
||
|
Group: Development/Languages/Perl
|
||
|
Requires: apache2-mod_perl >= 2
|
||
|
Autoreqprov: on
|
||
|
Summary: Apache/Perl Authentication and Authorization via cookies
|
||
|
Version: 3.10
|
||
|
Release: 1
|
||
|
Source: Apache-AuthCookie-%{version}.tar.gz
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
|
||
|
%description
|
||
|
Apache::AuthCookie allows you to intercept a user's first
|
||
|
unauthenticated access to a protected document. The user will be
|
||
|
presented with a custom form where they can enter authentication
|
||
|
credentials. The credentials are posted to the server where AuthCookie
|
||
|
verifies them and returns a session key.
|
||
|
|
||
|
The session key is returned to the user's browser as a cookie. As a
|
||
|
cookie, the browser will pass the session key on every subsequent
|
||
|
accesses. AuthCookie will verify the session key and re-authenticate
|
||
|
the user.
|
||
|
|
||
|
All you have to do is write a custom module that inherits from
|
||
|
AuthCookie.
|
||
|
|
||
|
|
||
|
|
||
|
Authors:
|
||
|
--------
|
||
|
Michael Schout <mschout@gkg.net>
|
||
|
Ken Williams <ken@forum.swarthmore.edu>
|
||
|
|
||
|
%prep
|
||
|
%setup -n Apache-AuthCookie-%{version}
|
||
|
# ---------------------------------------------------------------------------
|
||
|
|
||
|
%build
|
||
|
perl Makefile.PL
|
||
|
make
|
||
|
# ---------------------------------------------------------------------------
|
||
|
|
||
|
%install
|
||
|
rm -rf $RPM_BUILD_ROOT
|
||
|
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
||
|
%perl_process_packlist
|
||
|
|
||
|
%clean
|
||
|
rm -rf $RPM_BUILD_ROOT
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%doc Changes README README.modperl2
|
||
|
%doc %{_mandir}/man?/Apache::AuthCookie.3pm.gz
|
||
|
%doc %{_mandir}/man?/Apache2::AuthCookie.3pm.gz
|
||
|
%dir %{perl_vendorlib}/Apache
|
||
|
%dir %{perl_vendorlib}/Apache/AuthCookie
|
||
|
%dir %{perl_vendorlib}/Apache2
|
||
|
%{perl_vendorlib}/Apache/AuthCookie.pm
|
||
|
%{perl_vendorlib}/Apache/AuthCookie/Util.pm
|
||
|
%{perl_vendorlib}/Apache2/AuthCookie.pm
|
||
|
%dir %{perl_vendorarch}/auto/Apache
|
||
|
%dir %{perl_vendorarch}/auto/Apache/AuthCookie
|
||
|
%{perl_vendorarch}/auto/Apache/AuthCookie/.packlist
|
||
|
/var/adm/perl-modules/%{name}
|
||
|
|
||
|
%changelog -n perl-Apache-AuthCookie
|
||
|
* Thu Jul 13 2006 - cwh@suse.de
|
||
|
Version: 3.10
|
||
|
- Bug Fix: when copying user from prev request, check that $r->prev
|
||
|
is defined, not just that $r->is_initial_request is true.
|
||
|
Version: 3.09
|
||
|
- POD doc fixes.
|
||
|
- MP2: remove _check_request_req() - this was only necessary when
|
||
|
running under both MP1 and MP2. Package name change eliminates the
|
||
|
need for this.
|
||
|
- test suite converted to Test::More style test suites.
|
||
|
- descriptive test descriptions added
|
||
|
- make login() stash credentials in $r->pnotes("${AuthName}Creds") so
|
||
|
that the login form can access the user-supplied credentials if the
|
||
|
login fails.
|
||
|
- bug fix: use of Apache2::URI::unescape_url() does not handle
|
||
|
'+' to ' ' conversion. This caused problems for credentials
|
||
|
that contain spaces.
|
||
|
- MP2: remove mod_perl features from "use mod_perl2" line. This is
|
||
|
no longer supported by mod_perl2.
|
||
|
- MP2: _get_form_data() - switch to CGI.pm to handle form data (fixes
|
||
|
several form data handling bugs)
|
||
|
- In a subrequest, copy $r->prev->user to $r->user (or r->connection->user
|
||
|
for MP1).
|
||
|
- remove Apache2::AuthCookie::Util - no longer necessary
|
||
|
- multi-valued form fields are now handled properly in POST -> GET conversion
|
||
|
- MP2: require CGI.pm 3.12 or later
|
||
|
* Wed Jan 25 2006 - mls@suse.de
|
||
|
- converted neededforbuild to BuildRequires
|
||
|
* Thu Sep 29 2005 - dmueller@suse.de
|
||
|
- add %%defattr
|
||
|
* Wed Sep 28 2005 - dmueller@suse.de
|
||
|
- add norootforbuild
|
||
|
* Fri Jul 29 2005 - cthiel@suse.de
|
||
|
- update to 3.08
|
||
|
- fixed %%files
|
||
|
* Mon Feb 21 2005 - cwh@suse.de
|
||
|
- updated to v3.05
|
||
|
* Tue May 25 2004 - cwh@suse.de
|
||
|
- fixed %%files
|
||
|
- fixed Requires
|
||
|
* Tue May 25 2004 - cwh@suse.de
|
||
|
- initial release
|