%define pkgname %(echo %name | cut -d- -f2- | tr - _) Name: python-smbc Version: 1.0.24 Release: 1mamba Summary: Python bindings for the libsmbclient API from Samba Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://pypi.org/project/pysmbc/ Source: https://pypi.debian.net/pysmbc/pysmbc-%{version}.tar.gz License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libpython3-devel BuildRequires: libsmbclient-devel ## AUTOBUILDREQ-END %description Python bindings for the libsmbclient API from Samba. %if 0%{?with_pyver} %pyver_package %endif %prep %setup -q -n pysmbc-%{version} %build CFLAGS="%{optflags}" %{__python} setup.py build %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %{__python} setup.py install \ -O1 --skip-build \ --root="%{buildroot}" \ --install-headers=%{python_inc} \ --install-lib=%{python_sitearch} \ --record=%{name}.filelist sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist %files %{?pyappend} -f %{name}.filelist %defattr(-,root,root) %dir %{python_sitearch}/pysmbc-%{version}-py*.egg-info %{python_sitearch}/pysmbc-%{version}-py*.egg-info/* %doc COPYING %changelog * Sun Jan 01 2023 Automatic Build System 1.0.24-1mamba - automatic version update by autodist * Mon May 23 2022 Silvan Calarco 1.0.23-1mamba - update to 1.0.23 * Fri May 17 2013 Silvan Calarco 1.0.13-2mamba - python 2.7 mass rebuild * Wed Apr 25 2012 Automatic Build System 1.0.13-1mamba - automatic version update by autodist * Wed Jun 08 2011 Automatic Build System 1.0.11-1mamba - automatic update by autodist * Sat Aug 28 2010 Automatic Build System 1.0.9-1mamba - automatic update by autodist * Sat May 29 2010 Automatic Build System 1.0.8-1mamba - automatic update by autodist * Tue Jun 16 2009 Silvan Calarco 1.0.6-1mamba - package created by autospec