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