From 7ee50215270928b7f84c9ea00ac4e3ace191c84eaed71685f69b73a2789588ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 3 Jun 2025 12:36:38 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-publicsuffix2?expand=0&rev=6 --- python-publicsuffix2.changes | 5 +++++ python-publicsuffix2.spec | 11 +++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/python-publicsuffix2.changes b/python-publicsuffix2.changes index 23dbd43..2648a2b 100644 --- a/python-publicsuffix2.changes +++ b/python-publicsuffix2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jun 3 12:36:27 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Sun Jun 18 16:00:05 UTC 2023 - Andreas Schneider diff --git a/python-publicsuffix2.spec b/python-publicsuffix2.spec index c89c45b..93d9041 100644 --- a/python-publicsuffix2.spec +++ b/python-publicsuffix2.spec @@ -1,7 +1,7 @@ # # spec file for package python-publicsuffix2 # -# Copyright (c) 2023 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 @@ -24,8 +24,10 @@ Summary: Get a public suffix for a domain name using the Public Suffix Li License: MIT AND MPL-2.0 URL: https://github.com/nexb/python-publicsuffix2 Source: https://files.pythonhosted.org/packages/source/p/publicsuffix2/publicsuffix2-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module requests >= 2.7.0} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -39,15 +41,16 @@ Forked from and using the same API as the publicsuffix package. %setup -q -n publicsuffix2-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} %license publicsuffix2.LICENSE %doc CHANGELOG.rst README.rst -%{python_sitelib}/* +%{python_sitelib}/publicsuffix2 +%{python_sitelib}/publicsuffix2-%{version}*-info %changelog