2022-03-02 09:52:42 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package multiurl
|
|
|
|
|
#
|
2025-05-14 10:45:10 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2022-03-02 09:52:42 +00:00
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
2022-07-25 13:33:10 +00:00
|
|
|
|
2025-06-18 11:49:59 +00:00
|
|
|
#---not enough libraries available in Leap 15.5; >=python311 version needed for ecmwf-datastores-client
|
2025-04-22 15:12:18 +00:00
|
|
|
%if 0%{?sle_version} >= 150600 && 0%{?is_opensuse}
|
|
|
|
|
%{?sle15allpythons}
|
2024-08-09 13:20:20 +00:00
|
|
|
%endif
|
2022-03-02 09:52:42 +00:00
|
|
|
|
|
|
|
|
Name: multiurl
|
2025-05-14 10:45:10 +00:00
|
|
|
Version: 0.3.5
|
2022-03-02 09:52:42 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Download several URLs as a single file, as well as supporting multi-part URLs
|
|
|
|
|
License: Apache-2.0
|
|
|
|
|
Group: Development/Libraries/Python
|
|
|
|
|
URL: https://pypi.org/project/multiurl/
|
|
|
|
|
Source: https://github.com/ecmwf/multiurl/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2024-09-11 12:00:54 +00:00
|
|
|
Patch0: disable-forced-progress.patch
|
2022-03-02 09:52:42 +00:00
|
|
|
BuildRequires: %{python_module devel}
|
2022-09-16 08:10:28 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2024-03-15 09:20:52 +00:00
|
|
|
BuildRequires: %{python_module python-dateutil}
|
2022-09-16 10:11:02 +00:00
|
|
|
BuildRequires: %{python_module pytz}
|
2022-09-16 11:07:08 +00:00
|
|
|
BuildRequires: %{python_module requests}
|
2022-03-02 09:52:42 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
|
BuildRequires: python-rpm-macros
|
2024-03-15 11:15:51 +00:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
|
BuildRequires: fdupes
|
|
|
|
|
%endif
|
2024-03-15 09:20:52 +00:00
|
|
|
Requires: python-python-dateutil
|
|
|
|
|
Requires: python-pytz
|
|
|
|
|
Requires: python-requests
|
|
|
|
|
Recommends: python-tqdm
|
2022-03-02 09:52:42 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
A python library to download several URLs as a single file, as well as supporting multi-part URLs.
|
2024-02-29 10:28:32 +00:00
|
|
|
Functionality is generic, but package is primarily intended and tested to download
|
2024-03-12 10:07:55 +00:00
|
|
|
ECMWF open data files. Azure and AWS servers are supported.
|
2022-03-02 09:52:42 +00:00
|
|
|
|
|
|
|
|
%prep
|
2024-09-11 12:00:54 +00:00
|
|
|
%autosetup -p1
|
2022-03-02 09:52:42 +00:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%python_install
|
2024-03-15 11:15:51 +00:00
|
|
|
%if 0%{?suse_version}
|
2024-03-15 11:42:11 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}/multiurl
|
2024-03-15 11:15:51 +00:00
|
|
|
%endif
|
2022-03-02 09:52:42 +00:00
|
|
|
|
2022-09-16 07:54:55 +00:00
|
|
|
%check
|
2022-09-16 13:49:47 +00:00
|
|
|
#---for OBS, disable network related tests:
|
2024-11-12 16:20:23 +00:00
|
|
|
%pytest -k 'not (auth_ or parts or order or content_disposition_handling or ftp_download or robust or mirror)'
|
2022-09-16 07:54:55 +00:00
|
|
|
|
2022-03-02 09:52:42 +00:00
|
|
|
%files %{python_files}
|
|
|
|
|
%doc README.md
|
|
|
|
|
%license LICENSE
|
2024-03-15 09:20:52 +00:00
|
|
|
%{python_sitelib}/multiurl
|
2024-11-12 15:18:57 +00:00
|
|
|
%{python_sitelib}/multiurl-%{version}-py*.egg-info
|
2022-03-02 09:52:42 +00:00
|
|
|
|
|
|
|
|
%changelog
|