17
0

- add python312.patch to fix build with python 3.12

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-UkPostcodeParser?expand=0&rev=8
This commit is contained in:
2023-08-15 07:31:47 +00:00
committed by Git OBS Bridge
parent 62516139ac
commit c982aa3033
3 changed files with 47 additions and 2 deletions

View File

@@ -26,6 +26,7 @@ License: MIT
Group: Development/Languages/Python
URL: https://github.com/hamstah/ukpostcodeparser
Source: https://files.pythonhosted.org/packages/source/U/UkPostcodeParser/UkPostcodeParser-%{version}.tar.gz
Patch1: python312.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -37,7 +38,7 @@ BuildArch: noarch
United Kingdom Postcode parser.
%prep
%setup -q -n UkPostcodeParser-%{version}
%autosetup -p1 -n UkPostcodeParser-%{version}
%build
%python_build
@@ -55,6 +56,7 @@ sed -i 's/test_\(091\|097\|098\|125\|131\)/_test_\1/' ukpostcodeparser/test/pars
%files %{python_files}
%license LICENSE
%doc README
%{python_sitelib}/*
%{python_sitelib}/ukpostcodeparser
%{python_sitelib}/UkPostcodeParser-%{version}*-info
%changelog