[Erp5-report] r8909 - in /spec/mandriva/2006.0/python-mechanize: ./ python-mechanize.spec

nobody at svn.erp5.org nobody at svn.erp5.org
Sun Jul 30 20:58:01 CEST 2006


Author: kevin
Date: Sun Jul 30 20:57:40 2006
New Revision: 8909

URL: http://svn.erp5.org?rev=8909&view=rev
Log:
First release of python mechanize rpm

Added:
    spec/mandriva/2006.0/python-mechanize/
    spec/mandriva/2006.0/python-mechanize/python-mechanize.spec

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=8909&view=auto
==============================================================================
--- spec/mandriva/2006.0/python-mechanize/python-mechanize.spec (added)
+++ spec/mandriva/2006.0/python-mechanize/python-mechanize.spec Sun Jul 30 20:57:40 2006
@@ -1,0 +1,59 @@
+%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 1
+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
+
+
+%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
+
+%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
+* Mon Jul 05 2006 Kevin Deldycke <kevin at nexedi.com> 0.1.2b-1mdk
+- Initial package for Mandriva 2006.0.




More information about the Erp5-report mailing list