7e69a79
%global pypi_name smbprotocol
7e69a79
7e69a79
Name:           python-%{pypi_name}
7e69a79
Version:        1.1.0
7e69a79
Release:        1%{?dist}
7e69a79
Summary:        Interact with a server using the SMB 2/3 Protocol
7e69a79
7e69a79
License:        MIT
7e69a79
URL:            https://github.com/jborean93/smbprotocol
7e69a79
Source0:        %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
7e69a79
BuildArch:      noarch
7e69a79
7e69a79
%description
7e69a79
SMB is a network file sharing protocol and has numerous iterations
7e69a79
over the years. This library implements the SMBv2 and SMBv3 protocol
7e69a79
based on the MS-SMB2 document.
7e69a79
7e69a79
%package -n     python3-%{pypi_name}
7e69a79
Summary:        %{summary}
7e69a79
7e69a79
BuildRequires:  python3-devel
7e69a79
BuildRequires:  python3dist(setuptools)
7e69a79
BuildRequires:  python3dist(pytest)
7e69a79
BuildRequires:  python3dist(pytest-cov)
7e69a79
BuildRequires:  python3dist(pyspnego)
7e69a79
%{?python_provide:%python_provide python3-%{pypi_name}}
7e69a79
7e69a79
%description -n python3-%{pypi_name}
7e69a79
SMB is a network file sharing protocol and has numerous iterations
7e69a79
over the years. This library implements the SMBv2 and SMBv3 protocol
7e69a79
based on the MS-SMB2 document.
7e69a79
7e69a79
%prep
7e69a79
%autosetup -n %{pypi_name}-%{version}
7e69a79
# Remove bundled egg-info
7e69a79
rm -rf %{pypi_name}.egg-info
7e69a79
7e69a79
%build
7e69a79
%py3_build
7e69a79
7e69a79
%install
7e69a79
%py3_install
7e69a79
7e69a79
%check
7e69a79
%pytest -v tests
7e69a79
7e69a79
%files -n python3-%{pypi_name}
7e69a79
%license LICENSE
7e69a79
%doc README.md
7e69a79
%{python3_sitelib}/smbclient/
7e69a79
%{python3_sitelib}/%{pypi_name}/
7e69a79
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
7e69a79
7e69a79
%changelog
7e69a79
* Mon Sep 07 2020 Fabian Affolter <mail@fabian-affolter.ch> - 1.1.0-1
7e69a79
- Initial package for Fedora