commit f04c73ad41c3da1fc7fba691629e6e7ca248f3b923be487452b2071f1184c2df Author: Pascal Bleser Date: Mon Nov 1 23:55:59 2010 +0000 0.24 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-HTTP-Proxy?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/HTTP-Proxy-0.24.tar.gz b/HTTP-Proxy-0.24.tar.gz new file mode 100644 index 0000000..4807ccd --- /dev/null +++ b/HTTP-Proxy-0.24.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8c9105d92018d5337fb5112eeadcd52f494c41d70b7f237b0a94a36a1902a1c8 +size 70018 diff --git a/perl-HTTP-Proxy.changes b/perl-HTTP-Proxy.changes new file mode 100644 index 0000000..73adc2a --- /dev/null +++ b/perl-HTTP-Proxy.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Mon Nov 1 23:55:43 UTC 2010 - pascal.bleser@opensuse.org + +- initial package (0.24) + diff --git a/perl-HTTP-Proxy.spec b/perl-HTTP-Proxy.spec new file mode 100644 index 0000000..79b208a --- /dev/null +++ b/perl-HTTP-Proxy.spec @@ -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} +