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
Name: python-smbc
Version: 1.0.15.4
Release: 3%{?dist}
Release: 4%{?dist}
URL: https://github.com/hamano/pysmbc
Source: http://pypi.python.org/packages/source/p/pysmbc/pysmbc-%{version}.tar.bz2
License: GPLv2+
@ -15,6 +15,11 @@ BuildRequires: python3-devel
BuildRequires: libsmbclient-devel >= 3.2
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
This package provides Python bindings for the libsmbclient API
from Samba, known as pysmbc. It was written for use with
@ -38,44 +43,34 @@ Summary: Documentation for python-smbc
Documentation for python-smbc.
%prep
%setup -q -n pysmbc-%{version}
rm -rf %{py3dir}
cp -a . %{py3dir}
%setup -n pysmbc-%{version}
%build
%py2_build
%py3_build
rm -rf html
epydoc -o html --html build/lib*/_smbc.so
pushd %{py3dir}
%py3_build
popd
%install
pushd %{py3dir}
%py3_install
popd
%py2_install
%py3_install
%files
%doc COPYING README NEWS
%{python_sitearch}/*
%files doc
%doc html
%{python2_sitearch}/*
%files -n python3-smbc
%doc COPYING README NEWS
%{python3_sitearch}/*
%files doc
%doc html
%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
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5

Loading…
Cancel
Save