[Erp5-report] r9919 - /spec/mandriva/2006.0/python-mechanize/

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Sep 14 17:20:11 CEST 2006


Author: kevin
Date: Thu Sep 14 17:20:05 2006
New Revision: 9919

URL: http://svn.erp5.org?rev=9919&view=rev
Log:
New build of stable 0.1.2b version.
Add Vincent's patch to transform space char in URLs.

Added:
    spec/mandriva/2006.0/python-mechanize/mechanize-0.1.2b-urllib2_support.patch
    spec/mandriva/2006.0/python-mechanize/python-mechanize.spec   (with props)

Added: spec/mandriva/2006.0/python-mechanize/mechanize-0.1.2b-urllib2_support.patch
URL: http://svn.erp5.org/spec/mandriva/2006.0/python-mechanize/mechanize-0.1.2b-urllib2_support.patch?rev=9919&view=auto
==============================================================================
--- spec/mandriva/2006.0/python-mechanize/mechanize-0.1.2b-urllib2_support.patch (added)
+++ spec/mandriva/2006.0/python-mechanize/mechanize-0.1.2b-urllib2_support.patch Thu Sep 14 17:20:05 2006
@@ -1,0 +1,10 @@
+--- mechanize-0.1.2b/mechanize/_urllib2_support.py	2006-05-22 00:47:15.000000000 +0200
++++ new_mechanize-0.1.2b/mechanize/_urllib2_support.py	2006-09-14 16:35:35.934437056 +0200
+@@ -80,6 +80,7 @@
+             # from the user (of urllib2, in this case).  In practice,
+             # essentially all clients do redirect in this case, so we do
+             # the same.
++            newurl = newurl.replace(' ', '%%20')
+             return Request(newurl,
+                            headers=req.headers,
+                            origin_req_host=req.get_origin_req_host(),

Added: spec/mandriva/2006.0/python-mechanize/python-mechanize.spec
URL: http://svn.erp5.org/spec/mandriva/2006.0/python-mechanize/python-mechanize.spec?rev=9919&view=auto
==============================================================================
--- spec/mandriva/2006.0/python-mechanize/python-mechanize.spec (added)
+++ spec/mandriva/2006.0/python-mechanize/python-mechanize.spec Thu Sep 14 17:20:05 2006
@@ -1,0 +1,64 @@
+%define version 0.1.2b
+%define product mechanize
+%define tarname %product-%{version}
+
+
+Summary:        Stateful programmatic web browsing in Python
+Name:           python-%product
+Version:        %version
+Release:        %mkrel 2
+Source0:        http://wwwsearch.sourceforge.net/mechanize/src/%tarname.tar.bz2
+License:        BSD
+Group:          Applications/Development/Tools
+URL:            http://wwwsearch.sourceforge.net/mechanize
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot
+BuildRequires:  python >= 2.2
+Requires:       python >= 2.2, python-ClientForm
+Patch0:         mechanize-0.1.2b-urllib2_support.patch.bz2
+
+
+%description
+Stateful programmatic web browsing, after Andy Lester's Perl module
+WWW::Mechanize.
+
+The library is layered: mechanize.Browser (stateful web browser),
+mechanize.UserAgent (configurable URL opener), plus urllib2 handlers.
+
+Features include: ftp:, http: and file: URL schemes, browser history,
+high-level hyperlink and HTML form support, HTTP cookies, HTTP-EQUIV and
+Refresh, Referer [sic] header, robots.txt, redirections, proxies, and
+Basic and Digest HTTP authentication.  mechanize's response objects are
+(lazily-) .seek()able and still work after .close().
+
+Much of the code originally derived from Perl code by Gisle Aas
+(libwww-perl), Johnny Lee (MSIE Cookie support) and last but not least
+Andy Lester (WWW::Mechanize).  urllib2 was written by Jeremy Hylton.
+
+
+%prep
+%setup -q -n %tarname
+%patch0 -p1
+
+%build
+%__python setup.py build
+
+%install
+%__rm -rf %buildroot
+%__python setup.py install -O1 --skip-build --root %buildroot --single-version-externally-managed
+
+%clean
+%__rm -rf %buildroot
+
+%files
+%defattr(755,root,root)
+%doc COPYING.txt doc.* INSTALL.txt MANIFEST.in README.*
+%py_puresitedir/%product
+%py_puresitedir/%product-%{version}-py%{pyver}.egg-info
+
+
+%changelog
+* Thu Sep 14 2006 Kevin Deldycke <kevin at nexedi.com> 0.1.2b-2mdk
+- Add patch to replace space char by their url code counterpart (thanks to Vincent)
+
+* Mon Jul 05 2006 Kevin Deldycke <kevin at nexedi.com> 0.1.2b-1mdk
+- Initial package for Mandriva 2006.0.

Propchange: spec/mandriva/2006.0/python-mechanize/python-mechanize.spec
------------------------------------------------------------------------------
    svn:executable = *




More information about the Erp5-report mailing list