diff --git a/python-urlextract.changes b/python-urlextract.changes index e9d8b4b..840aff0 100644 --- a/python-urlextract.changes +++ b/python-urlextract.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jun 12 05:01:37 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + ------------------------------------------------------------------- Mon Mar 25 09:00:45 UTC 2024 - Bernhard Wiedemann diff --git a/python-urlextract.spec b/python-urlextract.spec index 07c64ec..f42775a 100644 --- a/python-urlextract.spec +++ b/python-urlextract.spec @@ -1,7 +1,7 @@ # # spec file for package python-urlextract # -# Copyright (c) 2024 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,8 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 Name: python-urlextract Version: 1.9.0 Release: 0 @@ -25,7 +23,9 @@ Summary: Collects and extracts URLs from given text License: MIT URL: https://github.com/lipoja/URLExtract Source: https://github.com/lipoja/URLExtract/archive/v%{version}.tar.gz#/urlextract-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-dnspython @@ -54,10 +54,10 @@ Collects and extracts URLs from given text. sed -i '1{/^#!/d}' urlextract/*.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/urlextract %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -75,6 +75,7 @@ find %{buildroot} -name tlds-alpha-by-domain.txt.lock -delete # avoid modificati %doc CHANGELOG.rst README.rst %license LICENSE %python_alternative %{_bindir}/urlextract -%{python_sitelib}/*urlextract*/ +%{python_sitelib}/urlextract +%{python_sitelib}/urlextract-%{version}.dist-info %changelog