18
0

Compare commits

2 Commits

2 changed files with 12 additions and 6 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jun 12 05:01:37 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
-------------------------------------------------------------------
Mon Mar 25 09:00:45 UTC 2024 - Bernhard Wiedemann <bwiedemann@suse.com>

View File

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