14
0
2025-06-12 05:11:54 +00:00
committed by Git OBS Bridge
parent a75e2e9518
commit a50a7caefc
2 changed files with 12 additions and 5 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.
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Mar 3 08:07:59 UTC 2023 - Matej Cepl <mcepl@suse.com> Fri Mar 3 08:07:59 UTC 2023 - Matej Cepl <mcepl@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-urlgrabber # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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 # PATCH-FIX_UPSTREAM gh#rpm-software-management/urlgrabber!37
Patch3: fix-urlgrab-file-schema-comparison.patch Patch3: fix-urlgrab-file-schema-comparison.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pycurl} BuildRequires: %{python_module pycurl}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-pycurl Requires: python-pycurl
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(postun):update-alternatives Requires(postun): update-alternatives
BuildArch: noarch BuildArch: noarch
%python_subpackages %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 sed -i "s!libexec!$(echo %{_libexecdir}|cut -d/ -f 3)!" setup.py
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_clone -a %{buildroot}%{_bindir}/urlgrabber %python_clone -a %{buildroot}%{_bindir}/urlgrabber
%python_clone -a %{buildroot}%{_libexecdir}/urlgrabber-ext-down %python_clone -a %{buildroot}%{_libexecdir}/urlgrabber-ext-down
rm -rf %{buildroot}%{_datadir}/doc/urlgrabber-%{version} # Remove wrongly installed docs rm -rf %{buildroot}%{_datadir}/doc/urlgrabber-%{version} # Remove wrongly installed docs
@@ -85,6 +87,6 @@ fi
%python_alternative %{_bindir}/urlgrabber %python_alternative %{_bindir}/urlgrabber
%python_alternative %{_libexecdir}/urlgrabber-ext-down %python_alternative %{_libexecdir}/urlgrabber-ext-down
%{python_sitelib}/urlgrabber %{python_sitelib}/urlgrabber
%{python_sitelib}/urlgrabber-%{version}*-info %{python_sitelib}/urlgrabber-%{version}.dist-info
%changelog %changelog