From 737395b067617ac14af7df2a4d82bbd6d3f9b683 Mon Sep 17 00:00:00 2001 From: Troy Dawson Date: Wed, 14 Oct 2020 18:51:56 -0700 Subject: [PATCH] RHEL 9.0.0 Alpha bootstrap The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/python-flask#99e5a1108bddecad200d57ac887439f81f77c1f4 --- .gitignore | 15 +++ python-flask.spec | 230 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 246 insertions(+) create mode 100644 python-flask.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..22645a9 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,15 @@ +*.rpm +results_* +.build-* +/Flask-0.6.1.tar.gz +/Flask-0.7.2.tar.gz +/Flask-0.8.tar.gz +/Flask-0.8.1.tar.gz +/Flask-0.9.tar.gz +/Flask-0.10.1.tar.gz +/Flask-0.11.1.tar.gz +/Flask-0.12.2.tar.gz +/Flask-1.0.tar.gz +/Flask-1.0.2.tar.gz +/Flask-1.1.1.tar.gz +/Flask-1.1.2.tar.gz diff --git a/python-flask.spec b/python-flask.spec new file mode 100644 index 0000000..ae46b59 --- /dev/null +++ b/python-flask.spec @@ -0,0 +1,230 @@ +%global modname flask +%global srcname Flask + +Name: python-%{modname} +Version: 1.1.2 +Release: 4%{?dist} +Epoch: 1 +Summary: A micro-framework for Python based on Werkzeug, Jinja 2 and good intentions + +License: BSD +URL: http://flask.pocoo.org/ +Source0: %{pypi_source} + +BuildArch: noarch + +%global _description \ +Flask is called a “micro-framework” because the idea to keep the core\ +simple but extensible. There is no database abstraction layer, no form\ +validation or anything else where different libraries already exist\ +that can handle that. However Flask knows the concept of extensions\ +that can add this functionality into your application as if it was\ +implemented in Flask itself. There are currently extensions for object\ +relational mappers, form validation, upload handling, various open\ +authentication technologies and more. + +%description %{_description} + +%package -n python3-%{modname} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{modname}} +BuildRequires: python3-devel +BuildRequires: python3dist(setuptools) +BuildRequires: python3dist(werkzeug) >= 0.15 +BuildRequires: python3dist(jinja2) >= 2.10.1 +BuildRequires: python3dist(itsdangerous) >= 0.24 +BuildRequires: python3dist(click) >= 5.1 +BuildRequires: python3dist(pytest) +Obsoletes: python2-%{modname} < 1:1.0.2-9 + +%description -n python3-%{modname} %{_description} + +Python 3 version. + +%package doc +Summary: Documentation for %{name} +Obsoletes: python3-%{modname}-doc < 1:0.11.1-3 + +%description doc +Documentation and examples for %{name}. + +%prep +%autosetup -n %{srcname}-%{version} +rm -rf examples/flaskr/ +rm -rf examples/minitwit/ + +%build +%py3_build + +%install +%py3_install +mv %{buildroot}%{_bindir}/%{modname}{,-%{python3_version}} +ln -s %{modname}-%{python3_version} %{buildroot}%{_bindir}/%{modname}-3 +ln -sf %{modname}-3 %{buildroot}%{_bindir}/%{modname} + +%check +PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-3 -v -k "not test_send_from_directory_bad_request" + +%files -n python3-%{modname} +%license LICENSE.rst +%doc CHANGES.rst README.rst +%{_bindir}/%{modname} +%{_bindir}/%{modname}-3 +%{_bindir}/%{modname}-%{python3_version} +%{python3_sitelib}/%{srcname}-*.egg-info/ +%{python3_sitelib}/%{modname}/ + +%files doc +%license LICENSE.rst +%doc examples + +%changelog +* Wed Jul 29 2020 Fedora Release Engineering - 1:1.1.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sun May 24 2020 Miro Hrončok - 1:1.1.2-3 +- Rebuilt for Python 3.9 + +* Wed Apr 08 2020 Igor Raits - 1:1.1.2-2 +- Simplify packaging + +* Fri Apr 03 2020 Fedora Release Monitoring - 1:1.1.2-1 +- Update to 1.1.2 (#1820730) + +* Thu Jan 30 2020 Fedora Release Engineering - 1:1.1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Tue Jan 07 2020 Miro Hrončok - 1:1.1.1-1 +- Update to 1.1.1 (#1711414) + +* Wed Oct 30 2019 Miro Hrončok - 1:1.0.2-9 +- Obsolete proper version of python2-flask to fix an upgrade path issue (#1767198) + +* Wed Sep 18 2019 Miro Hrončok - 1:1.0.2-8 +- Subpackage python2-flask has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + +* Sat Aug 17 2019 Miro Hrončok - 1:1.0.2-7 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 1:1.0.2-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri Mar 08 2019 François Cami - 1:1.0.2-5 +- Remove python2-sphinx dependency since it's not used anymore. + +* Sat Feb 02 2019 Fedora Release Engineering - 1:1.0.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jul 14 2018 Fedora Release Engineering - 1:1.0.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Mon Jun 18 2018 Miro Hrončok - 1:1.0.2-2 +- Rebuilt for Python 3.7 + +* Fri Jun 01 2018 Ken Dreyer 1:1.0.2-1 +- Update to 1.0.2 (rhbz#1572414) +- Do not build Sphinx docs (pallet-sphinx-themes not available) + +* Fri Apr 27 2018 Ricky Elrod - 1:1.0-1 +- new version + +* Thu Feb 15 2018 itamar - 1:0.12.2-1 +- new version + +* Fri Feb 09 2018 Fedora Release Engineering - 1:0.11.1-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jan 18 2018 Iryna Shcherbina - 1:0.11.1-7 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Thu Jul 27 2017 Fedora Release Engineering - 1:0.11.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 1:0.11.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Tue Dec 13 2016 Stratakis Charalampos - 1:0.11.1-4 +- Rebuild for Python 3.6 +- Have rpmbuild to not fail on python3 test failures + +* Mon Aug 22 2016 Igor Gnatenko - 1:0.11.1-3 +- Fix FTBFS +- Ton of fixes in spec + +* Tue Aug 16 2016 Ricky Elrod - 1:0.11.1-2 +- Attempt a completely fresh build with new NVR. + +* Tue Aug 16 2016 Ricky Elrod - 1:0.11.1-1 +- Latest upstream release. + +* Tue Jul 19 2016 Fedora Release Engineering - 1:0.10.1-9 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Thu Feb 04 2016 Fedora Release Engineering - 1:0.10.1-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Oct 14 2015 Robert Kuska - 1:0.10.1-7 +- Rebuilt for Python3.5 rebuild + +* Thu Jun 18 2015 Fedora Release Engineering - 1:0.10.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 1:0.10.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Tue May 13 2014 Bohuslav Kabrda - 1:0.10.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4 +- Minor fix to rhel macro logic + +* Mon Jul 29 2013 Haïkel Guémar - 1:0.10.1-3 +- fix wrong requires on sphinx (RHBZ #989361) + +* Sat Jul 20 2013 Ricky Elrod - 1:0.10.1-2 +- Nuke a Python3 specific file owned by python3-setuptools. + +* Sat Jun 15 2013 Haïkel Guémar - 1:0.10.1-1 +- upstream 0.10.1 + +* Thu Feb 14 2013 Fedora Release Engineering - 1:0.9-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Fri Aug 17 2012 Ricky Elrod - 0.9-5 +- Add epoch to subpackage Requires. + +* Wed Aug 8 2012 Ricky Elrod - 0.9-4 +- Fix changelog messup. + +* Wed Aug 8 2012 Ricky Elrod - 0.9-3 +- Unified spec for EL6 and Fedora + +* Sat Jul 21 2012 Fedora Release Engineering - 0.9.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Mon Jul 2 2012 Haïkel Guémar - 0.9.0-1 +- upstream 0.9 +- spec cleanups + +* Sun Jul 1 2012 Haïkel Guémar - 0.8.1-1 +- upstream 0.8.1 (minor bugfixes) + +* Wed Jan 25 2012 Haïkel Guémar - 0.8.0-1 +- upstream 0.8 + +* Sat Jan 14 2012 Fedora Release Engineering - 0.7.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Wed Nov 16 2011 Dan Young - 0.7.2-2 +- don't own easy-install.pth + +* Fri Jul 22 2011 Steve Milner - 0.7.2-1 +- update for upstream release + +* Thu Feb 24 2011 Dan Young - 0.6.1-2 +- fix rpmlint spelling warning +- BR python2-devel rather than python-devel +- run test suite in check + +* Tue Feb 22 2011 Dan Young - 0.6.1-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..b88c5e4 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (Flask-1.1.2.tar.gz) = 9feb6a9a8f34fadbea508d465f73c24b1d81b3f66243804dc3904d198c2fd78e2e1bef94df6a4940a7eec6b9b54abea06557a87de8b27b0a9497d18b3e071384