3 %bcond_without tests # do not perform "make test"
4 %bcond_without python2 # CPython 2.x module
5 %bcond_with python3 # CPython 3.x module
7 %global module Flask-OpenID
8 Summary: OpenID support for Flask
9 Name: python-flask-openid
13 Group: Development/Libraries
14 Source0: http://pypi.python.org/packages/source/F/%{module}/%{module}-%{version}.tar.gz
15 # Source0-md5: 4ee3c1de53d27f4a8491afda1d67c665
16 URL: http://github.com/mitsuhiko/flask-openid/
17 BuildRequires: python-openid
18 BuildRequires: python-setuptools
19 BuildRequires: rpm-pythonprov
20 BuildRequires: rpmbuild(macros) >= 1.219
22 BuildRequires: python3-modules
23 BuildRequires: python3-openid
24 BuildRequires: python3-setuptools
26 Requires: python-openid
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 Flask-OpenID is an extension to flask that allows you to add openid
32 based authentication to your website in a matter of minutes.
34 This package includes the Python 2 version of the module.
36 %package -n python3-flask-openid
37 Summary: OpenID support for Flask
38 Group: Development/Libraries
39 Requires: python3-openid
41 %description -n python3-flask-openid
42 Flask-OpenID is an extension to flask that allows you to add openid
43 based authentication to your website in a matter of minutes.
45 This package includes the Python 3 version of the module.
48 %setup -q -n %{module}-%{version}
51 rm docs/_themes/.gitignore
55 %{__python} setup.py build --build-base build-2 %{?with_tests:test}
59 %{__python3} setup.py build --build-base build-3 %{?with_tests:test}
63 rm -rf $RPM_BUILD_ROOT
66 %{__python} setup.py \
67 build --build-base build-2 \
68 install --skip-build \
70 --root=$RPM_BUILD_ROOT
76 %{__python3} setup.py \
77 build --build-base build-3 \
78 install --skip-build \
80 --root=$RPM_BUILD_ROOT
84 rm -rf $RPM_BUILD_ROOT
88 %defattr(644,root,root,755)
89 %doc docs LICENSE PKG-INFO README
90 %{py_sitescriptdir}/flask_openid.py[co]
91 %{py_sitescriptdir}/Flask_OpenID-%{version}-py*.egg-info
95 %files -n python3-flask-openid
96 %defattr(644,root,root,755)
97 %doc docs README LICENSE PKG-INFO
98 %{py3_sitescriptdir}/flask_openid.py*
99 %{py3_sitescriptdir}/Flask_OpenID-%{version}-py*.egg-info