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