|
|
717483 |
%if 0%{?fedora} > 12
|
|
|
717483 |
%global with_python3 1
|
|
|
717483 |
%endif
|
|
|
717483 |
|
|
|
717483 |
%{?filter_setup:
|
|
|
717483 |
%filter_provides_in %{python_sitearch}/.*\.so$
|
|
|
717483 |
%filter_setup
|
|
|
717483 |
}
|
|
|
717483 |
|
|
|
717483 |
Summary: Python bindings for libsmbclient API from Samba
|
|
|
717483 |
Name: python-smbc
|
|
|
717483 |
Version: 1.0.13
|
|
|
717483 |
Release: 8%{?dist}
|
|
|
717483 |
URL: https://github.com/hamano/pysmbc
|
|
|
717483 |
Source: http://pypi.python.org/packages/source/p/pysmbc/pysmbc-%{version}.tar.bz2
|
|
|
717483 |
Patch1: python-smbc-pkg-config.patch
|
|
|
717483 |
|
|
|
717483 |
# Fix memory leak in the auth_fn callback.
|
|
|
717483 |
# Fixed upstream: https://github.com/hamano/pysmbc/commit/8fa966e780d62f9bbc603c15a42432a7fe1cc568
|
|
|
717483 |
Patch2: fix-memory-leak-in-auth_fn-callback.patch
|
|
|
717483 |
|
|
|
717483 |
# Make sure auth info is NUL-terminated.
|
|
|
717483 |
# Fixed upstream: https://github.com/hamano/pysmbc/commit/94a8572b78f9734e0f37e5ffc8a61926101a3d77
|
|
|
717483 |
# Resolves: rhbz#1248519
|
|
|
717483 |
Patch3: make-sure-auto-info-is-NULL-terminated.patch
|
|
|
717483 |
|
|
|
717483 |
License: GPLv2+
|
|
|
717483 |
Group: Development/Languages
|
|
|
717483 |
BuildRequires: python2-devel
|
|
|
717483 |
%if 0%{?with_python3}
|
|
|
717483 |
BuildRequires: python3-devel
|
|
|
717483 |
%endif
|
|
|
717483 |
BuildRequires: libsmbclient-devel >= 3.2
|
|
|
717483 |
BuildRequires: epydoc
|
|
|
717483 |
|
|
|
717483 |
%description
|
|
|
717483 |
This package provides Python bindings for the libsmbclient API
|
|
|
717483 |
from Samba, known as pysmbc. It was written for use with
|
|
|
717483 |
system-config-printer, but can be put to other uses as well.
|
|
|
717483 |
|
|
|
717483 |
%if 0%{?with_python3}
|
|
|
717483 |
%package -n python3-smbc
|
|
|
717483 |
Summary: Python3 bindings for libsmbclient API from Samba
|
|
|
717483 |
Group: Development/Languages
|
|
|
717483 |
|
|
|
717483 |
%description -n python3-smbc
|
|
|
717483 |
This package provides Python bindings for the libsmbclient API
|
|
|
717483 |
from Samba, known as pysmbc. It was written for use with
|
|
|
717483 |
system-config-printer, but can be put to other uses as well.
|
|
|
717483 |
|
|
|
717483 |
This is a ported release for python 3
|
|
|
717483 |
%endif
|
|
|
717483 |
|
|
|
717483 |
%package doc
|
|
|
717483 |
Summary: Documentation for python-smbc
|
|
|
717483 |
Group: Documentation
|
|
|
717483 |
|
|
|
717483 |
%description doc
|
|
|
717483 |
Documentation for python-smbc.
|
|
|
717483 |
|
|
|
717483 |
%prep
|
|
|
717483 |
%setup -q -n pysmbc-%{version}
|
|
|
717483 |
%patch1 -p1 -b .pkg-config
|
|
|
717483 |
%patch2 -p1
|
|
|
717483 |
%patch3 -p1
|
|
|
717483 |
|
|
|
717483 |
%if 0%{?with_python3}
|
|
|
717483 |
rm -rf %{py3dir}
|
|
|
717483 |
cp -a . %{py3dir}
|
|
|
717483 |
%endif
|
|
|
717483 |
|
|
|
717483 |
|
|
|
717483 |
%build
|
|
|
717483 |
CFLAGS="%{optflags}" %{__python} setup.py build
|
|
|
717483 |
rm -rf html
|
|
|
717483 |
epydoc -o html --html build/lib*/smbc.so
|
|
|
717483 |
|
|
|
717483 |
%if 0%{?with_python3}
|
|
|
717483 |
pushd %{py3dir}
|
|
|
717483 |
CFLAGS="%{optflags}" %{__python3} setup.py build
|
|
|
717483 |
popd
|
|
|
717483 |
%endif
|
|
|
717483 |
|
|
|
717483 |
|
|
|
717483 |
%install
|
|
|
717483 |
%if 0%{?with_python3}
|
|
|
717483 |
pushd %{py3dir}
|
|
|
717483 |
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
717483 |
chmod 755 %{buildroot}%{python3_sitearch}/smbc*.so
|
|
|
717483 |
popd
|
|
|
717483 |
%endif
|
|
|
717483 |
|
|
|
717483 |
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
717483 |
chmod 755 %{buildroot}%{python_sitearch}/smbc.so
|
|
|
717483 |
|
|
|
717483 |
|
|
|
717483 |
%files
|
|
|
717483 |
%defattr(-,root,root,-)
|
|
|
717483 |
%doc COPYING README NEWS
|
|
|
717483 |
%{python_sitearch}/smbc.so
|
|
|
717483 |
%{python_sitearch}/pysmbc*.egg-info
|
|
|
717483 |
|
|
|
717483 |
%files doc
|
|
|
717483 |
%defattr(-,root,root,-)
|
|
|
717483 |
%doc html
|
|
|
717483 |
|
|
|
717483 |
%if 0%{?with_python3}
|
|
|
717483 |
%files -n python3-smbc
|
|
|
717483 |
%defattr(-,root,root,-)
|
|
|
717483 |
%doc COPYING README NEWS
|
|
|
717483 |
%{python3_sitearch}/smbc.cpython-3*.so
|
|
|
717483 |
%{python3_sitearch}/pysmbc*.egg-info
|
|
|
717483 |
%endif
|
|
|
717483 |
|
|
|
717483 |
|
|
|
717483 |
%changelog
|
|
|
717483 |
* Wed Oct 11 2017 Charalampos Stratakis <cstratak@redhat.com> - 1.0.13-8
|
|
|
717483 |
- Fix memory leak in the auth_fn callback.
|
|
|
717483 |
- Make sure auth info is NUL-terminated.
|
|
|
717483 |
Resolves: rhbz#1248519
|
|
|
717483 |
|
|
|
717483 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.13-7
|
|
|
717483 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
717483 |
|
|
|
717483 |
* Wed Nov 21 2012 Tim Waugh <twaugh@redhat.com> - 1.0.13-6
|
|
|
717483 |
- Use pkg-config for smbclient include_dirs, fixing rebuild failure.
|
|
|
717483 |
|
|
|
717483 |
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 1.0.13-5
|
|
|
717483 |
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
|
|
|
717483 |
|
|
|
717483 |
* Fri Aug 3 2012 David Malcolm <dmalcolm@redhat.com> - 1.0.13-4
|
|
|
717483 |
- add with_python3 conditionals
|
|
|
717483 |
|
|
|
717483 |
* Thu Jul 26 2012 David Malcolm <dmalcolm@redhat.com> - 1.0.13-3
|
|
|
717483 |
- generalize file globbing to ease transition to Python 3.3
|
|
|
717483 |
|
|
|
717483 |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.13-2
|
|
|
717483 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
717483 |
|
|
|
717483 |
* Wed Feb 15 2012 Tim Waugh <twaugh@redhat.com> - 1.0.13-1
|
|
|
717483 |
- 1.0.13.
|
|
|
717483 |
|
|
|
717483 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.11-2
|
|
|
717483 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
717483 |
|
|
|
717483 |
* Fri May 20 2011 Tim Waugh <twaugh@redhat.com> - 1.0.11-1
|
|
|
717483 |
- 1.0.11.
|
|
|
717483 |
|
|
|
717483 |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.10-4
|
|
|
717483 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
717483 |
|
|
|
717483 |
* Wed Dec 29 2010 David Malcolm <dmalcolm@redhat.com> - 1.0.10-3
|
|
|
717483 |
- rework python3 DSO name for PEP 3149, and rebuild for newer python3
|
|
|
717483 |
|
|
|
717483 |
* Wed Nov 17 2010 Jiri Popelka <jpopelka@redhat.com> - 1.0.10-2
|
|
|
717483 |
- Fixed rpmlint errors/warnings (#648987)
|
|
|
717483 |
- doc subpackage
|
|
|
717483 |
|
|
|
717483 |
* Mon Nov 01 2010 Jiri Popelka <jpopelka@redhat.com> - 1.0.10-1
|
|
|
717483 |
- Initial RPM spec file
|