%global pypi_name pysmb Name: python-%{pypi_name} Version: 1.2.2 Release: 1%{?dist} Summary: Python SMB/CIFS library # smb/utils/sha256.py is MIT License: zlib and MIT URL: https://github.com/miketeo/pysmb # Upstream source is hard to use # https://github.com/miketeo/pysmb/issues/163 Source0: %{pypi_source %{pypi_name} %{version} zip} BuildArch: noarch %description pysmb is an experimental SMB/CIFS library written in Python. It implements the client-side SMB/CIFS protocol which allows your Python application to access and transfer files to/from SMB/CIFS shared folders like your Windows file sharing and Samba folders. %package -n python3-%{pypi_name} Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3dist(pyasn1) BuildRequires: python3dist(setuptools) %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} pysmb is an experimental SMB/CIFS library written in Python. It implements the client-side SMB/CIFS protocol which allows your Python application to access and transfer files to/from SMB/CIFS shared folders like your Windows file sharing and Samba folders. %prep %autosetup -n %{pypi_name}-%{version} rm -rf %{pypi_name}.egg-info sed -i -e '/^#!\//, 1d' python3/smb/utils/sha256.py %build %py3_build %install %py3_install #%%check # https://github.com/miketeo/pysmb/issues/165 #%%pytest -v python3/tests %files -n python3-%{pypi_name} %license LICENSE %doc CHANGELOG README.txt python3/tests/README_1st.txt %{python3_sitelib}/nmb/ %{python3_sitelib}/smb/ %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/ %changelog * Thu Sep 17 2020 Fabian Affolter - 1.2.2-1 - Initial package for Fedora