1e642d
%global modname flask
1e642d
%global srcname Flask
1e642d
1e642d
Name:           python-%{modname}
1e642d
Version:        2.0.1
1e642d
Release:        1.1%{?dist}
1e642d
Epoch:          1
1e642d
Summary:        A micro-framework for Python based on Werkzeug, Jinja 2 and good intentions
1e642d
1e642d
License:        BSD
1e642d
URL:            http://flask.pocoo.org/
1e642d
Source0:        %{pypi_source}
1e642d
1e642d
BuildArch:      noarch
1e642d
1e642d
%global _description \
1e642d
Flask is called a “micro-framework” because the idea to keep the core\
1e642d
simple but extensible. There is no database abstraction layer, no form\
1e642d
validation or anything else where different libraries already exist\
1e642d
that can handle that. However Flask knows the concept of extensions\
1e642d
that can add this functionality into your application as if it was\
1e642d
implemented in Flask itself. There are currently extensions for object\
1e642d
relational mappers, form validation, upload handling, various open\
1e642d
authentication technologies and more.
1e642d
1e642d
%description %{_description}
1e642d
1e642d
%package -n python3-%{modname}
1e642d
Summary:        %{summary}
1e642d
%{?python_provide:%python_provide python3-%{modname}}
1e642d
BuildRequires:  python3-devel
1e642d
BuildRequires:  python3dist(setuptools)
1e642d
BuildRequires:  python3dist(werkzeug) >= 0.15
1e642d
BuildRequires:  python3dist(jinja2) >= 2.10.1
1e642d
BuildRequires:  python3dist(itsdangerous) >= 0.24
1e642d
BuildRequires:  python3dist(click) >= 5.1
1e642d
BuildRequires:  python3dist(pytest)
1e642d
Obsoletes:      python2-%{modname} < 1:1.0.2-9
1e642d
1e642d
%description -n python3-%{modname} %{_description}
1e642d
1e642d
Python 3 version.
1e642d
1e642d
%package doc
1e642d
Summary:        Documentation for %{name}
1e642d
Obsoletes:      python3-%{modname}-doc < 1:0.11.1-3
1e642d
1e642d
%description doc
1e642d
Documentation and examples for %{name}.
1e642d
1e642d
%prep
1e642d
%autosetup -n %{srcname}-%{version}
1e642d
rm -rf examples/flaskr/
1e642d
rm -rf examples/minitwit/
1e642d
# jinja 2.11 is included in CentOS9 and update to 3.0 in flask is unjustified
1e642d
# let's try with the version in CentOS
1e642d
sed -i 's/Jinja2\ >=\ 3\.0/Jinja2/' setup.py
1e642d
1e642d
%build
1e642d
%py3_build
1e642d
1e642d
%install
1e642d
%py3_install
1e642d
mv %{buildroot}%{_bindir}/%{modname}{,-%{python3_version}}
1e642d
ln -s %{modname}-%{python3_version} %{buildroot}%{_bindir}/%{modname}-3
1e642d
ln -sf %{modname}-3 %{buildroot}%{_bindir}/%{modname}
1e642d
1e642d
%check
1e642d
%pytest
1e642d
1e642d
%files -n python3-%{modname}
1e642d
%license LICENSE.rst
1e642d
%doc CHANGES.rst README.rst
1e642d
%{_bindir}/%{modname}
1e642d
%{_bindir}/%{modname}-3
1e642d
%{_bindir}/%{modname}-%{python3_version}
1e642d
%{python3_sitelib}/%{srcname}-*.egg-info/
1e642d
%{python3_sitelib}/%{modname}/
1e642d
1e642d
%files doc
1e642d
%license LICENSE.rst
1e642d
%doc examples
1e642d
1e642d
%changelog
1e642d
* Tue Sep 14 2021 Alfredo Moralejo <amoralej@redhat.com> - 2.0.1-1.1
1e642d
- Remove minimal vesion of jinja2
1e642d
1e642d
* Tue Jun 22 2021 Lumír Balhar <lbalhar@redhat.com> - 2.0.1-1
1e642d
- Update to 2.0.1
1e642d
Resolves: rhbz#1950465
1e642d
1e642d
* Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 1:1.1.2-6
1e642d
- Rebuilt for Python 3.10
1e642d
1e642d
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.1.2-5
1e642d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
1e642d
1e642d
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.1.2-4
1e642d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
1e642d
1e642d
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 1:1.1.2-3
1e642d
- Rebuilt for Python 3.9
1e642d
1e642d
* Wed Apr 08 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 1:1.1.2-2
1e642d
- Simplify packaging
1e642d
1e642d
* Fri Apr 03 2020 Fedora Release Monitoring <release-monitoring@fedoraproject.org> - 1:1.1.2-1
1e642d
- Update to 1.1.2 (#1820730)
1e642d
1e642d
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.1.1-2
1e642d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
1e642d
1e642d
* Tue Jan 07 2020 Miro Hrončok <mhroncok@redhat.com> - 1:1.1.1-1
1e642d
- Update to 1.1.1 (#1711414)
1e642d
1e642d
* Wed Oct 30 2019 Miro Hrončok <mhroncok@redhat.com> - 1:1.0.2-9
1e642d
- Obsolete proper version of python2-flask to fix an upgrade path issue (#1767198)
1e642d
1e642d
* Wed Sep 18 2019 Miro Hrončok <mhroncok@redhat.com> - 1:1.0.2-8
1e642d
- Subpackage python2-flask has been removed
1e642d
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
1e642d
1e642d
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 1:1.0.2-7
1e642d
- Rebuilt for Python 3.8
1e642d
1e642d
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.0.2-6
1e642d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
1e642d
1e642d
* Fri Mar 08 2019 François Cami <fcami@fedoraproject.org> - 1:1.0.2-5
1e642d
- Remove python2-sphinx dependency since it's not used anymore.
1e642d
1e642d
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.0.2-4
1e642d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
1e642d
1e642d
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.0.2-3
1e642d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
1e642d
1e642d
* Mon Jun 18 2018 Miro Hrončok <mhroncok@redhat.com> - 1:1.0.2-2
1e642d
- Rebuilt for Python 3.7
1e642d
1e642d
* Fri Jun 01 2018 Ken Dreyer <ktdreyer@ktdreyer.com> 1:1.0.2-1
1e642d
- Update to 1.0.2 (rhbz#1572414)
1e642d
- Do not build Sphinx docs (pallet-sphinx-themes not available)
1e642d
1e642d
* Fri Apr 27 2018 Ricky Elrod <relrod@redhat.com> - 1:1.0-1
1e642d
- new version 
1e642d
1e642d
* Thu Feb 15 2018 itamar <itamar@ispbrasil.com.br> - 1:0.12.2-1
1e642d
- new version
1e642d
1e642d
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.11.1-8
1e642d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
1e642d
1e642d
* Thu Jan 18 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1:0.11.1-7
1e642d
- Update Python 2 dependency declarations to new packaging standards
1e642d
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
1e642d
1e642d
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.11.1-6
1e642d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
1e642d
1e642d
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.11.1-5
1e642d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
1e642d
1e642d
* Tue Dec 13 2016 Stratakis Charalampos <cstratak@redhat.com> - 1:0.11.1-4
1e642d
- Rebuild for Python 3.6
1e642d
- Have rpmbuild to not fail on python3 test failures
1e642d
1e642d
* Mon Aug 22 2016 Igor Gnatenko <ignatenko@redhat.com> - 1:0.11.1-3
1e642d
- Fix FTBFS
1e642d
- Ton of fixes in spec
1e642d
1e642d
* Tue Aug 16 2016 Ricky Elrod <relrod@redhat.com> - 1:0.11.1-2
1e642d
- Attempt a completely fresh build with new NVR.
1e642d
1e642d
* Tue Aug 16 2016 Ricky Elrod <relrod@redhat.com> - 1:0.11.1-1
1e642d
- Latest upstream release.
1e642d
1e642d
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.10.1-9
1e642d
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
1e642d
1e642d
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.10.1-8
1e642d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
1e642d
1e642d
* Wed Oct 14 2015 Robert Kuska <rkuska@redhat.com> - 1:0.10.1-7
1e642d
- Rebuilt for Python3.5 rebuild
1e642d
1e642d
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.10.1-6
1e642d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
1e642d
1e642d
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.10.1-5
1e642d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
1e642d
1e642d
* Tue May 13 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 1:0.10.1-4
1e642d
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
1e642d
- Minor fix to rhel macro logic
1e642d
1e642d
* Mon Jul 29 2013 Haïkel Guémar <hguemar@fedoraproject.org> - 1:0.10.1-3
1e642d
- fix wrong requires on sphinx (RHBZ #989361)
1e642d
1e642d
* Sat Jul 20 2013 Ricky Elrod <codeblock@fedoraproject.org> - 1:0.10.1-2
1e642d
- Nuke a Python3 specific file owned by python3-setuptools.
1e642d
1e642d
* Sat Jun 15 2013 Haïkel Guémar <hguemar@fedoraproject.org> - 1:0.10.1-1
1e642d
- upstream 0.10.1
1e642d
1e642d
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.9-6
1e642d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
1e642d
1e642d
* Fri Aug 17 2012 Ricky Elrod <codeblock@fedoraproject.org> - 0.9-5
1e642d
- Add epoch to subpackage Requires.
1e642d
1e642d
* Wed Aug 8 2012 Ricky Elrod <codeblock@fedoraproject.org> - 0.9-4
1e642d
- Fix changelog messup.
1e642d
1e642d
* Wed Aug 8 2012 Ricky Elrod <codeblock@fedoraproject.org> - 0.9-3
1e642d
- Unified spec for EL6 and Fedora
1e642d
1e642d
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.0-2
1e642d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
1e642d
1e642d
* Mon Jul  2 2012 Haïkel Guémar <hguemar@fedoraproject.org> - 0.9.0-1
1e642d
- upstream 0.9
1e642d
- spec cleanups
1e642d
1e642d
* Sun Jul  1 2012 Haïkel Guémar <hguemar@fedoraproject.org> - 0.8.1-1
1e642d
- upstream 0.8.1 (minor bugfixes)
1e642d
1e642d
* Wed Jan 25 2012 Haïkel Guémar <hguemar@fedoraproject.org> - 0.8.0-1
1e642d
- upstream 0.8
1e642d
1e642d
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2-3
1e642d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
1e642d
1e642d
* Wed Nov 16 2011 Dan Young <dyoung@mesd.k12.or.us> - 0.7.2-2
1e642d
- don't own easy-install.pth
1e642d
1e642d
* Fri Jul 22 2011 Steve Milner <smilner@fedoraproject.org> - 0.7.2-1
1e642d
- update for upstream release
1e642d
1e642d
* Thu Feb 24 2011 Dan Young <dyoung@mesd.k12.or.us> - 0.6.1-2
1e642d
- fix rpmlint spelling warning
1e642d
- BR python2-devel rather than python-devel
1e642d
- run test suite in check
1e642d
1e642d
* Tue Feb 22 2011 Dan Young <dyoung@mesd.k12.or.us> - 0.6.1-1
1e642d
- Initial package