diff --git a/python-mechanize.spec b/python-mechanize.spec index 386aecc..b69aa65 100644 --- a/python-mechanize.spec +++ b/python-mechanize.spec @@ -1,14 +1,13 @@ %define pkgname %(echo %name | cut -d- -f2- | tr - _) Name: python-mechanize Version: 0.4.9 -Release: 1mamba +Release: 2mamba Summary: Stateful programmatic web browsing in Python Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://github.com/python-mechanize/mechanize -#Source: https://github.com/python-mechanize/mechanize.git/v%{version}/mechanize-%{version}.tar.bz2 Source: https://pypi.debian.net/mechanize/mechanize-%{version}.tar.gz License: GPL ## AUTOBUILDREQ-BEGIN @@ -19,24 +18,23 @@ BuildRequires: python3-devel >= 3.11.5-3mamba BuildRequires: python-build-py3 BuildRequires: python-wheel-py3 BuildRequires: python-python_install-py3 -BuildRequires: python-build-py310 -BuildRequires: python-wheel-py310 -BuildRequires: python-python_install-py310 %description Stateful programmatic web browsing in Python, after Andy Lester’s Perl module WWW::Mechanize. %if 0%{?with_pyver} +%if "%{?with_pyver}" == "3" +%define py_requires_append \ +Obsoletes: python-mechanize-py310 <= 0.4.9-1mamba +%endif %pyver_package %endif %prep %setup -q -n mechanize-%{version} -#%patch0 -p1 %build %{__python} -m build --wheel --skip-dependency-check -#--no-isolation %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" @@ -51,6 +49,9 @@ Stateful programmatic web browsing in Python, after Andy Lester’s Perl module %{python_sitelib}/%{pkgname}-%{version}.dist-info/* %changelog +* Tue Mar 26 2024 Silvan Calarco 0.4.9-2mamba +- obsolete python-mechanize-py310 + * Tue Nov 07 2023 Automatic Build System 0.4.9-1mamba - automatic version update by autodist