diff options
Diffstat (limited to 'python-waitress.spec')
| -rw-r--r-- | python-waitress.spec | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/python-waitress.spec b/python-waitress.spec new file mode 100644 index 0000000..ac53354 --- /dev/null +++ b/python-waitress.spec @@ -0,0 +1,96 @@ +%global _empty_manifest_terminate_build 0 +Name: python-waitress +Version: 2.1.2 +Release: 1 +Summary: Waitress WSGI server +License: ZPL 2.1 +URL: https://github.com/Pylons/waitress +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/72/83/c3de9799e2305898b02ea67bcd125ad06f271e2a82cc86fe66b7bf4e6f63/waitress-2.1.2.tar.gz +BuildArch: noarch + +Requires: python3-Sphinx +Requires: python3-docutils +Requires: python3-pylons-sphinx-themes +Requires: python3-pytest +Requires: python3-pytest-cover +Requires: python3-coverage + +%description +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. +For more information, see the "docs" directory of the Waitress package or visit +https://docs.pylonsproject.org/projects/waitress/en/latest/ + +%package -n python3-waitress +Summary: Waitress WSGI server +Provides: python-waitress +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-waitress +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. +For more information, see the "docs" directory of the Waitress package or visit +https://docs.pylonsproject.org/projects/waitress/en/latest/ + +%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. +For more information, see the "docs" directory of the Waitress package or visit +https://docs.pylonsproject.org/projects/waitress/en/latest/ + +%prep +%autosetup -n waitress-2.1.2 + +%build +%py3_build + +%install +%py3_install +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 . + +%files -n python3-waitress -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 2.1.2-1 +- Package Spec generated |
