Compare commits

..

No commits in common. "aeb83f4c41e81285d7b1005d07cdfd66b841e1ce" and "2182ae0e99326038e671866280a5c15ee649bb72" have entirely different histories.

3 changed files with 23 additions and 21 deletions

BIN
bottle-0.12.13.tar.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,18 +1,27 @@
Name: python-bottle
Version: 0.12.25
Release: 1
Version: 0.12.13
Release: 7
Summary: WSGI micro web-framework for Python.
License: MIT
URL: https://github.com/bottlepy/bottle
URL: http://bottlepy.org
Source0: https://github.com/bottlepy/bottle/archive/%{version}/bottle-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel python3-setuptools
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}
@ -23,40 +32,33 @@ It is distributed as a single file module and has no dependencies other than
the Python Standard Library.
%prep
%autosetup -n bottle-%{version} -p1
%autosetup -n bottle-%{version}
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}/*
%exclude %{_bindir}/bottle.py
%changelog
* Fri May 26 2023 wulei <wu_lei@hoperun.com> - 0.12.25-1
- Upgrade package to version 0.12.25
* 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
* 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
* Tue Nov 26 2019 zhujunhao <zhujunhao5@huawei.com> - 0.12.13-7
- Package init