diff --git a/python-urlgrabber.changes b/python-urlgrabber.changes index 0882313..097c38d 100644 --- a/python-urlgrabber.changes +++ b/python-urlgrabber.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jun 12 05:01:37 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + ------------------------------------------------------------------- Fri Mar 3 08:07:59 UTC 2023 - Matej Cepl diff --git a/python-urlgrabber.spec b/python-urlgrabber.spec index 4982116..667885e 100644 --- a/python-urlgrabber.spec +++ b/python-urlgrabber.spec @@ -1,7 +1,7 @@ # # spec file for package python-urlgrabber # -# 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 @@ -34,13 +34,15 @@ Patch2: avoid_crashing_when_urlgrabber_debug_enabled.patch # PATCH-FIX_UPSTREAM gh#rpm-software-management/urlgrabber!37 Patch3: fix-urlgrab-file-schema-comparison.patch +BuildRequires: %{python_module pip} BuildRequires: %{python_module pycurl} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-pycurl Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %python_subpackages @@ -60,10 +62,10 @@ sed -i 's!/usr/libexec!%{_libexecdir}!' urlgrabber/grabber.py sed -i "s!libexec!$(echo %{_libexecdir}|cut -d/ -f 3)!" setup.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/urlgrabber %python_clone -a %{buildroot}%{_libexecdir}/urlgrabber-ext-down rm -rf %{buildroot}%{_datadir}/doc/urlgrabber-%{version} # Remove wrongly installed docs @@ -85,6 +87,6 @@ fi %python_alternative %{_bindir}/urlgrabber %python_alternative %{_libexecdir}/urlgrabber-ext-down %{python_sitelib}/urlgrabber -%{python_sitelib}/urlgrabber-%{version}*-info +%{python_sitelib}/urlgrabber-%{version}.dist-info %changelog