diff --git a/lupa-1.10.tar.gz b/lupa-1.10.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..f0320404c565c94314163fefa9f75237f6d310ba Binary files /dev/null and b/lupa-1.10.tar.gz differ diff --git a/python-lupa.spec b/python-lupa.spec new file mode 100644 index 0000000000000000000000000000000000000000..971dcf71c45d113eea3bf9a622e30a7ec815985a --- /dev/null +++ b/python-lupa.spec @@ -0,0 +1,78 @@ +%global _empty_manifest_terminate_build 0 +Name: python-lupa +Version: 1.10 +Release: 1 +Summary: Python wrapper around Lua and LuaJIT +License: MIT +URL: https://github.com/scoder/lupa +Source0: https://files.pythonhosted.org/packages/2e/f8/fc88e2aa9c0edf4522e78797186799ffd37a5ea9d67e372c3402fce39486/lupa-1.10.tar.gz + + +%description +Lupa integrates the runtimes of Lua_ or LuaJIT2_ into CPython. +It is a partial rewrite of LunaticPython_ in Cython_ with some +additional features such as proper coroutine support. + +%package -n python3-lupa +Summary: Python wrapper around Lua and LuaJIT +Provides: python-lupa +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-cffi +BuildRequires: gcc +%description -n python3-lupa +Lupa integrates the runtimes of Lua_ or LuaJIT2_ into CPython. +It is a partial rewrite of LunaticPython_ in Cython_ with some +additional features such as proper coroutine support. + +%package help +Summary: Development documents and examples for lupa +Provides: python3-lupa-doc +%description help +Lupa integrates the runtimes of Lua_ or LuaJIT2_ into CPython. +It is a partial rewrite of LunaticPython_ in Cython_ with some +additional features such as proper coroutine support. + +%prep +%autosetup -n lupa-1.10 + +%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-lupa -f filelist.lst +%dir %{python3_sitearch}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri Sep 03 2021 Python_Bot - 1.10-1 +- Package Init