python-bottle/python-bottle.spec

66 lines
2.0 KiB
RPMSpec
Raw Normal View History

2019-11-28 11:47:53 +08:00
Name: python-bottle
Version: 0.12.13
2022-06-14 09:58:14 +08:00
Release: 11
2019-11-28 11:47:53 +08:00
Summary: WSGI micro web-framework for Python.
License: MIT
URL: https://github.com/bottlepy/bottle
2019-11-28 11:47:53 +08:00
Source0: https://github.com/bottlepy/bottle/archive/%{version}/bottle-%{version}.tar.gz
2021-02-19 17:02:17 +08:00
Patch0000: CVE-2020-28473.patch
#https://github.com/bottlepy/bottle/commit/eff4960d941b51629f8378b1bd9498ed2aec92c7
Patch0001: Fix-Python-3.7-collections.abc-DeprecationWarning.patch
2022-06-14 09:58:14 +08:00
#https://github.com/bottlepy/bottle/commit/e140e1b54da721a660f2eb9d58a106b7b3ff2f00
Patch0002: CVE-2022-31799.patch
2019-11-28 11:47:53 +08:00
BuildArch: noarch
BuildRequires: python3-devel python3-setuptools
2019-11-28 11:47:53 +08:00
%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
2021-02-19 17:02:17 +08:00
%autosetup -n bottle-%{version} -p1
2019-11-28 11:47:53 +08:00
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
2019-11-28 11:47:53 +08:00
%changelog
2022-06-14 09:58:14 +08:00
* Tue Jun 14 2022 yaoxin <yaoxin30@h-partners.com> - 0.12.13-11
- Fix CVE-2022-31799
* Thu Mar 31 2022 xu_ping <xuping33@huawei.com> - 0.12.13-10
- Fix Python 3.7 collections.abc DeprecationWarning
2021-02-19 17:02:17 +08:00
* Fri Feb 19 2021 zhanghua <zhanghua40@huawei.com> - 0.12.13-9
- fix CVE-2020-28473
* Wed Oct 21 2020 chengzihan <chengzihan2@huawei.com> - 0.12.13-8
- Modify url and remove subpackage python2-bottle
2019-11-28 11:47:53 +08:00
* Tue Nov 26 2019 zhujunhao <zhujunhao5@huawei.com> - 0.12.13-7
- Package init