File python-ftputil.spec of Package python-ftputil

#
# spec file for package python-ftputil
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:           python-ftputil
Version:        0
Release:        0
Summary:        High-level FTP client library
License:        BSD-3-Clause
URL:            https://ftputil.sschwarzer.net/
Source:         ftputil-%{version}.tar.zst

BuildRequires:  python-rpm-macros
BuildRequires:  %{python_module setuptools}
BuildRequires:  %{python_module pip}
BuildRequires:  %{python_module wheel}
BuildRequires:  fdupes
BuildArch:      noarch
%python_subpackages

%description
ftputil is a high-level FTP client library for the Python programming language.
It implements a virtual file system for accessing FTP servers, that is, it can
generate file-like objects for remote files.

%prep
%autosetup -p1 -n ftputil-%{version}
touch ftputil.html

%build
%pyproject_wheel

%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}

%files %{python_files}
%license LICENSE
%doc README*
%{python_sitelib}/ftputil
%{python_sitelib}/ftputil-*.dist-info

%changelog
openSUSE Build Service is sponsored by