python-waitress/python-waitress.spec

118 lines
3.7 KiB
RPMSpec
Raw Normal View History

2022-09-28 16:38:56 +08:00
%global _empty_manifest_terminate_build 0
Name: python-waitress
Version: 2.1.2
Release: 3
2022-09-28 16:38:56 +08:00
Summary: Waitress WSGI server
License: ZPLv2.1
URL: https://github.com/Pylons/waitress
Source0: https://files.pythonhosted.org/packages/72/83/c3de9799e2305898b02ea67bcd125ad06f271e2a82cc86fe66b7bf4e6f63/waitress-2.1.2.tar.gz
Patch0001: backport-CVE-2024-49768.patch
Patch0002: backport-CVE-2024-49769.patch
2022-09-28 16:38:56 +08:00
BuildArch: noarch
Requires: python3-Sphinx
Requires: python3-docutils
Requires: python3-pylons-sphinx-themes
Requires: python3-pytest
Requires: python3-pytest-cover
Requires: python3-coverage
2020-02-17 16:51:22 +08:00
%description
2022-09-28 16:38:56 +08:00
Waitress is a production-quality pure-Python WSGI server with very acceptable
performance. It has no dependencies except ones which live in the Python
standard library. It runs on CPython on Unix and Windows under Python 3.7+. It
is also known to run on PyPy 3 (version 3.7 compatible python) on UNIX. It
supports HTTP/1.0 and HTTP/1.1.
2020-02-17 16:51:22 +08:00
%package -n python3-waitress
2022-09-28 16:38:56 +08:00
Summary: Waitress WSGI server
Provides: python-waitress
BuildRequires: python3-devel
BuildRequires: python3-setuptools
2020-02-17 16:51:22 +08:00
%description -n python3-waitress
2022-09-28 16:38:56 +08:00
Waitress is a production-quality pure-Python WSGI server with very acceptable
performance. It has no dependencies except ones which live in the Python
standard library. It runs on CPython on Unix and Windows under Python 3.7+. It
is also known to run on PyPy 3 (version 3.7 compatible python) on UNIX. It
supports HTTP/1.0 and HTTP/1.1.
%package help
Summary: Development documents and examples for waitress
Provides: python3-waitress-doc
%description help
Waitress is a production-quality pure-Python WSGI server with very acceptable
performance. It has no dependencies except ones which live in the Python
standard library. It runs on CPython on Unix and Windows under Python 3.7+. It
is also known to run on PyPy 3 (version 3.7 compatible python) on UNIX. It
supports HTTP/1.0 and HTTP/1.1.
2020-02-17 16:51:22 +08:00
%prep
%autosetup -n waitress-%{version} -p1
2020-02-17 16:51:22 +08:00
%build
%py3_build
%install
%py3_install
2022-09-28 16:38:56 +08:00
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
2020-02-17 16:51:22 +08:00
2022-09-28 16:38:56 +08:00
%files -n python3-waitress -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
2020-02-17 16:51:22 +08:00
%changelog
* Wed Oct 30 2024 liningjie <liningjie@xfusion.com> - 2.1.2-3
- Fix CVE-2024-49769
* Tue Oct 29 2024 liningjie <liningjie@xfusion.com> - 2.1.2-2
- Fix CVE-2024-49768
2022-09-28 16:38:56 +08:00
* Wed Sep 28 2022 guozhengxin <guozhengxin@kylinos.cn> - 2.1.2-1
- Upgrade package to version 2.1.2
2022-04-18 08:13:09 +00:00
* Mon Apr 18 2022 Shinwell_Hu <micromotive@qq.com> - 2.0.0-3
- Backport from 2.1.1 to fix CVE-2022-24761
2022-03-03 10:25:42 +08:00
* Thu Mar 3 2022 zhaoshuang <zhaoshuang@uniontech.com> - 2.0.0-2
- remove some unnecessary buildrequires
2021-07-08 16:06:42 +08:00
* Thu Jul 08 2021 suoxiaocong <suoxiaocong@kylinos.com> - 2.0.0-1
- update package to 2.0.0
2020-08-22 11:41:20 +08:00
* Sat Aug 22 2020 tianwei <tianwei12@huawei.com> - 1.4.4-2
- delete python2
2020-07-16 10:26:02 +08:00
* Thu Jul 16 2020 jixinjie <jixinjie@huawei.com> - 1.4.4-1
- update package to 1.4.4
2020-02-17 16:51:22 +08:00
* Thu Feb 13 2020 Ruijun Ge <geruijun@huawei.com> - 1.1.0-5
- init package