|
|
|
@ -6,7 +6,7 @@
|
|
|
|
|
Summary: Python bindings for libsmbclient API from Samba
|
|
|
|
|
Name: python-smbc
|
|
|
|
|
Version: 1.0.15.4
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
Release: 5%{?dist}
|
|
|
|
|
URL: https://github.com/hamano/pysmbc
|
|
|
|
|
Source: http://pypi.python.org/packages/source/p/pysmbc/pysmbc-%{version}.tar.bz2
|
|
|
|
|
License: GPLv2+
|
|
|
|
@ -15,13 +15,20 @@ BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: libsmbclient-devel >= 3.2
|
|
|
|
|
BuildRequires: epydoc
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This package provides Python bindings for the libsmbclient API
|
|
|
|
|
from Samba, known as pysmbc. It was written for use with
|
|
|
|
|
system-config-printer, but can be put to other uses as well.
|
|
|
|
|
|
|
|
|
|
%package -n python2-smbc
|
|
|
|
|
Summary: Python2 bindings for libsmbclient API from Samba
|
|
|
|
|
# defined in /usr/lib/rpm/macros.d/macros.python
|
|
|
|
|
# if python_provide() is defined, call python_provide(python-smbc)
|
|
|
|
|
# if python_provide() is defined, call python_provide(python2-smbc)
|
|
|
|
|
# which may eventually add Provides: ... (see the function definition)
|
|
|
|
|
%{?python_provide:%python_provide python-smbc}
|
|
|
|
|
%{?python_provide:%python_provide python2-smbc}
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This package provides Python bindings for the libsmbclient API
|
|
|
|
|
%description -n python2-smbc
|
|
|
|
|
This package provides Python 2 bindings for the libsmbclient API
|
|
|
|
|
from Samba, known as pysmbc. It was written for use with
|
|
|
|
|
system-config-printer, but can be put to other uses as well.
|
|
|
|
|
|
|
|
|
@ -30,12 +37,10 @@ Summary: Python3 bindings for libsmbclient API from Samba
|
|
|
|
|
%{?python_provide:%python_provide python3-smbc}
|
|
|
|
|
|
|
|
|
|
%description -n python3-smbc
|
|
|
|
|
This package provides Python bindings for the libsmbclient API
|
|
|
|
|
This package provides Python 3 bindings for the libsmbclient API
|
|
|
|
|
from Samba, known as pysmbc. It was written for use with
|
|
|
|
|
system-config-printer, but can be put to other uses as well.
|
|
|
|
|
|
|
|
|
|
This is a ported release for python 3
|
|
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
|
Summary: Documentation for python-smbc
|
|
|
|
|
|
|
|
|
@ -55,12 +60,14 @@ epydoc -o html --html build/lib*/_smbc.so
|
|
|
|
|
%py2_install
|
|
|
|
|
%py3_install
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc COPYING README NEWS
|
|
|
|
|
%files -n python2-smbc
|
|
|
|
|
%doc README NEWS
|
|
|
|
|
%license COPYING
|
|
|
|
|
%{python2_sitearch}/*
|
|
|
|
|
|
|
|
|
|
%files -n python3-smbc
|
|
|
|
|
%doc COPYING README NEWS
|
|
|
|
|
%doc README NEWS
|
|
|
|
|
%license COPYING
|
|
|
|
|
%{python3_sitearch}/*
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
@ -68,6 +75,9 @@ epydoc -o html --html build/lib*/_smbc.so
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Nov 23 2015 Jiri Popelka <jpopelka@redhat.com> - 1.0.15.4-5
|
|
|
|
|
- python2 subpackage
|
|
|
|
|
|
|
|
|
|
* Fri Nov 20 2015 Jiri Popelka <jpopelka@redhat.com> - 1.0.15.4-4
|
|
|
|
|
- don't use py3dir, use python_provide
|
|
|
|
|
|
|
|
|
|