[python-django-simple-captcha] update to 0.4.2 and introduce py3 package

Matthias Runge mrunge at fedoraproject.org
Mon Apr 7 10:57:17 UTC 2014


commit 97f4051cd5cea6c75fe086539906284257f491a2
Author: Matthias Runge <mrunge at redhat.com>
Date:   Mon Apr 7 12:56:56 2014 +0200

    update to 0.4.2 and introduce py3 package

 .gitignore                        |    1 +
 python-django-simple-captcha.spec |   61 ++++++++++++++++++++++++++++++++++---
 sources                           |    2 +-
 3 files changed, 58 insertions(+), 6 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index a523ccb..f3ce9c7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 /django-simple-captcha-0.3.0.tar.gz
 /django-simple-captcha-0.3.3.tar.gz
+/django-simple-captcha-0.4.2.tar.gz
diff --git a/python-django-simple-captcha.spec b/python-django-simple-captcha.spec
index 1a4caa8..72b6308 100644
--- a/python-django-simple-captcha.spec
+++ b/python-django-simple-captcha.spec
@@ -1,10 +1,13 @@
+%if 0%{?fedora} > 12
+%global with_python3 1
+%endif
 %global pkgname django-simple-captcha
 %global obs_ver 0.3.0-2
 
 Summary:	Django application to add captcha images to any Django form
 Name:		python-django-simple-captcha
-Version:	0.3.3
-Release:	4%{?dist}
+Version:	0.4.2
+Release:	1%{?dist}
 License:	MIT
 Group:		Development/Libraries
 URL:		https://github.com/mbi/django-simple-captcha
@@ -16,38 +19,86 @@ BuildRequires:	python2-devel
 BuildRequires:	python-setuptools 
 BuildRequires:	gettext
 
+%if 0%{?with_python3}
+BuildRequires:	python3-devel
+BuildRequires:	python3-setupools
+%endif
+
 Requires:		python-django
-Requires:		python-imaging
+Requires:		python-pillow
 Requires:		flite
+Requires:       python-six
 
 Provides:		%{pkgname} = %{version}-%{release}
 Obsoletes:		%{pkgname} < %{obs_ver}
 
 
 %description
-Django Simple Captcha is an extremely simple, yet highly customizable 
+Django Simple Captcha is an extremely simple, yet highly customizable
 Django application to add captcha images to any Django form
 
+%if 0%{?with_python3}
+%package -n python3-%{pkgname}
+Summary:	Django application to add captcha images to any Django form
+
+Requires:   python3-django
+Requires:   python3-six
+Requires:   flite
+
+%description -n python3-%{pkgname}
+Django Simple Captcha is an extremely simple, yet highly customizable
+Django application to add captcha images to any Django form
+
+
+%endif
+
 %prep
 %setup -q -n %{pkgname}-%{version}
 
 # prevent pre-build egg-info in final package
 rm -rf django_simple_captcha.egg-info
 
+%if 0%{?with_python3}
+cp -a . %{py3dir}
+%endif
+
 %build
-%{__python} setup.py build
+%{__python2} setup.py build
+
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py build
+popd
+%endif
 
 %install
 %{__python} setup.py install -O1 --skip-build --root="%{buildroot}" --prefix="%{_prefix}"
 
 
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py install -O1 --skip-build --root="%{buildroot}" --prefix="%{_prefix}"
+popd
+%endif
 
 %files 
 %doc LICENSE MANIFEST.in PKG-INFO
 %{python_sitelib}/captcha/
 %{python_sitelib}/django_simple_captcha-%{version}-py2*
 
+%if 0%{?with_python3}
+%files -n python3-%{pkgname}
+%doc LICENSE MANIFEST.in PKG-INFO
+%{python3_sitelib}/captcha/
+%{python3_sitelib}/django_simple_captcha-%{version}-py3*
+
+%endif
+
 %changelog
+* Mon Apr 07 2014 Matthias Runge <mrunge at redhat.com> - 0.4.2-1
+- update to 0.4.2
+- add py3 support (rhbz#1045894)
+
 * Sun Aug 04 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.3.3-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
 
diff --git a/sources b/sources
index a720ce9..8de1dd8 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-28acf0980e49103ee4a1301382c33418  django-simple-captcha-0.3.3.tar.gz
+da81d1d4c1954df91ccfc7558f52c0a5  django-simple-captcha-0.4.2.tar.gz


More information about the scm-commits mailing list