python-bottle/python-bottle.spec
zhang-liang-pengkun a53dc64be9 Add ServerAdapter for CherryPy >= 9
Signed-off-by: zhang-liang-pengkun <zhangliangpengkun@xfusion.com>
2024-01-18 20:28:26 +08:00

114 lines
4.1 KiB
RPMSpec

Name: python-bottle
Version: 0.12.13
Release: 19
Summary: WSGI micro web-framework for Python.
License: MIT
URL: http://bottlepy.org
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
Patch0004: 0003-Added-Python-3.4-3.7-language-classifiers.patch
Patch0005: 0004-fix-1115-Some-modules-set-__file__-as-None.patch
Patch0006: 0005-fix-1148-redirect-and-non-ascii-characters.patch
Patch0007: 0006-1177-Bug-fix-of-missing-regex-escaped-back-slashes.patch
Patch0008: 0007-Fix-the-Allow-header-value-in-405-Method-not-allowed.patch
Patch0009: 0008-Fix-Multipart-file-uploads-with-empty-filename-not-d.patch
Patch0010: 0009-Fix-for-Issue-586.patch
Patch0011: 0010-Add-ServerAdapter-for-CherryPy-9.patch
BuildArch: noarch
BuildRequires: python2-devel python2-setuptools 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 python2-bottle
Summary: WSGI micro web-framework for Python.
%{?python_provide:%python_provide python2-%bottle}
%description -n python2-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.
%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
%py2_build
%py3_build
%install
%py2_install
%py3_install
%check
%__python2 test/testall.py verbose
%__python3 test/testall.py verbose || :
%files -n python2-bottle
%license LICENSE
%doc AUTHORS README.rst
%{python2_sitelib}/*
%exclude %{_bindir}/bottle.py
%files -n python3-bottle
%license LICENSE
%doc AUTHORS README.rst
%{python3_sitelib}/*
%changelog
* Thu Jan 18 2024 zhangliangpengkun<zhangliangpengkun@xfusion.com> - 0.12.13-19
- Add ServerAdapter for CherryPy >= 9
* Fri Jan 12 2024 zhangliangpengkun<zhangliangpengkun@xfusion.com> - 0.12.13-18
- The auth_basic() decorator doesn't use functools.wraps().
* Fri Jan 05 2024 zhangliangpengkun<zhangliangpengkun@xfusion.com> - 0.12.13-17
- Fix: Multipart file uploads with empty filename not detected as binary.
* Fri Dec 29 2023 zhangliangpengkun<zhangliangpengkun@xfusion.com> - 0.12.13-16
- Fix the Allow: header value in 405 "Method not allowed." response.
* Tue Dec 26 2023 zhangliangpengkun<zhangliangpengkun@xfusion.com> - 0.12.13-15
- Bug fix of missing regex escaped back slashes
* Wed Dec 20 2023 zhangliangpengkun<zhangliangpengkun@xfusion.com> - 0.12.13-14
- fix #1148: redirect() and non-ascii characters
* Tue Dec 05 2023 zhangliangpengkun<zhangliangpengkun@xfusion.com> - 0.12.13-13
- fix #1115: Some modules set __file__ as None
* Thu Nov 30 2023 zhangliangpengkun<zhangliangpengkun@xfusion.com> - 0.12.13-12
- Added Python 3.4-3.7 language classifiers
* Wed Nov 22 2023 zhangliangpengkun<zhangliangpengkun@xfusion.com> - 0.12.13-11
- Fix #930: DeprecationWarning: Flags not at the start of the expression
* Thu Nov 02 2023 zhangliangpengkun<zhangliangpengkun@xfusion.com> - 0.12.13-10
- fix #1065 gevent-1.3.0 removes 'fast' wsgi implementation.
* Tue Jun 14 2022 yaoxin <yaoxin30@h-partners.com> - 0.12.13-9
- - Fix CVE-2022-31799
* Fri Feb 19 2021 zhanghua <zhanghua40@huawei.com> - 0.12.13-8
- fix CVE-2020-28473
* Tue Nov 26 2019 zhujunhao <zhujunhao5@huawei.com> - 0.12.13-7
- Package init