[python-flask-openid] clog

kumarpraveen kumarpraveen at fedoraproject.org
Thu Jan 23 07:30:50 UTC 2014


commit a98250acdb7d6b0cd9947a656f867f6a433cfcad
Author: Praveen Kumar <kumarpraveen.nitdgp at gmail.com>
Date:   Thu Jan 23 13:00:43 2014 +0530

    clog

 python-flask-openid.spec |   57 +++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 52 insertions(+), 5 deletions(-)
---
diff --git a/python-flask-openid.spec b/python-flask-openid.spec
index 56eb6cd..5d1409d 100644
--- a/python-flask-openid.spec
+++ b/python-flask-openid.spec
@@ -1,8 +1,9 @@
 %global mod_name Flask-OpenID
+%global with_python3 0
 
 Name:           python-flask-openid
-Version:        1.0.1
-Release:        6%{?dist}
+Version:        1.2
+Release:        1%{?dist}
 Summary:        OpenID support for Flask
 
 Group:          Development/Libraries
@@ -16,33 +17,79 @@ BuildRequires:  python-openid
 BuildRequires:  python-setuptools
 Requires:  python-openid
 
+%if 0%{?with_python3}
+BuildRequires:  python3-devel
+BuildRequires:  python3-setuptools
+BuildRequires:  python3-openid
+%endif
+
 %description
 Flask-OpenID is an extension to flask that allows you to add openid
 based authentication to your website in a matter of minutes.
 
+%if 0%{?with_python3}
+%package -n python3-flask-openid
+Summary:        OpenID support for Flask
+Group:          Development/Libraries
+Requires:       python3-openid
+
+%description -n python3-flask-openid
+Flask-OpenID is an extension to flask that allows you to add openid
+based authentication to your website in a matter of minutes.
+
+This package includes the python 3 version of the module.
+%endif # with_python3
+
+
 %prep
 %setup -q -n %{mod_name}-%{version}
+rm -f docs/_themes/.git
+rm -f docs/_themes/.gitignore
 rm -f docs/.DS_Store
 rm -f docs/_static/.DS_Store
 rm -f docs/_static/._.DS_Store
 rm -f docs/._.DS_Store
 
+%if 0%{?with_python3}
+rm -rf %{py3dir}
+cp -a . %{py3dir}
+%endif # with_python3
+
 %build
 CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
 
+%if 0%{?with_python3}
+pushd %{py3dir}
+CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
+popd
+%endif
 
 %install
-rm -rf $RPM_BUILD_ROOT
 %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
 
+%if 0%{?with_python3}
+pushd %{py3dir}
+mkdir -p $RPM_BUILD_ROOT%{python3_sitelib}
+%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+popd
+%endif
  
 %files
 %doc docs LICENSE PKG-INFO README
-%{python_sitelib}/*-nspkg.pth
 %{python_sitelib}/*.egg-info/
-%{python_sitelib}/flaskext/*.py*
+%{python_sitelib}/*.py*
+
+%if 0%{?with_python3}
+%files -n python3-flask-openid
+%doc docs README LICENSE PKG-INFO
+%{python3_sitelib}/*.egg-info/
+%{python3_sitelib}/*.py*
+%endif # with_python3
 
 %changelog
+* Thu Jan 23 2014 Praveen Kumar <kumarpraveen.nitdgp at gmail.com> 1.2-1
+- Fix #1056523
+
 * Sun Aug 04 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0.1-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
 


More information about the scm-commits mailing list