From 48e569372108db87bd307c319df70153543c28b225e28b95df044ac36631138a Mon Sep 17 00:00:00 2001 From: OBS User autobuild Date: Fri, 2 Jul 2010 14:37:40 +0000 Subject: [PATCH] Accepting request 42322 from devel:languages:python Copy from devel:languages:python/python-mechanize based on submit request 42322 from user coolo OBS-URL: https://build.opensuse.org/request/show/42322 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mechanize?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + mechanize-0.1.7b.tar.gz | 3 ++ python-mechanize.changes | 15 +++++++++ python-mechanize.spec | 71 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 113 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 mechanize-0.1.7b.tar.gz create mode 100644 python-mechanize.changes create mode 100644 python-mechanize.spec 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/mechanize-0.1.7b.tar.gz b/mechanize-0.1.7b.tar.gz new file mode 100644 index 0000000..f3292f9 --- /dev/null +++ b/mechanize-0.1.7b.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e58a2f23e607634c29c0e2067415f365aa448c3400f0d615c0f2fa53c90640c3 +size 240993 diff --git a/python-mechanize.changes b/python-mechanize.changes new file mode 100644 index 0000000..7e2c3e6 --- /dev/null +++ b/python-mechanize.changes @@ -0,0 +1,15 @@ +------------------------------------------------------------------- +Tue Feb 12 00:00:00 UTC 2008 - poeml@suse.de + +- update to 0.1.7b + +------------------------------------------------------------------- +Fri Jan 19 00:00:00 UTC 2007 - judas_iscariote@shorewall.net + +- update + +------------------------------------------------------------------- +Wed Aug 30 00:00:00 UTC 2006 - jfunk@funktronics.ca + +- Initial release + diff --git a/python-mechanize.spec b/python-mechanize.spec new file mode 100644 index 0000000..324a77d --- /dev/null +++ b/python-mechanize.spec @@ -0,0 +1,71 @@ +# +# spec file for package python-mechanize (Version 0.1.7) +# +# Copyright (c) 2010 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/ +# + + +%define modname mechanize + +Name: python-mechanize +Version: 0.1.7 +Release: 1 +%define extver b +Summary: Stateful programmatic web browsing +Url: http://wwwsearch.sourceforge.net/mechanize/ +License: BSD +Group: Development/Libraries/Python +Source: %{modname}-%{version}%{extver}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%{py_requires} +Requires: python-clientform python-beautifulsoup +BuildRequires: python-devel python-setuptools + +%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 %{modname}-%{version}%{extver} + +%build +export CFLAGS="$RPM_OPT_FLAGS" +python setup.py build + +%install +rm -rf %{buildroot} +python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES + +%clean +rm -rf %{buildroot} + +%files -f INSTALLED_FILES +%defattr(-,root,root) +%doc examples COPYING.txt ChangeLog.txt GeneralFAQ.html README.html README.txt +%doc doc.html + +%changelog