File perl-Apache-Filter.spec of Package perl-Apache-Filter

#
# spec file for package perl-Apache-Filter (Version 1.024)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           perl-Apache-Filter
BuildRequires:  apache2-devel apache2-mod_perl libapr-util1-devel pcre-devel
Version:        1.024
Release:        211
Provides:       Apache-Filter
Requires:       apache
Requires:       apache2-mod_perl perl-URI
Requires:       perl = %{perl_version}
Conflicts:      perlmod
AutoReqProv:    on
Group:          Development/Libraries/Perl
License:        Artistic License
Url:            http://cpan.org/modules/by-module/Apache/
Summary:        Alter the output of previous handlers
Source:         Apache-Filter-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
In basic operation, each of the handlers Filter1, Filter2, and Filter3
will make a call to $r->filter_input(), which will return a filehandle.
 For Filter1, the filehandle points to the requested file. For Filter2,
the filehandle contains whatever Filter1 wrote to STDOUT. For Filter3,
it contains whatever Filter3 wrote to STDOUT. The output of Filter3
goes directly to the browser.

Note that the modules Filter1, Filter2, and Filter3 are listed in
forward order, in contrast to the reverse-order listing of
Apache::OutputChain.

When you've got this module, you can use the same handler both as a
stand-alone handler, and as an element in a chain. Just make sure that
whenever you're chaining, all the handlers in the chain are "Filter-
aware," i.e. they each call $r->filter_register() exactly once, before
they start printing to STDOUT. There should be almost no overhead for
doing this when there's only one element in the chain.



Authors:
--------
    Ken Williams <ken@forum.swarthmore.edu>

%prep 
%setup -q -n Apache-Filter-%{version}

%build
export APACHE=/usr/sbin/httpd2
perl Makefile.PL
make

%install
export APACHE=/usr/sbin/httpd2
%perl_make_install
%perl_process_packlist

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc Changes README
%doc %{_mandir}/man?/*
%{perl_vendorlib}/Apache
%{perl_vendorarch}/auto/Apache
/var/adm/perl-modules/%{name}

%changelog
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Jan 10 2006 anicka@suse.cz
- update to 1.024
- fix neededforbuild
* Wed Sep 28 2005 dmueller@suse.de
- add norootforbuild
* Fri Jul 29 2005 mjancar@suse.cz
- update to 1.023
* Tue Aug 17 2004 ro@suse.de
- updated requires
* Mon Jun 21 2004 ro@suse.de
- build using apache2
* Fri Aug 22 2003 mjancar@suse.cz
- require the perl version we build with
* Mon Jul 21 2003 mjancar@suse.cz
- adapt to perl-5.8.1
- use %%perl_process_packlist
* Tue Jun 17 2003 mjancar@suse.cz
- update to 1.022
- fix filelist
* Tue May 20 2003 mjancar@suse.cz
- remove unpackaged files
* Mon Jul 22 2002 prehak@suse.cz
- doesn't require any specific apache version,
  simply require apache [#16775]
* Tue Jul 02 2002 mls@suse.de
- remove race in .packlist generation
* Mon Dec 17 2001 cihlar@suse.cz
- update to 1.019:
  * bugfix release
- added %%clean
* Mon Nov 05 2001 poeml@suse.de
- use apache-devel-packages macro in #neededforbuild
  (expat.rpm is needed by apxs)
* Wed Mar 28 2001 rolf@suse.de
- update to 1.016
* Fri Feb 23 2001 ro@suse.de
- changed neededforbuild <apache> to <apache apache-devel>
* Fri Nov 17 2000 rolf@suse.de
- extracted from perlmod package
openSUSE Build Service is sponsored by