a3bd898
%global srcname tftpy
a3bd898
a3bd898
Name:		python-%{srcname}
b1b1d6d
Version:	0.8.2
2514e0a
Release:	%autorelease
c5d57d0
Summary:	TFTPy is a pure Python implementation of the Trivial FTP protocol
c5d57d0
License:	MIT
a3bd898
URL:		https://github.com/msoulier/%{srcname}
a3bd898
Source0:	%{url}/archive/%{version}/%{srcname}-%{version}.tar.gz
c5d57d0
BuildArch:	noarch
c5d57d0
3a1acda
%global _description\
3a1acda
Tftpy is a TFTP library for the Python programming language. It includes\
3a1acda
client and server classes, with sample implementations. Hooks are included\
3a1acda
for easy inclusion in a UI for populating progress indicators. It supports\
3a1acda
RFCs 1350, 2347, 2348 and the tsize option from RFC 2349.\
c5d57d0
3a1acda
%description %_description
3a1acda
a3bd898
%package -n python3-%{srcname}
3a1acda
Summary: %summary
a3bd898
%{?python_provide:%python_provide python3-%{srcname}}
a3bd898
a3bd898
BuildRequires:	python3-devel, python3-setuptools
7bd532b
Conflicts:	python2-%{srcname} <= 0.8.0-1
a3bd898
a3bd898
%description -n python3-%{srcname} %_description
3a1acda
3a1acda
c5d57d0
%prep
a3bd898
%setup -q -n %{srcname}-%{version}
c5d57d0
c5d57d0
c5d57d0
%build
a3bd898
%py3_build
c5d57d0
c5d57d0
c5d57d0
%install
a3bd898
%py3_install
ccab4ae
c5d57d0
a3bd898
%files -n python3-%{srcname}
b1b1d6d
%doc README
c5d57d0
%{_bindir}/tftpy_client.py
c5d57d0
%{_bindir}/tftpy_server.py
a3bd898
%{python3_sitelib}/tftpy/
a3bd898
%{python3_sitelib}/*.egg-info
c5d57d0
c5d57d0
c5d57d0
%changelog
2514e0a
%autochangelog