Accepting request 199192 from devel:languages:python

Fix build broken by attempted download of distribute (forwarded request 199067 from poorboywilly)

OBS-URL: https://build.opensuse.org/request/show/199192
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyenchant?expand=0&rev=8
This commit is contained in:
Stephan Kulow 2013-09-16 14:34:37 +00:00 committed by Git OBS Bridge
commit a72c85910d
3 changed files with 23 additions and 1 deletions

View File

@ -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

View File

@ -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

View File

@ -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