diff --git a/python-iso3166.changes b/python-iso3166.changes index 48f4a4d..0dafabe 100644 --- a/python-iso3166.changes +++ b/python-iso3166.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri May 30 08:33:12 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Thu Sep 29 02:52:48 UTC 2022 - Yogalakshmi Arunachalam diff --git a/python-iso3166.spec b/python-iso3166.spec index 743f47f..8d1933c 100644 --- a/python-iso3166.spec +++ b/python-iso3166.spec @@ -1,7 +1,7 @@ # # spec file for package python-iso3166 # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-iso3166 Version: 2.1.1 Release: 0 @@ -25,8 +24,10 @@ License: MIT Group: Development/Languages/Python URL: https://github.com/deactivated/python-iso3166 Source: https://files.pythonhosted.org/packages/source/i/iso3166/iso3166-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -41,10 +42,10 @@ between these codes and the corresponding country name. %setup -q -n iso3166-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -53,6 +54,7 @@ between these codes and the corresponding country name. %files %{python_files} %doc CHANGES README.rst %license LICENSE.txt -%{python_sitelib}/* +%{python_sitelib}/iso3166 +%{python_sitelib}/iso3166-%{version}*-info %changelog