8a7204
%global modname flask
rdobuilder 5ca0bc
%global srcname flask
rdobuilder 5ca0bc
%global with_doc 0
8a7204
8a7204
Name:           python-%{modname}
rdobuilder 392f02
Version:        3.0.2
rdobuilder 5ca0bc
Release:        1%{?dist}
8a7204
Epoch:          1
8a7204
Summary:        A micro-framework for Python based on Werkzeug, Jinja 2 and good intentions
8a7204
8a7204
License:        BSD
8a7204
URL:            http://flask.pocoo.org/
rdobuilder 5ca0bc
Source0:        %{pypi_source}
5b8aa9
8a7204
BuildArch:      noarch
8a7204
8a7204
%global _description \
8a7204
Flask is called a “micro-framework” because the idea to keep the core\
8a7204
simple but extensible. There is no database abstraction layer, no form\
8a7204
validation or anything else where different libraries already exist\
8a7204
that can handle that. However Flask knows the concept of extensions\
8a7204
that can add this functionality into your application as if it was\
8a7204
implemented in Flask itself. There are currently extensions for object\
8a7204
relational mappers, form validation, upload handling, various open\
8a7204
authentication technologies and more.
8a7204
8a7204
%description %{_description}
8a7204
rdobuilder 5ca0bc
%package -n python3-%{modname}
8a7204
Summary:        %{summary}
rdobuilder 5ca0bc
BuildRequires:  make
rdobuilder 5ca0bc
BuildRequires:  python3-devel
rdobuilder 5ca0bc
BuildRequires:  pyproject-rpm-macros
8a7204
rdobuilder 5ca0bc
%description -n python3-%{modname} %{_description}
8a7204
8a7204
Python 3 version.
8a7204
rdobuilder 5ca0bc
%if 0%{?with_doc}
8a7204
%package doc
8a7204
Summary:        Documentation for %{name}
8a7204
8a7204
%description doc
8a7204
Documentation and examples for %{name}.
rdobuilder 5ca0bc
%endif
rdobuilder 5ca0bc
rdobuilder 5ca0bc
%generate_buildrequires
rdobuilder 5ca0bc
# -t picks test.txt by default which contains too tight pins
rdobuilder 5ca0bc
%pyproject_buildrequires requirements/tests.in requirements/docs.in
8a7204
8a7204
%prep
rdobuilder 5ca0bc
%autosetup -n %{srcname}-%{version}
8a7204
rm -rf examples/flaskr/
8a7204
rm -rf examples/minitwit/
rdobuilder 5ca0bc
sed -i '/sphinx-tabs/d' requirements/docs.in
rdobuilder 5ca0bc
sed -i 's/"Jinja2.*"/"Jinja2"/' pyproject.toml
8a7204
8a7204
%build
rdobuilder 5ca0bc
%pyproject_wheel
8a7204
8a7204
%install
rdobuilder 5ca0bc
%pyproject_install
rdobuilder 5ca0bc
%pyproject_save_files %{modname}
8a7204
8a7204
mv %{buildroot}%{_bindir}/%{modname}{,-%{python3_version}}
8a7204
ln -s %{modname}-%{python3_version} %{buildroot}%{_bindir}/%{modname}-3
8a7204
ln -sf %{modname}-3 %{buildroot}%{_bindir}/%{modname}
rdobuilder 5ca0bc
rdobuilder 5ca0bc
%if 0%{?with_doc}
rdobuilder 5ca0bc
pushd docs
rdobuilder 5ca0bc
# PYTHONPATH to prevent "'Flask' must be installed to build the documentation."
rdobuilder 5ca0bc
make PYTHONPATH=%{buildroot}/%{python3_sitelib} SPHINXBUILD=sphinx-build-3 html
rdobuilder 5ca0bc
rm -v _build/html/.buildinfo
rdobuilder 5ca0bc
popd
rdobuilder 5ca0bc
%endif
8a7204
8a7204
%check
rdobuilder 5ca0bc
%pytest -Wdefault
8a7204
rdobuilder 5ca0bc
%files -n python3-%{modname} -f %{pyproject_files}
rdobuilder 5ca0bc
%license LICENSE.rst
rdobuilder 5ca0bc
%doc CHANGES.rst README.rst
8a7204
%{_bindir}/%{modname}
8a7204
%{_bindir}/%{modname}-3
8a7204
%{_bindir}/%{modname}-%{python3_version}
8a7204
rdobuilder 5ca0bc
%if 0%{?with_doc}
8a7204
%files doc
rdobuilder 5ca0bc
%license LICENSE.rst
8a7204
%doc docs/_build/html examples
rdobuilder 5ca0bc
%endif
8a7204
8a7204
%changelog
rdobuilder 392f02
* Mon Feb 05 2024 Frantisek Zatloukal <fzatlouk@redhat.com> - 3.0.2-1
rdobuilder 392f02
- Update to 3.0.2 (fixes RHBZ#2262551)
rdobuilder 392f02
rdobuilder 392f02
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.0.1-2
rdobuilder 392f02
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
rdobuilder 392f02
rdobuilder 5ca0bc
* Mon Jan 22 2024 Frantisek Zatloukal <fzatlouk@redhat.com> - 3.0.1-1
rdobuilder 5ca0bc
- Update to 3.0.1 (fixes RHBZ#2259051)
rdobuilder 5ca0bc
rdobuilder 5ca0bc
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.0.0-2
rdobuilder 5ca0bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
rdobuilder 5ca0bc
rdobuilder 5ca0bc
* Wed Dec 06 2023 Frantisek Zatloukal <fzatlouk@redhat.com> - 3.0.0-1
rdobuilder 5ca0bc
- Update to 3.0.0 (fixes RHBZ#2189630)
rdobuilder 5ca0bc
rdobuilder 5ca0bc
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.2.5-3
rdobuilder 5ca0bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
rdobuilder 5ca0bc
rdobuilder 5ca0bc
* Fri Jun 16 2023 Python Maint <python-maint@redhat.com> - 1:2.2.5-2
rdobuilder 5ca0bc
- Rebuilt for Python 3.12
rdobuilder 5ca0bc
rdobuilder 5ca0bc
* Tue May 09 2023 Frantisek Zatloukal <fzatlouk@redhat.com> - 2.2.5-1
rdobuilder 5ca0bc
- Update to 2.2.5 (fixes RHBZ#2196644)
rdobuilder 5ca0bc
rdobuilder 5ca0bc
* Mon Feb 20 2023 Frantisek Zatloukal <fzatlouk@redhat.com> - 2.2.3-1
rdobuilder 5ca0bc
- Update to 2.2.3 (fixes RHBZ#2170230)
rdobuilder 5ca0bc
rdobuilder 5ca0bc
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.2.2-2
rdobuilder 5ca0bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
rdobuilder 5ca0bc
rdobuilder 5ca0bc
* Tue Aug 09 2022 Frantisek Zatloukal <fzatlouk@redhat.com> - 2.2.2-1
rdobuilder 5ca0bc
- Update to 2.2.2 (closes RHBZ#2116586)
rdobuilder 5ca0bc
rdobuilder 5ca0bc
* Thu Aug 04 2022 Frantisek Zatloukal <fzatlouk@redhat.com> - 2.2.1-1
rdobuilder 5ca0bc
- Update to 2.2.1 (closes RHBZ#2113719)
rdobuilder 5ca0bc
rdobuilder 5ca0bc
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.1.3-2
rdobuilder 5ca0bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
rdobuilder 5ca0bc
rdobuilder 5ca0bc
* Mon Jul 18 2022 Frantisek Zatloukal <fzatlouk@redhat.com> - 2.1.3-1
rdobuilder 5ca0bc
- Update to 2.1.3
rdobuilder 5ca0bc
rdobuilder 5ca0bc
* Tue Jun 14 2022 Python Maint <python-maint@redhat.com> - 1:2.1.2-2
rdobuilder 5ca0bc
- Rebuilt for Python 3.11
rdobuilder 5ca0bc
rdobuilder 5ca0bc
* Wed May 11 2022 Charalampos Stratakis <cstratak@redhat.com> - 2.1.2-1
rdobuilder 5ca0bc
- Update to 2.1.2
rdobuilder 5ca0bc
- Fixes: rhbz#2069375
rdobuilder 5ca0bc
rdobuilder 5ca0bc
* Mon Feb 21 2022 Frantisek Zatloukal <fzatlouk@redhat.com> - 2.0.3-1
rdobuilder 5ca0bc
- Update to 2.0.3
rdobuilder 5ca0bc
rdobuilder 5ca0bc
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.0.2-2
rdobuilder 5ca0bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
rdobuilder 5ca0bc
rdobuilder 5ca0bc
* Wed Nov 10 2021 Frantisek Zatloukal <fzatlouk@redhat.com> - 2.0.2-1
rdobuilder 5ca0bc
- Update to 2.0.2
rdobuilder 5ca0bc
rdobuilder 5ca0bc
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.0.1-2
rdobuilder 5ca0bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
rdobuilder 5ca0bc
rdobuilder 5ca0bc
* Tue Jun 22 2021 Lumír Balhar <lbalhar@redhat.com> - 2.0.1-1
rdobuilder 5ca0bc
- Update to 2.0.1
rdobuilder 5ca0bc
Resolves: rhbz#1950465
rdobuilder 5ca0bc
rdobuilder 5ca0bc
* Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 1:1.1.2-6
rdobuilder 5ca0bc
- Rebuilt for Python 3.10
rdobuilder 5ca0bc
rdobuilder 5ca0bc
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.1.2-5
rdobuilder 5ca0bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
rdobuilder 5ca0bc
rdobuilder 5ca0bc
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.1.2-4
rdobuilder 5ca0bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
rdobuilder 5ca0bc
rdobuilder 5ca0bc
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 1:1.1.2-3
rdobuilder 5ca0bc
- Rebuilt for Python 3.9
rdobuilder 5ca0bc
rdobuilder 5ca0bc
* Wed Apr 08 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 1:1.1.2-2
rdobuilder 5ca0bc
- Simplify packaging
rdobuilder 5ca0bc
rdobuilder 5ca0bc
* Fri Apr 03 2020 Fedora Release Monitoring <release-monitoring@fedoraproject.org> - 1:1.1.2-1
rdobuilder 5ca0bc
- Update to 1.1.2 (#1820730)
rdobuilder 5ca0bc
rdobuilder 5ca0bc
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.1.1-2
rdobuilder 5ca0bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
rdobuilder 5ca0bc
rdobuilder 5ca0bc
* Tue Jan 07 2020 Miro Hrončok <mhroncok@redhat.com> - 1:1.1.1-1
rdobuilder 5ca0bc
- Update to 1.1.1 (#1711414)
rdobuilder 5ca0bc
rdobuilder 5ca0bc
* Wed Oct 30 2019 Miro Hrončok <mhroncok@redhat.com> - 1:1.0.2-9
rdobuilder 5ca0bc
- Obsolete proper version of python2-flask to fix an upgrade path issue (#1767198)
rdobuilder 5ca0bc
rdobuilder 5ca0bc
* Wed Sep 18 2019 Miro Hrončok <mhroncok@redhat.com> - 1:1.0.2-8
rdobuilder 5ca0bc
- Subpackage python2-flask has been removed
rdobuilder 5ca0bc
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
rdobuilder 5ca0bc
rdobuilder 5ca0bc
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 1:1.0.2-7
rdobuilder 5ca0bc
- Rebuilt for Python 3.8
rdobuilder 5ca0bc
rdobuilder 5ca0bc
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.0.2-6
rdobuilder 5ca0bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
rdobuilder 5ca0bc
rdobuilder 5ca0bc
* Fri Mar 08 2019 François Cami <fcami@fedoraproject.org> - 1:1.0.2-5
rdobuilder 5ca0bc
- Remove python2-sphinx dependency since it's not used anymore.
rdobuilder 5ca0bc
rdobuilder 5ca0bc
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.0.2-4
rdobuilder 5ca0bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
rdobuilder 5ca0bc
rdobuilder 5ca0bc
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.0.2-3
rdobuilder 5ca0bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
rdobuilder 5ca0bc
rdobuilder 5ca0bc
* Mon Jun 18 2018 Miro Hrončok <mhroncok@redhat.com> - 1:1.0.2-2
rdobuilder 5ca0bc
- Rebuilt for Python 3.7
rdobuilder 5ca0bc
rdobuilder 5ca0bc
* Fri Jun 01 2018 Ken Dreyer <ktdreyer@ktdreyer.com> 1:1.0.2-1
rdobuilder 5ca0bc
- Update to 1.0.2 (rhbz#1572414)
rdobuilder 5ca0bc
- Do not build Sphinx docs (pallet-sphinx-themes not available)
rdobuilder 5ca0bc
rdobuilder 5ca0bc
* Fri Apr 27 2018 Ricky Elrod <relrod@redhat.com> - 1:1.0-1
rdobuilder 5ca0bc
- new version
8a7204
8a7204
* Thu Feb 15 2018 itamar <itamar@ispbrasil.com.br> - 1:0.12.2-1
8a7204
- new version
8a7204
8a7204
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.11.1-8
8a7204
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
8a7204
8a7204
* Thu Jan 18 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1:0.11.1-7
8a7204
- Update Python 2 dependency declarations to new packaging standards
8a7204
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
8a7204
8a7204
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.11.1-6
8a7204
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
8a7204
8a7204
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.11.1-5
8a7204
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
8a7204
8a7204
* Tue Dec 13 2016 Stratakis Charalampos <cstratak@redhat.com> - 1:0.11.1-4
8a7204
- Rebuild for Python 3.6
8a7204
- Have rpmbuild to not fail on python3 test failures
8a7204
8a7204
* Mon Aug 22 2016 Igor Gnatenko <ignatenko@redhat.com> - 1:0.11.1-3
8a7204
- Fix FTBFS
8a7204
- Ton of fixes in spec
8a7204
8a7204
* Tue Aug 16 2016 Ricky Elrod <relrod@redhat.com> - 1:0.11.1-2
8a7204
- Attempt a completely fresh build with new NVR.
8a7204
8a7204
* Tue Aug 16 2016 Ricky Elrod <relrod@redhat.com> - 1:0.11.1-1
8a7204
- Latest upstream release.
8a7204
8a7204
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.10.1-9
8a7204
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
8a7204
8a7204
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.10.1-8
8a7204
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8a7204
8a7204
* Wed Oct 14 2015 Robert Kuska <rkuska@redhat.com> - 1:0.10.1-7
8a7204
- Rebuilt for Python3.5 rebuild
8a7204
8a7204
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.10.1-6
8a7204
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
8a7204
8a7204
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.10.1-5
8a7204
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
8a7204
8a7204
* Tue May 13 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 1:0.10.1-4
8a7204
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
8a7204
- Minor fix to rhel macro logic
8a7204
8a7204
* Mon Jul 29 2013 Haïkel Guémar <hguemar@fedoraproject.org> - 1:0.10.1-3
8a7204
- fix wrong requires on sphinx (RHBZ #989361)
8a7204
8a7204
* Sat Jul 20 2013 Ricky Elrod <codeblock@fedoraproject.org> - 1:0.10.1-2
8a7204
- Nuke a Python3 specific file owned by python3-setuptools.
8a7204
8a7204
* Sat Jun 15 2013 Haïkel Guémar <hguemar@fedoraproject.org> - 1:0.10.1-1
8a7204
- upstream 0.10.1
8a7204
8a7204
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.9-6
8a7204
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
8a7204
8a7204
* Fri Aug 17 2012 Ricky Elrod <codeblock@fedoraproject.org> - 0.9-5
8a7204
- Add epoch to subpackage Requires.
8a7204
8a7204
* Wed Aug 8 2012 Ricky Elrod <codeblock@fedoraproject.org> - 0.9-4
8a7204
- Fix changelog messup.
8a7204
8a7204
* Wed Aug 8 2012 Ricky Elrod <codeblock@fedoraproject.org> - 0.9-3
8a7204
- Unified spec for EL6 and Fedora
8a7204
8a7204
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.0-2
8a7204
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
8a7204
8a7204
* Mon Jul  2 2012 Haïkel Guémar <hguemar@fedoraproject.org> - 0.9.0-1
8a7204
- upstream 0.9
8a7204
- spec cleanups
8a7204
8a7204
* Sun Jul  1 2012 Haïkel Guémar <hguemar@fedoraproject.org> - 0.8.1-1
8a7204
- upstream 0.8.1 (minor bugfixes)
8a7204
8a7204
* Wed Jan 25 2012 Haïkel Guémar <hguemar@fedoraproject.org> - 0.8.0-1
8a7204
- upstream 0.8
8a7204
8a7204
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2-3
8a7204
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
8a7204
8a7204
* Wed Nov 16 2011 Dan Young <dyoung@mesd.k12.or.us> - 0.7.2-2
8a7204
- don't own easy-install.pth
8a7204
8a7204
* Fri Jul 22 2011 Steve Milner <smilner@fedoraproject.org> - 0.7.2-1
8a7204
- update for upstream release
8a7204
8a7204
* Thu Feb 24 2011 Dan Young <dyoung@mesd.k12.or.us> - 0.6.1-2
8a7204
- fix rpmlint spelling warning
8a7204
- BR python2-devel rather than python-devel
8a7204
- run test suite in check
8a7204
8a7204
* Tue Feb 22 2011 Dan Young <dyoung@mesd.k12.or.us> - 0.6.1-1
8a7204
- Initial package