[python-tgcaptcha] * Tue Aug 3 2010 Toshio Kuratomi <toshio at fedoraproject.org> - 0.11-9 - Fix build to pull in old cher

Toshio くらとみ toshio at fedoraproject.org
Wed Aug 4 03:30:10 UTC 2010


commit 52b0fc58b59c2616b9822a876d2772d16e038cdc
Author: Toshio Kuratomi <toshio at fedoraproject.org>
Date:   Tue Aug 3 23:30:00 2010 -0400

    * Tue Aug 3 2010 Toshio Kuratomi <toshio at fedoraproject.org> - 0.11-9
    - Fix build to pull in old cherrypy

 python-tgcaptcha.spec |   14 +++++++++-----
 tgcaptcha-setup.patch |   10 ++++++++++
 2 files changed, 19 insertions(+), 5 deletions(-)
---
diff --git a/python-tgcaptcha.spec b/python-tgcaptcha.spec
index 3da71a8..9f3bce9 100644
--- a/python-tgcaptcha.spec
+++ b/python-tgcaptcha.spec
@@ -1,17 +1,18 @@
-%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
 
-%define         eggname TGCaptcha
+%global         eggname TGCaptcha
 
 Name:           python-tgcaptcha
 Version:        0.11
-Release:        8%{?dist}
-Summary:        A TurboGears CAPTCHA widget for forms
+Release:        9%{?dist}
+Summary:        TurboGears CAPTCHA widget for forms
 
 Group:          Development/Libraries
 License:        MIT
 URL:            http://code.google.com/p/tgcaptcha
 Source0:        http://tgcaptcha.googlecode.com/files/%{eggname}-%{version}.tar.gz
 Patch0:         python-tgcaptcha-system-tuffy.patch
+Patch1: tgcaptcha-setup.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
 
@@ -29,7 +30,7 @@ captcha as part a form in an attempt to reduce spam or malicious activity.
 %prep
 %setup -q -n %{eggname}-%{version}
 %patch0 -p1 -b .tuffy
-
+%patch1 -p1 -b .oldcp
 
 %build
 rm -rf tgcaptcha/static/fonts/
@@ -53,6 +54,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Tue Aug 3 2010 Toshio Kuratomi <toshio at fedoraproject.org> - 0.11-9
+- Fix build to pull in old cherrypy
+
 * Thu Jul 22 2010 David Malcolm <dmalcolm at redhat.com> - 0.11-8
 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
 
diff --git a/tgcaptcha-setup.patch b/tgcaptcha-setup.patch
new file mode 100644
index 0000000..5340626
--- /dev/null
+++ b/tgcaptcha-setup.patch
@@ -0,0 +1,10 @@
+Index: TGCaptcha-0.11/setup.py
+===================================================================
+--- TGCaptcha-0.11.orig/setup.py
++++ TGCaptcha-0.11/setup.py
+@@ -1,3 +1,5 @@
++__requires__ = 'TurboGears'
++
+ from setuptools import setup, find_packages
+ from turbogears.finddata import find_package_data
+ 


More information about the scm-commits mailing list