diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-10 08:57:50 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-10 08:57:50 +0000 |
commit | ab2d59c4640b86484a12d8daab7e941945024bfc (patch) | |
tree | b2533b124465f252d2d7ff5752df7d06412d5654 /python-aiowsgi.spec | |
parent | 160659cbd108927303900827df289f4fc88bd864 (diff) |
automatic import of python-aiowsgi
Diffstat (limited to 'python-aiowsgi.spec')
-rw-r--r-- | python-aiowsgi.spec | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/python-aiowsgi.spec b/python-aiowsgi.spec new file mode 100644 index 0000000..cceaab4 --- /dev/null +++ b/python-aiowsgi.spec @@ -0,0 +1,81 @@ +%global _empty_manifest_terminate_build 0 +Name: python-aiowsgi +Version: 0.8 +Release: 1 +Summary: minimalist wsgi server using asyncio +License: MIT +URL: https://github.com/gawel/aiowsgi/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/0a/a3/209816e6797bb3a5bf57259753c7f3f976a009c9b726faea3ef093d3f0ee/aiowsgi-0.8.tar.gz +BuildArch: noarch + +Requires: python3-six +Requires: python3-waitress +Requires: python3-webob +Requires: python3-pytest +Requires: python3-six +Requires: python3-webtest +Requires: python3-coverage +Requires: python3-coveralls +Requires: python3-WSGIProxy2 + +%description + + +%package -n python3-aiowsgi +Summary: minimalist wsgi server using asyncio +Provides: python-aiowsgi +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-aiowsgi + + +%package help +Summary: Development documents and examples for aiowsgi +Provides: python3-aiowsgi-doc +%description help + + +%prep +%autosetup -n aiowsgi-0.8 + +%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-aiowsgi -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.8-1 +- Package Spec generated |