From 02be074793457be4db59a55cd45868a58341e2c1 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Aug 22 2019 23:42:50 +0000 Subject: Update to 0.4.3. Fixs bug #1742992 Drop python2 subpackages. Fixes bugs #1744658 #1744400 --- diff --git a/.gitignore b/.gitignore index 502c06f..e0f4a29 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ mechanize-0.2.3.tar.gz /v0.4.0.tar.gz /v0.4.1.tar.gz /v0.4.2.tar.gz +/v0.4.3.tar.gz diff --git a/python-mechanize.spec b/python-mechanize.spec index bb91873..56417d4 100644 --- a/python-mechanize.spec +++ b/python-mechanize.spec @@ -2,8 +2,8 @@ %global sum Stateful programmatic web browsing Name: python-mechanize -Version: 0.4.2 -Release: 4%{?dist} +Version: 0.4.3 +Release: 1%{?dist} Summary: Stateful programmatic web browsing License: BSD or ZPLv2.1 @@ -11,11 +11,8 @@ URL: https://github.com/python-mechanize/ Source0: https://github.com/python-mechanize/mechanize/archive/v%{version}.tar.gz BuildArch: noarch -BuildRequires: python2-devel BuildRequires: python3-devel # for tests -BuildRequires: python2-zope-interface python2-twisted -BuildRequires: python2-setuptools python2-html5lib BuildRequires: python3-html5lib BuildRequires: python3-twisted BuildRequires: python3-zope-interface @@ -37,27 +34,6 @@ 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. -%package -n python2-%{srcname} -Summary: %{sum} -%{?python_provide:%python_provide python2-%{srcname}} - -%description -n python2-%{srcname} -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. - %package -n python3-%{srcname} Summary: %{sum} %{?python_provide:%python_provide python3-%{srcname}} @@ -84,23 +60,15 @@ Andy Lester (WWW::Mechanize). urllib2 was written by Jeremy Hylton. chmod -x examples/forms/{echo.cgi,example.py,simple.py} %build -%py2_build %py3_build %install -%py2_install %py3_install %check -#chmod +x examples/forms/{echo.cgi,example.py,simple.py} -#%%{__python2} run_tests.py -#%%{__python3} run_tests.py -#chmod -x examples/forms/{echo.cgi,example.py,simple.py} - -%files -n python2-%{srcname} -%license LICENSE -%doc README.rst ChangeLog COPYRIGHT -%{python2_sitelib}/* +chmod +x examples/forms/{echo.cgi,example.py,simple.py} +python3 run_tests.py +chmod -x examples/forms/{echo.cgi,example.py,simple.py} %files -n python3-%{srcname} %license LICENSE @@ -108,6 +76,10 @@ chmod -x examples/forms/{echo.cgi,example.py,simple.py} %{python3_sitelib}/mechanize* %changelog +* Thu Aug 22 2019 Kevin Fenzi - 0.4.3-1 +- Update to 0.4.3. Fixs bug #1742992 +- Drop python2 subpackages. Fixes bugs #1744658 #1744400 + * Mon Aug 19 2019 Miro HronĨok - 0.4.2-4 - Rebuilt for Python 3.8 diff --git a/sources b/sources index cbdd06f..2faa59d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (v0.4.2.tar.gz) = a18f827c36628d6a14639a45732f208e311b02c1433c903afa546b68fe97c308148ff00f0e5769ac4dd998c73713daa6835c7d5ee5229d04453798c5b4814309 +SHA512 (v0.4.3.tar.gz) = afa2f26001b8f2a811183e8023561601b6366a9157ade438fa2081056b6774e3506c78c5abb01da636e1543a04da70de648b97d2960fcb56fe92cb146aa2cd9c