[python-flask-wtf: 1/2] clog

kumarpraveen kumarpraveen at fedoraproject.org
Mon Jun 9 05:52:57 UTC 2014


commit 679a8b78acf12c67239ca56c6ba1a9a5cc241c22
Author: Praveen Kumar <prkumar at redhat.com>
Date:   Mon Jun 9 11:17:55 2014 +0530

    clog

 .gitignore            |    1 +
 python-flask-wtf.spec |   61 +++++++++++++++++++++++++++++++++++++++++-------
 sources               |    2 +-
 3 files changed, 54 insertions(+), 10 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 5ea8bd2..a136636 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 /Flask-WTF-0.5.2.tar.gz
 Flask-WTF-0.8.tar.gz
+/Flask-WTF-0.9.5.tar.gz
diff --git a/python-flask-wtf.spec b/python-flask-wtf.spec
index f55cf70..ddcdd58 100644
--- a/python-flask-wtf.spec
+++ b/python-flask-wtf.spec
@@ -1,46 +1,89 @@
 %global mod_name Flask-WTF
+%global with_python3 1
 
 Name:           python-flask-wtf
-Version:        0.8
-Release:        3%{?dist}
+Version:        0.9.5
+Release:        1%{?dist}
 Summary:        Simple integration of Flask and WTForms
 
 Group:          Development/Libraries
 License:        BSD
-URL:            http://bitbucket.org/danjac/flask-wtf
+URL:            https://github.com/lepture/flask-wtf
 Source0:        http://pypi.python.org/packages/source/F/%{mod_name}/%{mod_name}-%{version}.tar.gz
 
 BuildArch:      noarch
 BuildRequires:  python2-devel
 BuildRequires:  python-wtforms > 1.0
 BuildRequires:  python-setuptools
+%if 0%{?with_python3}
+BuildRequires:  python3-devel
+BuildRequires:  python3-wtforms > 1.0
+BuildRequires:  python3-setuptools
+%endif
 
 Requires:   python-wtforms > 1.0
+%if 0%{?with_python3}
+Requires:   python-wtforms > 1.0
+%endif
+
 %description
 Flask-WTF offers simple integration with WTForms. This integration 
 includes optional CSRF handling for greater security.
 
+%if 0%{?with_python3}
+%package -n python3-flask-wtf
+Summary:        Simple integration of Flask and WTForms
+
+%description -n python3-flask-wtf
+Flask-WTF offers simple integration with WTForms. This integration 
+includes optional CSRF handling for greater security.
+%endif
 
 %prep
 %setup -q -n %{mod_name}-%{version}
 rm -f docs/index.rst.orig
 
+%if 0%{?with_python3}
+rm -rf %{py3dir}
+cp -a . %{py3dir}
+%endif
+
 %build
-CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
+%{__python2} setup.py build
 
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py build
+popd
+%endif
 
 %install
-rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+%{__python2} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
 
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+popd
+%endif
  
 %files
-%doc docs/ LICENSE PKG-INFO README 
+%doc docs/ LICENSE PKG-INFO
+%{python2_sitelib}/*.egg-info/
+%{python2_sitelib}/flask_wtf/
+
+%if 0%{?with_python3}
+%files -n python3-flask-wtf
+%doc docs/ LICENSE PKG-INFO
+%{python3_sitelib}/*.egg-info/
+%{python3_sitelib}/flask_wtf/
+%endif
 
-%{python_sitelib}/*.egg-info/
-%{python_sitelib}/flask_wtf/
 
 %changelog
+* Wed May 21 2014 Praveen Kumar <kumarpraveen.nitdgp at gmail.com> 0.9.5-1
+- Updated to new source
+- Add python3 support
+
 * Sun Aug 04 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.8-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
 
diff --git a/sources b/sources
index ee3849a..92417ab 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-33e640c1a18881b7a05f9c007378683e  Flask-WTF-0.8.tar.gz
+cd04d1855317d7d6ee235e3d70dde80d  Flask-WTF-0.9.5.tar.gz


More information about the scm-commits mailing list