summaryrefslogtreecommitdiff
path: root/python-nuitka.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 05:17:07 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 05:17:07 +0000
commit7ece7bf4730049702c0ba9d5efc7f54dc5418c66 (patch)
tree3840cc7ee71be60c487460d03afe41ac6f4119a0 /python-nuitka.spec
parent851ccef0e381f34db59088bf01060816384cde09 (diff)
automatic import of python-nuitka
Diffstat (limited to 'python-nuitka.spec')
-rw-r--r--python-nuitka.spec309
1 files changed, 309 insertions, 0 deletions
diff --git a/python-nuitka.spec b/python-nuitka.spec
new file mode 100644
index 0000000..959e386
--- /dev/null
+++ b/python-nuitka.spec
@@ -0,0 +1,309 @@
+%global _empty_manifest_terminate_build 0
+Name: python-Nuitka
+Version: 1.5.5
+Release: 1
+Summary: Python compiler with full language support and CPython compatibility
+License: Apache License, Version 2.0
+URL: https://nuitka.net
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/55/e1/f9ac13c95a44d943079e1779ec550cdfaee8f90233a7c66873957809e915/Nuitka-1.5.5.tar.gz
+BuildArch: noarch
+
+
+%description
+- C Compiler: You need a compiler with support for C11 or alternatively
+ for C++03 [#]_
+ Currently this means, you need to use one of these compilers:
+ - The MinGW64 C11 compiler on Windows, must be based on gcc 11.2 or
+ higher. It will be *automatically* downloaded if no usable C
+ compiler is found, which is the recommended way of installing it,
+ as Nuitka will also upgrade it for you.
+ - Visual Studio 2022 or higher on Windows [#]_, older versions will
+ work but only supported for commercial users. Configure to use the
+ English language pack for best results (Nuitka filters away
+ garbage outputs, but only for English language). It will be used
+ by default if installed.
+ - On all other platforms, the ``gcc`` compiler of at least version
+ 5.1, and below that the ``g++`` compiler of at least version 4.4
+ as an alternative.
+ - The ``clang`` compiler on macOS X and most FreeBSD architectures.
+ - On Windows the ``clang-cl`` compiler on Windows can be used if
+ provided by the Visual Studio installer.
+- Python: Version 2.6, 2.7 or 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10,
+ 3.11
+ For Python 3.3/3.4 and *only* those, we need other Python version
+ as a *compile time* dependency.
+ Nuitka itself is fully compatible with all listed versions, but
+ Scons as an internally used tool is not.
+ For these versions, you *need* a Python2 or Python 3.5 or higher
+ installed as well, but only during the compile time only. That is
+ for use with Scons (which orchestrates the C compilation), which
+ does not support the same Python versions as Nuitka.
+ In addition, on Windows, Python2 cannot be used because
+ ``clcache`` does not work with it, there a Python 3.5 or higher
+ needs to be installed.
+ Nuitka finds these needed Python versions (e.g. on Windows via
+ registry) and you shouldn't notice it as long as they are
+ installed.
+ Increasingly, other functionality is available when another Python
+ has a certain package installed. For example, onefile compression
+ will work for a Python 2.x when another Python is found that has
+ the ``zstandard`` package installed.
+ The created binaries can be made executable independent of the
+ Python installation, with ``--standalone`` and ``--onefile``
+ options.
+ The created binaries have an ``.exe`` suffix on Windows. On other
+ platforms they have no suffix for standalone mode, or ``.bin``
+ suffix, that you are free to remove or change, or specify with the
+ ``-o`` option.
+ The suffix for acceleration mode is added just to be sure that the
+ original script name and the binary name do not ever collide, so
+ we can safely do an overwrite without destroying the original
+ source file.
+ You need the standard Python implementation, called "CPython", to
+ execute Nuitka, because it is closely tied to implementation
+ details of it.
+ It is known that Windows app store Python definitely does not
+ work, it's checked against. And on macOS "pyenv" likely does
+ **not** work.
+- Operating System: Linux, FreeBSD, NetBSD, macOS X, and Windows
+ (32bits/64 bits/ARM).
+ Others may work as well. The portability is expected to be generally
+ good, but the e.g. Scons usage may have to be adapted. Make sure to
+ match Windows Python and C compiler architecture, or else you will
+ get cryptic error messages.
+- Architectures: x86, x86_64 (amd64), and arm, likely many more
+ Other architectures are expected to also work, out of the box, as
+ Nuitka is generally not using any hardware specifics. These are just
+ the ones tested and known to be good. Feedback is welcome. Generally,
+ the architectures that Debian supports can be considered good and
+ tested too.
+ Support for this C11 is a given with gcc 5.x or higher or any clang
+ version.
+ The MSVC compiler doesn't do it yet. But as a workaround, as the C++03
+ language standard is very overlapping with C11, it is then used instead
+ where the C compiler is too old. Nuitka used to require a C++ compiler
+ in the past, but it changed.
+ Download for free from
+ https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx
+ (the community editions work just fine).
+ The latest version is recommended but not required. On the other hand,
+ there is no need to except to support pre-Windows 10 versions, and they
+ might work for you, but support of these configurations is only
+ available to commercial users.
+
+%package -n python3-Nuitka
+Summary: Python compiler with full language support and CPython compatibility
+Provides: python-Nuitka
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-Nuitka
+- C Compiler: You need a compiler with support for C11 or alternatively
+ for C++03 [#]_
+ Currently this means, you need to use one of these compilers:
+ - The MinGW64 C11 compiler on Windows, must be based on gcc 11.2 or
+ higher. It will be *automatically* downloaded if no usable C
+ compiler is found, which is the recommended way of installing it,
+ as Nuitka will also upgrade it for you.
+ - Visual Studio 2022 or higher on Windows [#]_, older versions will
+ work but only supported for commercial users. Configure to use the
+ English language pack for best results (Nuitka filters away
+ garbage outputs, but only for English language). It will be used
+ by default if installed.
+ - On all other platforms, the ``gcc`` compiler of at least version
+ 5.1, and below that the ``g++`` compiler of at least version 4.4
+ as an alternative.
+ - The ``clang`` compiler on macOS X and most FreeBSD architectures.
+ - On Windows the ``clang-cl`` compiler on Windows can be used if
+ provided by the Visual Studio installer.
+- Python: Version 2.6, 2.7 or 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10,
+ 3.11
+ For Python 3.3/3.4 and *only* those, we need other Python version
+ as a *compile time* dependency.
+ Nuitka itself is fully compatible with all listed versions, but
+ Scons as an internally used tool is not.
+ For these versions, you *need* a Python2 or Python 3.5 or higher
+ installed as well, but only during the compile time only. That is
+ for use with Scons (which orchestrates the C compilation), which
+ does not support the same Python versions as Nuitka.
+ In addition, on Windows, Python2 cannot be used because
+ ``clcache`` does not work with it, there a Python 3.5 or higher
+ needs to be installed.
+ Nuitka finds these needed Python versions (e.g. on Windows via
+ registry) and you shouldn't notice it as long as they are
+ installed.
+ Increasingly, other functionality is available when another Python
+ has a certain package installed. For example, onefile compression
+ will work for a Python 2.x when another Python is found that has
+ the ``zstandard`` package installed.
+ The created binaries can be made executable independent of the
+ Python installation, with ``--standalone`` and ``--onefile``
+ options.
+ The created binaries have an ``.exe`` suffix on Windows. On other
+ platforms they have no suffix for standalone mode, or ``.bin``
+ suffix, that you are free to remove or change, or specify with the
+ ``-o`` option.
+ The suffix for acceleration mode is added just to be sure that the
+ original script name and the binary name do not ever collide, so
+ we can safely do an overwrite without destroying the original
+ source file.
+ You need the standard Python implementation, called "CPython", to
+ execute Nuitka, because it is closely tied to implementation
+ details of it.
+ It is known that Windows app store Python definitely does not
+ work, it's checked against. And on macOS "pyenv" likely does
+ **not** work.
+- Operating System: Linux, FreeBSD, NetBSD, macOS X, and Windows
+ (32bits/64 bits/ARM).
+ Others may work as well. The portability is expected to be generally
+ good, but the e.g. Scons usage may have to be adapted. Make sure to
+ match Windows Python and C compiler architecture, or else you will
+ get cryptic error messages.
+- Architectures: x86, x86_64 (amd64), and arm, likely many more
+ Other architectures are expected to also work, out of the box, as
+ Nuitka is generally not using any hardware specifics. These are just
+ the ones tested and known to be good. Feedback is welcome. Generally,
+ the architectures that Debian supports can be considered good and
+ tested too.
+ Support for this C11 is a given with gcc 5.x or higher or any clang
+ version.
+ The MSVC compiler doesn't do it yet. But as a workaround, as the C++03
+ language standard is very overlapping with C11, it is then used instead
+ where the C compiler is too old. Nuitka used to require a C++ compiler
+ in the past, but it changed.
+ Download for free from
+ https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx
+ (the community editions work just fine).
+ The latest version is recommended but not required. On the other hand,
+ there is no need to except to support pre-Windows 10 versions, and they
+ might work for you, but support of these configurations is only
+ available to commercial users.
+
+%package help
+Summary: Development documents and examples for Nuitka
+Provides: python3-Nuitka-doc
+%description help
+- C Compiler: You need a compiler with support for C11 or alternatively
+ for C++03 [#]_
+ Currently this means, you need to use one of these compilers:
+ - The MinGW64 C11 compiler on Windows, must be based on gcc 11.2 or
+ higher. It will be *automatically* downloaded if no usable C
+ compiler is found, which is the recommended way of installing it,
+ as Nuitka will also upgrade it for you.
+ - Visual Studio 2022 or higher on Windows [#]_, older versions will
+ work but only supported for commercial users. Configure to use the
+ English language pack for best results (Nuitka filters away
+ garbage outputs, but only for English language). It will be used
+ by default if installed.
+ - On all other platforms, the ``gcc`` compiler of at least version
+ 5.1, and below that the ``g++`` compiler of at least version 4.4
+ as an alternative.
+ - The ``clang`` compiler on macOS X and most FreeBSD architectures.
+ - On Windows the ``clang-cl`` compiler on Windows can be used if
+ provided by the Visual Studio installer.
+- Python: Version 2.6, 2.7 or 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10,
+ 3.11
+ For Python 3.3/3.4 and *only* those, we need other Python version
+ as a *compile time* dependency.
+ Nuitka itself is fully compatible with all listed versions, but
+ Scons as an internally used tool is not.
+ For these versions, you *need* a Python2 or Python 3.5 or higher
+ installed as well, but only during the compile time only. That is
+ for use with Scons (which orchestrates the C compilation), which
+ does not support the same Python versions as Nuitka.
+ In addition, on Windows, Python2 cannot be used because
+ ``clcache`` does not work with it, there a Python 3.5 or higher
+ needs to be installed.
+ Nuitka finds these needed Python versions (e.g. on Windows via
+ registry) and you shouldn't notice it as long as they are
+ installed.
+ Increasingly, other functionality is available when another Python
+ has a certain package installed. For example, onefile compression
+ will work for a Python 2.x when another Python is found that has
+ the ``zstandard`` package installed.
+ The created binaries can be made executable independent of the
+ Python installation, with ``--standalone`` and ``--onefile``
+ options.
+ The created binaries have an ``.exe`` suffix on Windows. On other
+ platforms they have no suffix for standalone mode, or ``.bin``
+ suffix, that you are free to remove or change, or specify with the
+ ``-o`` option.
+ The suffix for acceleration mode is added just to be sure that the
+ original script name and the binary name do not ever collide, so
+ we can safely do an overwrite without destroying the original
+ source file.
+ You need the standard Python implementation, called "CPython", to
+ execute Nuitka, because it is closely tied to implementation
+ details of it.
+ It is known that Windows app store Python definitely does not
+ work, it's checked against. And on macOS "pyenv" likely does
+ **not** work.
+- Operating System: Linux, FreeBSD, NetBSD, macOS X, and Windows
+ (32bits/64 bits/ARM).
+ Others may work as well. The portability is expected to be generally
+ good, but the e.g. Scons usage may have to be adapted. Make sure to
+ match Windows Python and C compiler architecture, or else you will
+ get cryptic error messages.
+- Architectures: x86, x86_64 (amd64), and arm, likely many more
+ Other architectures are expected to also work, out of the box, as
+ Nuitka is generally not using any hardware specifics. These are just
+ the ones tested and known to be good. Feedback is welcome. Generally,
+ the architectures that Debian supports can be considered good and
+ tested too.
+ Support for this C11 is a given with gcc 5.x or higher or any clang
+ version.
+ The MSVC compiler doesn't do it yet. But as a workaround, as the C++03
+ language standard is very overlapping with C11, it is then used instead
+ where the C compiler is too old. Nuitka used to require a C++ compiler
+ in the past, but it changed.
+ Download for free from
+ https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx
+ (the community editions work just fine).
+ The latest version is recommended but not required. On the other hand,
+ there is no need to except to support pre-Windows 10 versions, and they
+ might work for you, but support of these configurations is only
+ available to commercial users.
+
+%prep
+%autosetup -n Nuitka-1.5.5
+
+%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-Nuitka -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 1.5.5-1
+- Package Spec generated