diff options
Diffstat (limited to 'python-donald.spec')
-rw-r--r-- | python-donald.spec | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/python-donald.spec b/python-donald.spec new file mode 100644 index 0000000..8da9e30 --- /dev/null +++ b/python-donald.spec @@ -0,0 +1,86 @@ +%global _empty_manifest_terminate_build 0 +Name: python-donald +Version: 0.32.3 +Release: 1 +Summary: Task manager for asyncio +License: MIT License +URL: https://pypi.org/project/donald/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/d2/e6/44aef40d40ed1b8a7a4a04c562a242a600e005fe84541c0e43f1349dd332/donald-0.32.3.tar.gz +BuildArch: noarch + +Requires: python3-aioamqp +Requires: python3-async-timeout +Requires: python3-click +Requires: python3-crontab +Requires: python3-pre-commit +Requires: python3-refurb +Requires: python3-bump2version +Requires: python3-redis +Requires: python3-redis +Requires: python3-pytest +Requires: python3-pytest-aio +Requires: python3-pytest-mypy +Requires: python3-pytest-redislite +Requires: python3-ruff + +%description +- python 3.8+ + +%package -n python3-donald +Summary: Task manager for asyncio +Provides: python-donald +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-donald +- python 3.8+ + +%package help +Summary: Development documents and examples for donald +Provides: python3-donald-doc +%description help +- python 3.8+ + +%prep +%autosetup -n donald-0.32.3 + +%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-donald -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu May 18 2023 Python_Bot <Python_Bot@openeuler.org> - 0.32.3-1 +- Package Spec generated |