diff --git a/python-requests-download.changes b/python-requests-download.changes index 617c25a..4a4b1b0 100644 --- a/python-requests-download.changes +++ b/python-requests-download.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 11 12:53:23 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Sun Jul 2 11:13:04 UTC 2023 - ecsos diff --git a/python-requests-download.spec b/python-requests-download.spec index 2149664..404f4db 100644 --- a/python-requests-download.spec +++ b/python-requests-download.spec @@ -1,7 +1,7 @@ # # spec file for package python-requests-download # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# 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 @@ -26,7 +26,9 @@ Group: Development/Languages/Python URL: https://www.github.com/takluyver/requests_download Source: https://files.pythonhosted.org/packages/source/r/requests_download/requests_download-%{version}.tar.gz Source1: https://raw.githubusercontent.com/takluyver/requests_download/master/LICENSE +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-progressbar @@ -42,15 +44,17 @@ This module downloads files using requests and saves them to a target path. cp %{SOURCE1} . %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} %doc README.rst %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/requests_download.py +%{python_sitelib}/requests[-_]download-%{version}*-info +%pycache_only %{python_sitelib}/__pycache__/requests_download* %changelog