don't use py3dir, use python_provide

f38
Jiri Popelka 9 years ago
parent 4faf2d80a6
commit c9916caf60

@ -6,7 +6,7 @@
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.15.4 Version: 1.0.15.4
Release: 3%{?dist} Release: 4%{?dist}
URL: https://github.com/hamano/pysmbc URL: https://github.com/hamano/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
License: GPLv2+ License: GPLv2+
@ -15,6 +15,11 @@ BuildRequires: python3-devel
BuildRequires: libsmbclient-devel >= 3.2 BuildRequires: libsmbclient-devel >= 3.2
BuildRequires: epydoc BuildRequires: epydoc
# defined in /usr/lib/rpm/macros.d/macros.python
# if python_provide() is defined, call python_provide(python-smbc)
# which may eventually add Provides: ... (see the function definition)
%{?python_provide:%python_provide python-smbc}
%description %description
This package provides Python bindings for the libsmbclient API 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
@ -38,44 +43,34 @@ Summary: Documentation for python-smbc
Documentation for python-smbc. Documentation for python-smbc.
%prep %prep
%setup -q -n pysmbc-%{version} %setup -n pysmbc-%{version}
rm -rf %{py3dir}
cp -a . %{py3dir}
%build %build
%py2_build %py2_build
%py3_build
rm -rf html rm -rf html
epydoc -o html --html build/lib*/_smbc.so epydoc -o html --html build/lib*/_smbc.so
pushd %{py3dir}
%py3_build
popd
%install %install
pushd %{py3dir}
%py3_install
popd
%py2_install %py2_install
%py3_install
%files %files
%doc COPYING README NEWS %doc COPYING README NEWS
%{python_sitearch}/* %{python2_sitearch}/*
%files doc
%doc html
%files -n python3-smbc %files -n python3-smbc
%doc COPYING README NEWS %doc COPYING README NEWS
%{python3_sitearch}/* %{python3_sitearch}/*
%files doc
%doc html
%changelog %changelog
* Fri Nov 20 2015 Jiri Popelka <jpopelka@redhat.com> - 1.0.15.4-4
- don't use py3dir, use python_provide
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.15.4-3 * Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.15.4-3
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5

Loading…
Cancel
Save