Pascal Bleser
2010-11-01 23:55:59 +00:00
committed by Git OBS Bridge
commit f04c73ad41
5 changed files with 97 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

3
HTTP-Proxy-0.24.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8c9105d92018d5337fb5112eeadcd52f494c41d70b7f237b0a94a36a1902a1c8
size 70018

5
perl-HTTP-Proxy.changes Normal file
View File

@@ -0,0 +1,5 @@
-------------------------------------------------------------------
Mon Nov 1 23:55:43 UTC 2010 - pascal.bleser@opensuse.org
- initial package (0.24)

65
perl-HTTP-Proxy.spec Normal file
View File

@@ -0,0 +1,65 @@
# vim: set sw=4 ts=4 et nu:
# norootforbuild
Name: perl-HTTP-Proxy
Version: 0.24
Release: 0
Summary: A pure Perl HTTP proxy
Source: http://search.cpan.org/CPAN/authors/id/B/BO/BOOK/HTTP-Proxy-%{version}.tar.gz
URL: http://search.cpan.org/dist/HTTP-Proxy
Group: Development/Libraries/Perl
License: Perl License
BuildRoot: %{_tmppath}/build-%{name}-%{version}
Requires: perl = %{perl_version}
BuildRequires: perl
BuildRequires: perl(Module::Build)
BuildRequires: perl(Test::More)
BuildRequires: perl(LWP::UserAgent) >= 2
BuildRequires: perl(HTTP::Daemon) >= 1.25
Requires: perl(Test::More)
Requires: perl(LWP::UserAgent) >= 2
Requires: perl(HTTP::Daemon) >= 1.25
%description
This module implements a HTTP proxy, using a HTTP::Daemon to accept client
connections, and a LWP::UserAgent to ask for the requested pages.
The most interesting feature of this proxy object is its ability to filter
the HTTP requests and responses through user-defined filters.
Once the proxy is created, with the "new()" method, it is possible to
alter its behaviour by adding so-called "filters". This is done by the
"push_filter()" method. Once the filter is ready to run, it can be
launched, with the "start()" method. This method does not normally return
until the proxy is killed or otherwise stopped.
An important thing to note is that the proxy is (except when running the
"NoFork" engine) a *forking* proxy: it doesn't support passing information
between child processes, and you can count on reliable information passing
only during a single HTTP connection (request + response).
%prep
%setup -q -n "HTTP-Proxy-%{version}"
%build
%__perl ./Build.PL
./Build
%install
./Build pure_install --destdir "%{buildroot}" --installdirs vendor
%perl_process_packlist
%check
./Build test
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc Changes README
%dir %{perl_vendorlib}/HTTP
%{perl_vendorlib}/HTTP/Proxy.pm
%{perl_vendorlib}/HTTP/Proxy
%dir %{perl_vendorarch}/auto/HTTP
%{perl_vendorarch}/auto/HTTP/Proxy
%doc %{perl_man3dir}/HTTP::Proxy.%{perl_man3ext}%{ext_man}
%doc %{perl_man3dir}/HTTP::Proxy::*.%{perl_man3ext}%{ext_man}