File multiurl.spec of Package multiurl
#
# spec file for package multiurl
#
# 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
# 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/
#
#---not enough libraries available in Leap 15.5; >=python311 version needed for ecmwf-datastores-client
%if 0%{?sle_version} >= 150600 && 0%{?is_opensuse}
%{?sle15allpythons}
%endif
Name: multiurl
Version: 0.3.5
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
Patch0: disable-forced-progress.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module python-dateutil}
BuildRequires: %{python_module pytz}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
%if 0%{?suse_version}
BuildRequires: fdupes
%endif
Requires: python-python-dateutil
Requires: python-pytz
Requires: python-requests
Recommends: python-tqdm
BuildArch: noarch
%python_subpackages
%description
A python library to download several URLs as a single file, as well as supporting multi-part URLs.
Functionality is generic, but package is primarily intended and tested to download
ECMWF open data files. Azure and AWS servers are supported.
%prep
%autosetup -p1
%build
%python_build
%install
%python_install
%if 0%{?suse_version}
%python_expand %fdupes %{buildroot}%{$python_sitelib}/multiurl
%endif
%check
#---for OBS, disable network related tests:
%pytest -k 'not (auth_ or parts or order or content_disposition_handling or ftp_download or robust or mirror)'
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/multiurl
%{python_sitelib}/multiurl-%{version}-py*.egg-info
%changelog