forked from pool/python-urlgrabber
- Switch to pyproject macros.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-urlgrabber?expand=0&rev=53
This commit is contained in:
@@ -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>
|
||||||
|
|
||||||
|
@@ -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,8 +34,10 @@ 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
|
||||||
@@ -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
|
||||||
|
Reference in New Issue
Block a user