Compare commits

2 Commits

2 changed files with 12 additions and 5 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri May 30 08:33:12 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
-------------------------------------------------------------------
Thu Sep 29 02:52:48 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>

View File

@@ -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