[python-tgcaptcha2] First import

Pierre-YvesChibon pingou at fedoraproject.org
Sat Mar 31 16:51:24 UTC 2012


commit f152bca2e53740639d97face0c91b04fbc454593
Author: Pierre-Yves Chibon <pingou at pingoured.fr>
Date:   Sat Mar 31 18:50:02 2012 +0200

    First import

 .gitignore             |    1 +
 python-tgcaptcha2.spec |   60 ++++++++++++++++++++++++++++++++++++++++++++++++
 sources                |    1 +
 3 files changed, 62 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..1a68a2c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/TGCaptcha2-0.2.0.tar.gz
diff --git a/python-tgcaptcha2.spec b/python-tgcaptcha2.spec
new file mode 100644
index 0000000..959f439
--- /dev/null
+++ b/python-tgcaptcha2.spec
@@ -0,0 +1,60 @@
+Name:           python-tgcaptcha2
+Version:        0.2.0
+Release:        2%{?dist}
+Summary:        TurboGears captcha plugin
+
+Group:          Development/Languages
+License:        MIT
+URL:            https://fedorahosted.org/tgcaptcha2/
+Source0:        https://fedorahosted.org/releases/t/g/tgcaptcha2/TGCaptcha2-%{version}.tar.gz
+
+BuildArch:      noarch
+BuildRequires:  python-devel TurboGears
+BuildRequires:  python-setuptools
+
+Requires:       TurboGears
+Requires:       espeak
+Requires:       python-fedora-turbogears
+
+%description
+TGCaptcha2 is a TurboGears widget that provides an easy way to 
+incorporate a captcha as part a form in an attempt to reduce spam or
+malicious activity.
+
+Features include:
+
+  * (Relatively) pain-free usage and validation inside of a regular
+      widget-based form
+  * Flexibility to add or extend image generation algorithms and the
+      text displayed in the image
+
+Enhanced with:
+
+  * Embed a word in the image or an equation that the user has to
+     solve
+  * Add an audio captch
+
+%prep
+%setup -q -n TGCaptcha2-%{version}
+
+sed -i -e "s|from setuptools|__requires__ = ['TurboJson >= 1.3']\nfrom setuptools|" setup.py
+
+%build
+%{__python} setup.py build
+
+%install
+%{__python} setup.py install --skip-build --root %{buildroot}
+
+
+%files
+%defattr(-,root,root,-)
+%doc README.txt CONTRIBUTORS.txt CHANGELOG.txt COPYRIGHT.txt
+%{python_sitelib}/*.egg-info
+%{python_sitelib}/tgcaptcha2/
+
+%changelog
+* Tue Mar 01 2012 Pierre-Yves Chibon <pingou at pingoured.fr> - 0.2.0-2
+- Clean spec
+
+* Tue Feb 14 2012 Pierre-Yves Chibon <pingou at pingoured.fr> - 0.2.0-1
+- Initial RPM Package.
diff --git a/sources b/sources
index e69de29..45e7b87 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+0b85973197459e2ed530a093ed27afca  TGCaptcha2-0.2.0.tar.gz


More information about the scm-commits mailing list