|
|
4b307d1 |
%global pypi_name Flask-Login
|
|
|
f0ff074 |
|
|
|
f0ff074 |
%if 0%{?fedora}
|
|
|
22cc840 |
%global with_python3 1
|
|
|
f0ff074 |
%else
|
|
|
f0ff074 |
# EL doesn't have Python 3
|
|
|
f0ff074 |
%global with_python3 0
|
|
|
f0ff074 |
%endif
|
|
|
f0ff074 |
|
|
|
f0ff074 |
%if 0%{?rhel} && 0%{?rhel} < 7
|
|
|
f0ff074 |
# EL 6 doesn't have this macro
|
|
|
f0ff074 |
%global __python2 %{__python}
|
|
|
f0ff074 |
%global python2_sitelib %{python_sitelib}
|
|
|
f0ff074 |
%endif
|
|
|
22cc840 |
|
|
|
4b307d1 |
Name: python-flask-login
|
|
|
f6b9db8 |
Version: 0.3.0
|
|
|
e656161 |
Release: 8%{?dist}
|
|
|
4b307d1 |
Summary: User session management for Flask
|
|
|
4b307d1 |
|
|
|
4b307d1 |
License: MIT
|
|
|
22cc840 |
URL: https://github.com/maxcountryman/flask-login
|
|
|
4b307d1 |
Source0: https://pypi.python.org/packages/source/F/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
|
|
4b307d1 |
BuildArch: noarch
|
|
|
4b307d1 |
|
|
|
4b307d1 |
BuildRequires: python2-devel
|
|
|
c34e825 |
BuildRequires: python-setuptools
|
|
|
22cc840 |
|
|
|
22cc840 |
%if %{?with_python3}
|
|
|
22cc840 |
BuildRequires: python3-devel
|
|
|
c34e825 |
BuildRequires: python3-setuptools
|
|
|
22cc840 |
%endif # if with_python3
|
|
|
4b307d1 |
|
|
|
e656161 |
%global _description\
|
|
|
e656161 |
Flask-Login provides user session management for Flask. It handles the common\
|
|
|
e656161 |
tasks of logging in, logging out, and remembering your users' sessions over\
|
|
|
e656161 |
extended periods of time.
|
|
|
e656161 |
|
|
|
e656161 |
%description %_description
|
|
|
e656161 |
|
|
|
e656161 |
%package -n python2-flask-login
|
|
|
e656161 |
Summary: %summary
|
|
|
4b307d1 |
Requires: python-flask
|
|
|
e656161 |
%{?python_provide:%python_provide python2-flask-login}
|
|
|
4b307d1 |
|
|
|
e656161 |
%description -n python2-flask-login %_description
|
|
|
4b307d1 |
|
|
|
22cc840 |
%if 0%{?with_python3}
|
|
|
22cc840 |
%package -n python3-flask-login
|
|
|
22cc840 |
Summary: User session management for Flask
|
|
|
22cc840 |
|
|
|
22cc840 |
Requires: python3-flask
|
|
|
22cc840 |
|
|
|
22cc840 |
%description -n python3-flask-login
|
|
|
22cc840 |
Flask-Login provides user session management for Flask. It handles the common
|
|
|
22cc840 |
tasks of logging in, logging out, and remembering your users' sessions over
|
|
|
22cc840 |
extended periods of time.
|
|
|
22cc840 |
%endif # with_python3
|
|
|
22cc840 |
|
|
|
22cc840 |
|
|
|
4b307d1 |
%prep
|
|
|
4b307d1 |
%setup -q -n %{pypi_name}-%{version}
|
|
|
4b307d1 |
rm -rf %{pypi_name}.egg-info
|
|
|
4b307d1 |
|
|
|
22cc840 |
|
|
|
22cc840 |
%if 0%{?with_python3}
|
|
|
22cc840 |
rm -rf %{py3dir}
|
|
|
22cc840 |
cp -a . %{py3dir}
|
|
|
22cc840 |
find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
|
|
|
22cc840 |
|
|
|
22cc840 |
%endif # with_python3
|
|
|
22cc840 |
|
|
|
22cc840 |
|
|
|
4b307d1 |
%build
|
|
|
22cc840 |
%{__python2} setup.py build
|
|
|
22cc840 |
|
|
|
22cc840 |
%if 0%{?with_python3}
|
|
|
22cc840 |
pushd %{py3dir}
|
|
|
22cc840 |
%{__python3} setup.py build
|
|
|
22cc840 |
popd
|
|
|
22cc840 |
%endif # with_python3
|
|
|
22cc840 |
|
|
|
4b307d1 |
|
|
|
4b307d1 |
%install
|
|
|
22cc840 |
# Must do the subpackages' install first because the scripts in /usr/bin are
|
|
|
22cc840 |
# overwritten with every setup.py install (and we want the python2 version
|
|
|
22cc840 |
# to be the default for now).
|
|
|
22cc840 |
%if 0%{?with_python3}
|
|
|
22cc840 |
pushd %{py3dir}
|
|
|
22cc840 |
%{__python3} setup.py install --skip-build --root %{buildroot}
|
|
|
22cc840 |
popd
|
|
|
22cc840 |
%endif # with_python3
|
|
|
22cc840 |
|
|
|
22cc840 |
%{__python2} setup.py install --skip-build --root %{buildroot}
|
|
|
22cc840 |
|
|
|
22cc840 |
|
|
|
4b307d1 |
|
|
|
e656161 |
%files -n python2-flask-login
|
|
|
22cc840 |
%doc README.markdown
|
|
|
22cc840 |
%license LICENSE
|
|
|
22cc840 |
%{python2_sitelib}/*
|
|
|
22cc840 |
%if 0%{?with_python3}
|
|
|
22cc840 |
|
|
|
22cc840 |
%files -n python3-flask-login
|
|
|
22cc840 |
%doc README.markdown
|
|
|
22cc840 |
%license LICENSE
|
|
|
22cc840 |
%{python3_sitelib}/*
|
|
|
22cc840 |
%endif # with_python3
|
|
|
22cc840 |
|
|
|
4b307d1 |
|
|
|
4b307d1 |
%changelog
|
|
|
e656161 |
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.3.0-8
|
|
|
e656161 |
- Python 2 binary package renamed to python2-flask-login
|
|
|
e656161 |
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
|
|
|
e656161 |
|
|
|
88c529a |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-7
|
|
|
88c529a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
88c529a |
|
|
|
31ec42d |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-6
|
|
|
31ec42d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
31ec42d |
|
|
|
fa64089 |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.3.0-5
|
|
|
fa64089 |
- Rebuild for Python 3.6
|
|
|
fa64089 |
|
|
|
d5c498a |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-4
|
|
|
d5c498a |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
d5c498a |
|
|
|
32e7ca1 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-3
|
|
|
32e7ca1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
32e7ca1 |
|
|
|
c8ec5bf |
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-2
|
|
|
c8ec5bf |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
c8ec5bf |
|
|
|
f6b9db8 |
* Mon Sep 14 2015 Richard Marko <rmarko@fedoraproject.org> - 0.3.0-1
|
|
|
f6b9db8 |
- Update to 0.3.0
|
|
|
f6b9db8 |
|
|
|
dcfe9ec |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.11-4
|
|
|
dcfe9ec |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
dcfe9ec |
|
|
|
22cc840 |
* Sat Jan 03 2015 Miroslav Suchy <msuchy@redhat.com> - 0.2.11-3
|
|
|
22cc840 |
- add python3- subpackage
|
|
|
22cc840 |
|
|
|
de24195 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.11-2
|
|
|
de24195 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
de24195 |
|
|
|
8bd033b |
* Fri May 30 2014 Richard Marko <rmarko@fedoraproject.org> - 0.2.11-1
|
|
|
8bd033b |
- Update to 0.2.11
|
|
|
8bd033b |
|
|
|
c2746db |
* Mon Aug 26 2013 Richard Marko <rmarko@fedoraproject.org> - 0.2.7-1
|
|
|
c2746db |
- Update to 0.2.7
|
|
|
c2746db |
|
|
|
85d2458 |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.4-4
|
|
|
85d2458 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
85d2458 |
|
|
|
e1bee82 |
* Sun Jul 07 2013 Richard Marko <rmarko@fedoraproject.org> - 0.2.4-3
|
|
|
4b307d1 |
- Removed upstream egg
|
|
|
4b307d1 |
|
|
|
e1bee82 |
* Thu Jul 04 2013 Richard Marko <rmarko@fedoraproject.org> - 0.2.4-2
|
|
|
4b307d1 |
- Added python-setuptools to BuildRequires
|
|
|
4b307d1 |
- Fixed Summary
|
|
|
4b307d1 |
|
|
|
4b307d1 |
* Tue Jul 02 2013 Richard Marko <rmarko@fedoraproject.org> - 0.2.4-1
|
|
|
4b307d1 |
- Initial packaging attempt
|