diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-11 17:04:39 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 17:04:39 +0000 |
commit | 4bce34ba441635f564a227f781d252d0b4ceb85a (patch) | |
tree | 492fbcb9ed513cf55610bb059253925495cbc774 | |
parent | 956e5b0f5fde9fbcc851222805fa34b239c61be7 (diff) |
automatic import of python-aiohttp-security
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-aiohttp-security.spec | 77 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 79 insertions, 0 deletions
@@ -0,0 +1 @@ +/aiohttp-security-0.4.0.tar.gz diff --git a/python-aiohttp-security.spec b/python-aiohttp-security.spec new file mode 100644 index 0000000..f6197cd --- /dev/null +++ b/python-aiohttp-security.spec @@ -0,0 +1,77 @@ +%global _empty_manifest_terminate_build 0 +Name: python-aiohttp_security +Version: 0.4.0 +Release: 1 +Summary: security for aiohttp.web +License: Apache 2 +URL: https://github.com/aio-libs/aiohttp_security/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/36/01/d85be376b7c1773b3cb7849cd56dc7d38165664df7de2d3e20af507ef5bb/aiohttp-security-0.4.0.tar.gz +BuildArch: noarch + +Requires: python3-aiohttp +Requires: python3-aiohttp-session + +%description +The library provides identity and authorization for `aiohttp.web`__. +__ aiohttp_web_ + +%package -n python3-aiohttp_security +Summary: security for aiohttp.web +Provides: python-aiohttp_security +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-aiohttp_security +The library provides identity and authorization for `aiohttp.web`__. +__ aiohttp_web_ + +%package help +Summary: Development documents and examples for aiohttp_security +Provides: python3-aiohttp_security-doc +%description help +The library provides identity and authorization for `aiohttp.web`__. +__ aiohttp_web_ + +%prep +%autosetup -n aiohttp_security-0.4.0 + +%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-aiohttp_security -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.4.0-1 +- Package Spec generated @@ -0,0 +1 @@ +1624f982d7a779e6ed396ef2ed20acc7 aiohttp-security-0.4.0.tar.gz |