7e69a79
%global pypi_name smbprotocol
7e69a79
7e69a79
Name:           python-%{pypi_name}
88d2e0a
Version:        1.9.0
f764a4b
Release:        6%{?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
88d2e0a
BuildRequires:  python3dist(cryptography)
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
c3b4ac0
%pytest -v tests \
c3b4ac0
  -k "not reset_connection \
c3b4ac0
  and not config_domain \
c3b4ac0
  and not message \
c3b4ac0
  and not dfs"
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
f764a4b
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-6
f764a4b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
f764a4b
a529ec9
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-5
a529ec9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
a529ec9
7488803
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-4
7488803
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
7488803
c46d53a
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 1.9.0-3
c46d53a
- Rebuilt for Python 3.12
c46d53a
94f75a3
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-2
94f75a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
94f75a3
88d2e0a
* Fri Aug 19 2022 Fabian Affolter <mail@fabian-affolter.ch> - 1.9.0-1
88d2e0a
- Update to latest upstream release 1.9.0 (closes rhbz#2113654, closes #2099111)
88d2e0a
2e8aa0d
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-6
2e8aa0d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
2e8aa0d
9222542
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-5
9222542
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
9222542
c7c851d
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-4
c7c851d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
c7c851d
41acad3
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.1.0-3
41acad3
- Rebuilt for Python 3.10
41acad3
3324140
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
3324140
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
3324140
7e69a79
* Mon Sep 07 2020 Fabian Affolter <mail@fabian-affolter.ch> - 1.1.0-1
7e69a79
- Initial package for Fedora