forked from pool/python-requests-download
- Convert to pip-based build
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-download?expand=0&rev=8
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user