diff --git a/python-txaio.spec b/python-txaio.spec new file mode 100644 index 0000000000000000000000000000000000000000..c0aeac6f88e6b1b7d332062431fbb875b34c9c0a --- /dev/null +++ b/python-txaio.spec @@ -0,0 +1,124 @@ +%global _empty_manifest_terminate_build 0 +Name: python-txaio +Version: 21.2.1 +Release: 1 +Summary: Compatibility API between asyncio/Twisted/Trollius +License: MIT +URL: https://github.com/crossbario/txaio +Source0: https://files.pythonhosted.org/packages/c5/39/2e715062283f8443d8ceeea32276db71741664d78d43c3edd3675498e926/txaio-21.2.1.tar.gz +BuildArch: noarch +%description +| |Version| |Build| |Deploy| |Coverage| |Docs|--**txaio*is a helper library for +writing code that runs unmodified on both Twisted < and asyncio < / Trollius < +is like six < but for wrapping over differences between Twisted and asyncio so +one can write code that runs unmodified on both (aka *source code +compatibility*). In other words: your *userscan choose if they want asyncio +**or*Twisted as a dependency.Note that, with this approach, user code **runs +under the native event loop of either Twisted or asyncio**. + +%package -n python3-txaio +Summary: Compatibility API between asyncio/Twisted/Trollius +Provides: python-txaio +# Base build requires +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pbr +BuildRequires: python3-pip +BuildRequires: python3-wheel +# General build requires +BuildRequires: python3-zope-interface +BuildRequires: python3-twisted +BuildRequires: python3-pytest +BuildRequires: python3-pytest-cov +BuildRequires: python3-pep8 +BuildRequires: python3-sphinx +BuildRequires: python3-enchant +BuildRequires: python3-sphinxcontrib-spelling +BuildRequires: python3-sphinx_rtd_theme +BuildRequires: python3-tox +BuildRequires: python3-mock +BuildRequires: python3-twine +# General requires +Requires: python3-zope-interface +Requires: python3-twisted +Requires: python3-wheel +Requires: python3-pytest +Requires: python3-pytest-cov +Requires: python3-pep8 +Requires: python3-sphinx +Requires: python3-enchant +Requires: python3-sphinxcontrib-spelling +Requires: python3-sphinx_rtd_theme +Requires: python3-tox +Requires: python3-mock +Requires: python3-twine +%description -n python3-txaio +| |Version| |Build| |Deploy| |Coverage| |Docs|--**txaio*is a helper library for +writing code that runs unmodified on both Twisted < and asyncio < / Trollius < +is like six < but for wrapping over differences between Twisted and asyncio so +one can write code that runs unmodified on both (aka *source code +compatibility*). In other words: your *userscan choose if they want asyncio +**or*Twisted as a dependency.Note that, with this approach, user code **runs +under the native event loop of either Twisted or asyncio**. + +%package help +Summary: Compatibility API between asyncio/Twisted/Trollius +Provides: python3-txaio-doc +%description help +| |Version| |Build| |Deploy| |Coverage| |Docs|--**txaio*is a helper library for +writing code that runs unmodified on both Twisted < and asyncio < / Trollius < +is like six < but for wrapping over differences between Twisted and asyncio so +one can write code that runs unmodified on both (aka *source code +compatibility*). In other words: your *userscan choose if they want asyncio +**or*Twisted as a dependency.Note that, with this approach, user code **runs +under the native event loop of either Twisted or asyncio**. + +%prep +%autosetup -n txaio-%{version} + +%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 . + +%check +# %{__python3} setup.py test + +%files -n python3-txaio -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 17 2023 OpenStack_SIG - 21.2.1-1 +- Init package python3-txaio of version 21.2.1 + + diff --git a/txaio-21.2.1.tar.gz b/txaio-21.2.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..7ad690af13e8aad4cdcdc880305072be766b75da Binary files /dev/null and b/txaio-21.2.1.tar.gz differ