%global _empty_manifest_terminate_build 0 Name: python-hscan Version: 2.5.2 Release: 1 Summary: A python framework License: MIT License URL: https://github.com/jyangHe/hscan Source0: https://mirrors.aliyun.com/pypi/web/packages/59/5a/bbed6a2c3f71e292f237157dd53a72cc9539ef1edcce572c07df1a27f72c/hscan-2.5.2.tar.gz BuildArch: noarch Requires: python3-httpx[http2] Requires: python3-aiofiles Requires: python3-aio-pika Requires: python3-beautifulsoup4 Requires: python3-aioredis Requires: python3-motor Requires: python3-Brotli Requires: python3-pymongo Requires: python3-chardet Requires: python3-asyncpg Requires: python3-aiokafka Requires: python3-oss2 Requires: python3-aiomysql %description # Hscan ``` python Setup.py sdist bdist_wheel python -m twine upload dist/* ``` %package -n python3-hscan Summary: A python framework Provides: python-hscan BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-hscan # Hscan ``` python Setup.py sdist bdist_wheel python -m twine upload dist/* ``` %package help Summary: Development documents and examples for hscan Provides: python3-hscan-doc %description help # Hscan ``` python Setup.py sdist bdist_wheel python -m twine upload dist/* ``` %prep %autosetup -n hscan-2.5.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-hscan -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Tue Jun 20 2023 Python_Bot - 2.5.2-1 - Package Spec generated