|
|
@ -1,7 +1,3 @@
|
|
|
|
%if 0%{?fedora} > 12
|
|
|
|
|
|
|
|
%global with_python3 1
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%{?filter_setup:
|
|
|
|
%{?filter_setup:
|
|
|
|
%filter_provides_in %{python_sitearch}/.*\.so$
|
|
|
|
%filter_provides_in %{python_sitearch}/.*\.so$
|
|
|
|
%filter_setup
|
|
|
|
%filter_setup
|
|
|
@ -10,16 +6,13 @@
|
|
|
|
Summary: Python bindings for libsmbclient API from Samba
|
|
|
|
Summary: Python bindings for libsmbclient API from Samba
|
|
|
|
Name: python-smbc
|
|
|
|
Name: python-smbc
|
|
|
|
Version: 1.0.13
|
|
|
|
Version: 1.0.13
|
|
|
|
Release: 12%{?dist}
|
|
|
|
Release: 13%{?dist}
|
|
|
|
URL: http://cyberelk.net/tim/software/pysmbc/
|
|
|
|
URL: http://cyberelk.net/tim/software/pysmbc/
|
|
|
|
Source: http://pypi.python.org/packages/source/p/pysmbc/pysmbc-%{version}.tar.bz2
|
|
|
|
Source: http://pypi.python.org/packages/source/p/pysmbc/pysmbc-%{version}.tar.bz2
|
|
|
|
Patch1: python-smbc-pkg-config.patch
|
|
|
|
Patch1: python-smbc-pkg-config.patch
|
|
|
|
License: GPLv2+
|
|
|
|
License: GPLv2+
|
|
|
|
Group: Development/Languages
|
|
|
|
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
%endif
|
|
|
|
|
|
|
|
BuildRequires: libsmbclient-devel >= 3.2
|
|
|
|
BuildRequires: libsmbclient-devel >= 3.2
|
|
|
|
BuildRequires: epydoc
|
|
|
|
BuildRequires: epydoc
|
|
|
|
|
|
|
|
|
|
|
@ -28,10 +21,8 @@ This package provides Python bindings for the libsmbclient API
|
|
|
|
from Samba, known as pysmbc. It was written for use with
|
|
|
|
from Samba, known as pysmbc. It was written for use with
|
|
|
|
system-config-printer, but can be put to other uses as well.
|
|
|
|
system-config-printer, but can be put to other uses as well.
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
|
|
|
%package -n python3-smbc
|
|
|
|
%package -n python3-smbc
|
|
|
|
Summary: Python3 bindings for libsmbclient API from Samba
|
|
|
|
Summary: Python3 bindings for libsmbclient API from Samba
|
|
|
|
Group: Development/Languages
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n python3-smbc
|
|
|
|
%description -n python3-smbc
|
|
|
|
This package provides Python bindings for the libsmbclient API
|
|
|
|
This package provides Python bindings for the libsmbclient API
|
|
|
@ -39,11 +30,9 @@ from Samba, known as pysmbc. It was written for use with
|
|
|
|
system-config-printer, but can be put to other uses as well.
|
|
|
|
system-config-printer, but can be put to other uses as well.
|
|
|
|
|
|
|
|
|
|
|
|
This is a ported release for python 3
|
|
|
|
This is a ported release for python 3
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation for python-smbc
|
|
|
|
Summary: Documentation for python-smbc
|
|
|
|
Group: Documentation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
%description doc
|
|
|
|
Documentation for python-smbc.
|
|
|
|
Documentation for python-smbc.
|
|
|
@ -52,56 +41,48 @@ Documentation for python-smbc.
|
|
|
|
%setup -q -n pysmbc-%{version}
|
|
|
|
%setup -q -n pysmbc-%{version}
|
|
|
|
%patch1 -p1 -b .pkg-config
|
|
|
|
%patch1 -p1 -b .pkg-config
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
|
|
|
rm -rf %{py3dir}
|
|
|
|
rm -rf %{py3dir}
|
|
|
|
cp -a . %{py3dir}
|
|
|
|
cp -a . %{py3dir}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
CFLAGS="%{optflags}" %{__python} setup.py build
|
|
|
|
%py2_build
|
|
|
|
rm -rf html
|
|
|
|
rm -rf html
|
|
|
|
epydoc -o html --html build/lib*/smbc.so
|
|
|
|
epydoc -o html --html build/lib*/smbc.so
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
|
|
|
pushd %{py3dir}
|
|
|
|
pushd %{py3dir}
|
|
|
|
CFLAGS="%{optflags}" %{__python3} setup.py build
|
|
|
|
%py3_build
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
|
|
|
pushd %{py3dir}
|
|
|
|
pushd %{py3dir}
|
|
|
|
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
|
%py3_install
|
|
|
|
chmod 755 %{buildroot}%{python3_sitearch}/smbc*.so
|
|
|
|
chmod 755 %{buildroot}%{python3_sitearch}/smbc*.so
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
|
%py2_install
|
|
|
|
chmod 755 %{buildroot}%{python_sitearch}/smbc.so
|
|
|
|
chmod 755 %{buildroot}%{python_sitearch}/smbc.so
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
|
|
|
%doc COPYING README NEWS
|
|
|
|
%doc COPYING README NEWS
|
|
|
|
%{python_sitearch}/smbc.so
|
|
|
|
%{python_sitearch}/smbc.so
|
|
|
|
%{python_sitearch}/pysmbc*.egg-info
|
|
|
|
%{python_sitearch}/pysmbc*.egg-info
|
|
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
|
|
|
%doc html
|
|
|
|
%doc html
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
|
|
|
%files -n python3-smbc
|
|
|
|
%files -n python3-smbc
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
|
|
|
%doc COPYING README NEWS
|
|
|
|
%doc COPYING README NEWS
|
|
|
|
%{python3_sitearch}/smbc.cpython-3*.so
|
|
|
|
%{python3_sitearch}/smbc.cpython-3*.so
|
|
|
|
%{python3_sitearch}/pysmbc*.egg-info
|
|
|
|
%{python3_sitearch}/pysmbc*.egg-info
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Tue Aug 11 2015 Jiri Popelka <jpopelka@redhat.com> - 1.0.13-13
|
|
|
|
|
|
|
|
- %%py_build && %%py_install
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.13-12
|
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.13-12
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|