From 74eeb7a8e21c286f20c46ce4c62da9085be9f66e Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 16:41:06 +0100 Subject: [PATCH] update to 1.0.23 [release 1.0.23-1mamba;Mon May 23 2022] --- python-smbc.spec | 42 +++++++++++++++++++++++++++++------------- 1 file changed, 29 insertions(+), 13 deletions(-) diff --git a/python-smbc.spec b/python-smbc.spec index bacd8c6..6af91e9 100644 --- a/python-smbc.spec +++ b/python-smbc.spec @@ -1,40 +1,56 @@ +%define pkgname %(echo %name | cut -d- -f2- | tr - _) + Name: python-smbc -Version: 1.0.13 -Release: 2mamba +Version: 1.0.23 +Release: 1mamba Summary: Python bindings for the libsmbclient API from Samba Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco -URL: http://cyberelk.net/tim/data/pysmbc/ -Source: http://cyberelk.net/tim/data/pysmbc/pysmbc-%{version}.tar.bz2 +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 -BuildRoot: %{_tmppath}/%{name}-%{version}-root +## 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 -%make +CFLAGS="%{optflags}" %{__python} setup.py build %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%makeinstall +%{__python} setup.py install \ + -O1 --skip-build \ + --root="%{buildroot}" \ + --install-headers=%{python_inc} \ + --install-lib=%{python_sitearch} \ + --record=%{name}.filelist -%clean -[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist -%files +%files %{?pyappend} -f %{name}.filelist %defattr(-,root,root) -%{python_sitearch}/smbc.so -%{python_sitearch}/pysmbc-*-py*.egg-info -%doc COPYING NEWS README +%dir %{python_sitearch}/pysmbc-%{version}-py*.egg-info +%{python_sitearch}/pysmbc-%{version}-py*.egg-info/* +%doc COPYING %changelog +* 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