diff --git a/pyenchant-drop-bootstrap-distribute.patch b/pyenchant-drop-bootstrap-distribute.patch new file mode 100644 index 0000000..a7c9dfd --- /dev/null +++ b/pyenchant-drop-bootstrap-distribute.patch @@ -0,0 +1,12 @@ +--- setup.py.orig 2013-09-13 13:37:21.776077338 -0600 ++++ setup.py 2013-09-13 13:37:36.518174652 -0600 +@@ -5,9 +5,6 @@ + # This script is placed in the public domain. + # + +- +-import distribute_setup +-distribute_setup.use_setuptools() + from setuptools import setup, find_packages, Extension + from distutils.archive_util import make_archive + diff --git a/python-pyenchant.changes b/python-pyenchant.changes index b9288ed..d35c901 100644 --- a/python-pyenchant.changes +++ b/python-pyenchant.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sat Sep 14 18:10:35 UTC 2013 - os-dev@jacraig.com + +- Add pyenchant-drop-bootstrap-distribute.patch: don't use the distribute + bootstrapping code, just use setuptools. Fixes build that was broken by the + attempt to download distribute. + ------------------------------------------------------------------- Fri May 4 09:27:09 UTC 2012 - toddrme2178@gmail.com diff --git a/python-pyenchant.spec b/python-pyenchant.spec index 9deda44..d4a00d4 100644 --- a/python-pyenchant.spec +++ b/python-pyenchant.spec @@ -26,10 +26,12 @@ Summary: Python bindings for the Enchant spellchecking system License: LGPL-2.1+ Group: Development/Languages/Python Source: http://pypi.python.org/packages/source/p/%{modname}/%{modname}-%{version}.tar.gz +# PATCH-FIX-OPENSUSE pyenchant-drop-bootstrap-distribute.patch +Patch1: pyenchant-drop-bootstrap-distribute.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: enchant BuildRequires: python-devel -BuildRequires: python-distribute +BuildRequires: python-setuptools Requires: enchant Obsoletes: python-enchant < %{version} Provides: PyEnchant @@ -45,6 +47,7 @@ PyEnchant is a spellchecking library for Python, based on the excellent Enchant %prep %setup -q -n %{modname}-%{version} +%patch1 %build python setup.py build