diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2023-02-25 03:00:12 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2023-02-25 03:00:12 +0000 |
commit | 9b293efe93c24e232a806e7d0885dc04850fe2eb (patch) | |
tree | f4b1f5fce243d3758646a2f37de8ce302ef232e9 | |
parent | e7fe197e716a6456477a9dc2d2438c845c921f7e (diff) |
automatic import of python3-jepopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-jep.spec | 104 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 106 insertions, 0 deletions
@@ -0,0 +1 @@ +/jep-4.1.1.tar.gz diff --git a/python-jep.spec b/python-jep.spec new file mode 100644 index 0000000..2fb8946 --- /dev/null +++ b/python-jep.spec @@ -0,0 +1,104 @@ +%global _empty_manifest_terminate_build 0 +Name: python-jep +Version: 4.1.1 +Release: 1 +Summary: Jep embeds CPython in Java +License: zlib/libpng +URL: https://github.com/ninia/jep +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/b3/0c/d208bc8a86f032b9a9270876129aadb41fa1a4baa172d68a29c579950856/jep-4.1.1.tar.gz +BuildArch: noarch + + +%description +Jep embeds CPython in Java through JNI. +Some benefits of embedding CPython in a JVM: +* Using the native Python interpreter may be much faster than + alternatives. +* Python is mature, well supported, and well documented. +* Access to high quality Python modules, both native CPython + extensions and Python-based. +* Compilers and assorted Python tools are as mature as the language. +* Python is an interpreted language, enabling scripting of established + Java code without requiring recompilation. +* Both Java and Python are cross platform, enabling deployment to + different operating systems. + +%package -n python3-jep +Summary: Jep embeds CPython in Java +Provides: python-jep +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%description -n python3-jep +Jep embeds CPython in Java through JNI. +Some benefits of embedding CPython in a JVM: +* Using the native Python interpreter may be much faster than + alternatives. +* Python is mature, well supported, and well documented. +* Access to high quality Python modules, both native CPython + extensions and Python-based. +* Compilers and assorted Python tools are as mature as the language. +* Python is an interpreted language, enabling scripting of established + Java code without requiring recompilation. +* Both Java and Python are cross platform, enabling deployment to + different operating systems. + +%package help +Summary: Development documents and examples for jep +Provides: python3-jep-doc +%description help +Jep embeds CPython in Java through JNI. +Some benefits of embedding CPython in a JVM: +* Using the native Python interpreter may be much faster than + alternatives. +* Python is mature, well supported, and well documented. +* Access to high quality Python modules, both native CPython + extensions and Python-based. +* Compilers and assorted Python tools are as mature as the language. +* Python is an interpreted language, enabling scripting of established + Java code without requiring recompilation. +* Both Java and Python are cross platform, enabling deployment to + different operating systems. + +%prep +%autosetup -n jep-4.1.1 + +%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-jep -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Sat Feb 25 2023 Python_Bot <Python_Bot@openeuler.org> - 4.1.1-1 +- Package Spec generated @@ -0,0 +1 @@ +93dfcf6f0731adda33bb989b01d297a1 jep-4.1.1.tar.gz |