Name: python-bottle Version: 0.12.13 Release: 12 Summary: WSGI micro web-framework for Python. License: MIT URL: https://github.com/bottlepy/bottle Source0: https://github.com/bottlepy/bottle/archive/%{version}/bottle-%{version}.tar.gz Patch0000: CVE-2020-28473.patch #https://github.com/bottlepy/bottle/commit/e140e1b54da721a660f2eb9d58a106b7b3ff2f00 Patch0001: CVE-2022-31799.patch Patch0002: 0001-fix-1065-gevent-1.3.0-removes-fast-wsgi-implementati.patch Patch0003: 0002-Fix-930-DeprecationWarning-Flags-not-at-the-start-of.patch BuildArch: noarch BuildRequires: python3-devel python3-setuptools %description Bottle is a fast, simple and lightweight WSGI micro web-framework for Python. It is distributed as a single file module and has no dependencies other than the Python Standard Library. %package -n python3-bottle Summary: WSGI micro web-framework for Python. %{?python_provide:%python_provide python%{python3_pkgversion}-bottle} %description -n python3-bottle Bottle is a fast, simple and lightweight WSGI micro web-framework for Python. It is distributed as a single file module and has no dependencies other than the Python Standard Library. %prep %autosetup -n bottle-%{version} -p1 sed -i '/^#!/d' bottle.py %build %py3_build %install %py3_install %check %__python3 test/testall.py verbose || : %files -n python3-bottle %license LICENSE %doc AUTHORS README.rst %{python3_sitelib}/* %exclude %{_bindir}/bottle.py %changelog * Wed Nov 22 2023 zhangliangpengkun - 0.12.13-12 - Fix #930: DeprecationWarning: Flags not at the start of the expression * Thu Nov 09 2023 zhangliangpengkun - 0.12.13-11 - fix #1065 gevent-1.3.0 removes 'fast' wsgi implementation. * Tue Jun 14 2022 yaoxin - 0.12.13-10 - Fix CVE-2022-31799 * Fri Feb 19 2021 zhanghua - 0.12.13-9 - fix CVE-2020-28473 * Wed Oct 21 2020 chengzihan - 0.12.13-8 - Modify url and remove subpackage python2-bottle * Tue Nov 26 2019 zhujunhao - 0.12.13-7 - Package init