diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-10 11:19:05 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 11:19:05 +0000 |
| commit | daf3cb819f1a234d38ed356dde0eb6103facedb3 (patch) | |
| tree | cbc6b1b676f9d2661ca8a75e4ee813487dabf690 /python-pyinstaller.spec | |
| parent | f4c228e6028b0c6afbbf18f08755cc25d3a74425 (diff) | |
automatic import of python-pyinstaller
Diffstat (limited to 'python-pyinstaller.spec')
| -rw-r--r-- | python-pyinstaller.spec | 127 |
1 files changed, 127 insertions, 0 deletions
diff --git a/python-pyinstaller.spec b/python-pyinstaller.spec new file mode 100644 index 0000000..30c102f --- /dev/null +++ b/python-pyinstaller.spec @@ -0,0 +1,127 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pyinstaller +Version: 5.9.0 +Release: 1 +Summary: PyInstaller bundles a Python application and all its dependencies into a single package. +License: GPLv2-or-later with a special exception which allows to use PyInstaller to build and distribute non-free programs (including commercial ones) +URL: https://www.pyinstaller.org/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/87/0b/0b9cfa5ed2ffcb9f3ae4335c436e4e250a5ea4c4d7dac4a693ed7f2b14dd/pyinstaller-5.9.0.tar.gz + +Requires: python3-setuptools +Requires: python3-altgraph +Requires: python3-pyinstaller-hooks-contrib +Requires: python3-importlib-metadata +Requires: python3-macholib +Requires: python3-pefile +Requires: python3-pywin32-ctypes +Requires: python3-tinyaes +Requires: python3-pytest +Requires: python3-execnet +Requires: python3-psutil + +%description +PyInstaller bundles a Python application and all its dependencies into a single +package. The user can run the packaged app without installing a Python +interpreter or any modules. +PyInstaller reads a Python script written by you. It analyzes your code +to discover every other module and library your script needs in order to +execute. Then it collects copies of all those files -- including the active +Python interpreter! -- and puts them with your script in a single folder, or +optionally in a single executable file. +PyInstaller is tested against Windows, macOS, and GNU/Linux. +However, it is not a cross-compiler: +to make a Windows app you run PyInstaller in Windows; to make +a GNU/Linux app you run it in GNU/Linux, etc. +PyInstaller has been used successfully +with AIX, Solaris, FreeBSD and OpenBSD, +but is not tested against them as part of the continuous integration tests. + +%package -n python3-pyinstaller +Summary: PyInstaller bundles a Python application and all its dependencies into a single package. +Provides: python-pyinstaller +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-cffi +BuildRequires: gcc +BuildRequires: gdb +%description -n python3-pyinstaller +PyInstaller bundles a Python application and all its dependencies into a single +package. The user can run the packaged app without installing a Python +interpreter or any modules. +PyInstaller reads a Python script written by you. It analyzes your code +to discover every other module and library your script needs in order to +execute. Then it collects copies of all those files -- including the active +Python interpreter! -- and puts them with your script in a single folder, or +optionally in a single executable file. +PyInstaller is tested against Windows, macOS, and GNU/Linux. +However, it is not a cross-compiler: +to make a Windows app you run PyInstaller in Windows; to make +a GNU/Linux app you run it in GNU/Linux, etc. +PyInstaller has been used successfully +with AIX, Solaris, FreeBSD and OpenBSD, +but is not tested against them as part of the continuous integration tests. + +%package help +Summary: Development documents and examples for pyinstaller +Provides: python3-pyinstaller-doc +%description help +PyInstaller bundles a Python application and all its dependencies into a single +package. The user can run the packaged app without installing a Python +interpreter or any modules. +PyInstaller reads a Python script written by you. It analyzes your code +to discover every other module and library your script needs in order to +execute. Then it collects copies of all those files -- including the active +Python interpreter! -- and puts them with your script in a single folder, or +optionally in a single executable file. +PyInstaller is tested against Windows, macOS, and GNU/Linux. +However, it is not a cross-compiler: +to make a Windows app you run PyInstaller in Windows; to make +a GNU/Linux app you run it in GNU/Linux, etc. +PyInstaller has been used successfully +with AIX, Solaris, FreeBSD and OpenBSD, +but is not tested against them as part of the continuous integration tests. + +%prep +%autosetup -n pyinstaller-5.9.0 + +%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-pyinstaller -f filelist.lst +%dir %{python3_sitearch}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 5.9.0-1 +- Package Spec generated |
