update to 1.0.23 [release 1.0.23-1mamba;Mon May 23 2022]

This commit is contained in:
Silvan Calarco 2024-01-05 16:41:06 +01:00
parent b8ec049308
commit 74eeb7a8e2

View File

@ -1,40 +1,56 @@
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
Name: python-smbc Name: python-smbc
Version: 1.0.13 Version: 1.0.23
Release: 2mamba Release: 1mamba
Summary: Python bindings for the libsmbclient API from Samba Summary: Python bindings for the libsmbclient API from Samba
Group: System/Libraries Group: System/Libraries
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://cyberelk.net/tim/data/pysmbc/ URL: https://pypi.org/project/pysmbc/
Source: http://cyberelk.net/tim/data/pysmbc/pysmbc-%{version}.tar.bz2 Source: https://pypi.debian.net/pysmbc/pysmbc-%{version}.tar.gz
License: GPL License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libpython3-devel
BuildRequires: libsmbclient-devel BuildRequires: libsmbclient-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-root ## AUTOBUILDREQ-END
%description %description
Python bindings for the libsmbclient API from Samba. Python bindings for the libsmbclient API from Samba.
%if 0%{?with_pyver}
%pyver_package
%endif
%prep %prep
%setup -q -n pysmbc-%{version} %setup -q -n pysmbc-%{version}
%build %build
%make CFLAGS="%{optflags}" %{__python} setup.py build
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{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 sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files %files %{?pyappend} -f %{name}.filelist
%defattr(-,root,root) %defattr(-,root,root)
%{python_sitearch}/smbc.so %dir %{python_sitearch}/pysmbc-%{version}-py*.egg-info
%{python_sitearch}/pysmbc-*-py*.egg-info %{python_sitearch}/pysmbc-%{version}-py*.egg-info/*
%doc COPYING NEWS README %doc COPYING
%changelog %changelog
* Mon May 23 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.23-1mamba
- update to 1.0.23
* Fri May 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.13-2mamba * Fri May 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.13-2mamba
- python 2.7 mass rebuild - python 2.7 mass rebuild