14
0
Files
python-cx_Freeze/python-cx_Freeze.spec

78 lines
2.7 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-cx_Freeze
#
- Update to 6.0: * Corrected support for Python 3.7 (PR #395). * Use importlib and other Python 3 improvements (PR #484, PR #485, PR #486, PR #490). * Fixed issue with @rpath causing file copy errors on macOS (PR #307). * Replaced file() with open() and use context manager to ensure the file handle is closed and deleted (PR #348). * Corrected invalid version handling in bdist_msi (PR #349, Issue #340). * Corrected hook for clr module (PR #397, PR #444). * Corrected documentation for compress option (PR #358). * Ensure that the pythoncom and pywintypes DLLs are found in the lib directory and not in the base directory (Issue #332). * Always copy dependent files to root directory on macOS (PR #365). * Skip self referencing archive on macOS (PR #364, Issue #304). * Include doc directory in source distribution (PR #394, Issue #376). * Force msilib module to be reloaded in order to allow for the generation of multiple MSI packages in a single session (PR #419). * Added hook for PyQt5.QtPrintSupport module (PR #401). * Added ability to include an icon on the add/remove program window that pops up during installation (PR #387). * Prevent spurious errors from being printed during building on macOS by checking to see that a file is a Mach-O binary before adding it to the list of files it is checking the reference of (PR #342, Issue #268). * Avoid otool bug on macOS Yosemite (PR #297, Issue #292). * Added ability to specify environment variables that should be created when an MSI package is installed (PR #266). * Added support for including resources in an app bundle for macOS (PR #423). * Added absolute reference path option for macOS packages (PR #424). * Added CFBundle identifier for macOS packages (PR #427, Issue #426). * Added hook for copying SSL DLLs for Python 3.7+ on Windows (PR #470). * Added -municode flag when building on Windows with mingw32 (PR #468). * Added hook for pycparser (PR #446). * Fixed hook for zmq so it doesn’t fail when there is no bundled libzmq library in the installed pyzmq package (PR #442). * Print error when fetching dependent files fails (PR #435). * Make executable writable before adding the icon (PR #430, Issue #368). * Dropped support for RPM and MSI packages for cx_Freeze itself since these are no longer supported by PyPI. * Fix building console app with mingw32 (PR #475). * Force inclusion of the unicodedata module which is used by the socket module, and possibly others (PR #476). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cx_Freeze?expand=0&rev=5
2019-09-13 10:28:08 +00:00
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
- Update to 6.0: * Corrected support for Python 3.7 (PR #395). * Use importlib and other Python 3 improvements (PR #484, PR #485, PR #486, PR #490). * Fixed issue with @rpath causing file copy errors on macOS (PR #307). * Replaced file() with open() and use context manager to ensure the file handle is closed and deleted (PR #348). * Corrected invalid version handling in bdist_msi (PR #349, Issue #340). * Corrected hook for clr module (PR #397, PR #444). * Corrected documentation for compress option (PR #358). * Ensure that the pythoncom and pywintypes DLLs are found in the lib directory and not in the base directory (Issue #332). * Always copy dependent files to root directory on macOS (PR #365). * Skip self referencing archive on macOS (PR #364, Issue #304). * Include doc directory in source distribution (PR #394, Issue #376). * Force msilib module to be reloaded in order to allow for the generation of multiple MSI packages in a single session (PR #419). * Added hook for PyQt5.QtPrintSupport module (PR #401). * Added ability to include an icon on the add/remove program window that pops up during installation (PR #387). * Prevent spurious errors from being printed during building on macOS by checking to see that a file is a Mach-O binary before adding it to the list of files it is checking the reference of (PR #342, Issue #268). * Avoid otool bug on macOS Yosemite (PR #297, Issue #292). * Added ability to specify environment variables that should be created when an MSI package is installed (PR #266). * Added support for including resources in an app bundle for macOS (PR #423). * Added absolute reference path option for macOS packages (PR #424). * Added CFBundle identifier for macOS packages (PR #427, Issue #426). * Added hook for copying SSL DLLs for Python 3.7+ on Windows (PR #470). * Added -municode flag when building on Windows with mingw32 (PR #468). * Added hook for pycparser (PR #446). * Fixed hook for zmq so it doesn’t fail when there is no bundled libzmq library in the installed pyzmq package (PR #442). * Print error when fetching dependent files fails (PR #435). * Make executable writable before adding the icon (PR #430, Issue #368). * Dropped support for RPM and MSI packages for cx_Freeze itself since these are no longer supported by PyPI. * Fix building console app with mingw32 (PR #475). * Force inclusion of the unicodedata module which is used by the socket module, and possibly others (PR #476). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cx_Freeze?expand=0&rev=5
2019-09-13 10:28:08 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
- Update to 6.0: * Corrected support for Python 3.7 (PR #395). * Use importlib and other Python 3 improvements (PR #484, PR #485, PR #486, PR #490). * Fixed issue with @rpath causing file copy errors on macOS (PR #307). * Replaced file() with open() and use context manager to ensure the file handle is closed and deleted (PR #348). * Corrected invalid version handling in bdist_msi (PR #349, Issue #340). * Corrected hook for clr module (PR #397, PR #444). * Corrected documentation for compress option (PR #358). * Ensure that the pythoncom and pywintypes DLLs are found in the lib directory and not in the base directory (Issue #332). * Always copy dependent files to root directory on macOS (PR #365). * Skip self referencing archive on macOS (PR #364, Issue #304). * Include doc directory in source distribution (PR #394, Issue #376). * Force msilib module to be reloaded in order to allow for the generation of multiple MSI packages in a single session (PR #419). * Added hook for PyQt5.QtPrintSupport module (PR #401). * Added ability to include an icon on the add/remove program window that pops up during installation (PR #387). * Prevent spurious errors from being printed during building on macOS by checking to see that a file is a Mach-O binary before adding it to the list of files it is checking the reference of (PR #342, Issue #268). * Avoid otool bug on macOS Yosemite (PR #297, Issue #292). * Added ability to specify environment variables that should be created when an MSI package is installed (PR #266). * Added support for including resources in an app bundle for macOS (PR #423). * Added absolute reference path option for macOS packages (PR #424). * Added CFBundle identifier for macOS packages (PR #427, Issue #426). * Added hook for copying SSL DLLs for Python 3.7+ on Windows (PR #470). * Added -municode flag when building on Windows with mingw32 (PR #468). * Added hook for pycparser (PR #446). * Fixed hook for zmq so it doesn’t fail when there is no bundled libzmq library in the installed pyzmq package (PR #442). * Print error when fetching dependent files fails (PR #435). * Make executable writable before adding the icon (PR #430, Issue #368). * Dropped support for RPM and MSI packages for cx_Freeze itself since these are no longer supported by PyPI. * Fix building console app with mingw32 (PR #475). * Force inclusion of the unicodedata module which is used by the socket module, and possibly others (PR #476). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cx_Freeze?expand=0&rev=5
2019-09-13 10:28:08 +00:00
%define skip_python2 1
Name: python-cx_Freeze
- Update to 6.0: * Corrected support for Python 3.7 (PR #395). * Use importlib and other Python 3 improvements (PR #484, PR #485, PR #486, PR #490). * Fixed issue with @rpath causing file copy errors on macOS (PR #307). * Replaced file() with open() and use context manager to ensure the file handle is closed and deleted (PR #348). * Corrected invalid version handling in bdist_msi (PR #349, Issue #340). * Corrected hook for clr module (PR #397, PR #444). * Corrected documentation for compress option (PR #358). * Ensure that the pythoncom and pywintypes DLLs are found in the lib directory and not in the base directory (Issue #332). * Always copy dependent files to root directory on macOS (PR #365). * Skip self referencing archive on macOS (PR #364, Issue #304). * Include doc directory in source distribution (PR #394, Issue #376). * Force msilib module to be reloaded in order to allow for the generation of multiple MSI packages in a single session (PR #419). * Added hook for PyQt5.QtPrintSupport module (PR #401). * Added ability to include an icon on the add/remove program window that pops up during installation (PR #387). * Prevent spurious errors from being printed during building on macOS by checking to see that a file is a Mach-O binary before adding it to the list of files it is checking the reference of (PR #342, Issue #268). * Avoid otool bug on macOS Yosemite (PR #297, Issue #292). * Added ability to specify environment variables that should be created when an MSI package is installed (PR #266). * Added support for including resources in an app bundle for macOS (PR #423). * Added absolute reference path option for macOS packages (PR #424). * Added CFBundle identifier for macOS packages (PR #427, Issue #426). * Added hook for copying SSL DLLs for Python 3.7+ on Windows (PR #470). * Added -municode flag when building on Windows with mingw32 (PR #468). * Added hook for pycparser (PR #446). * Fixed hook for zmq so it doesn’t fail when there is no bundled libzmq library in the installed pyzmq package (PR #442). * Print error when fetching dependent files fails (PR #435). * Make executable writable before adding the icon (PR #430, Issue #368). * Dropped support for RPM and MSI packages for cx_Freeze itself since these are no longer supported by PyPI. * Fix building console app with mingw32 (PR #475). * Force inclusion of the unicodedata module which is used by the socket module, and possibly others (PR #476). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cx_Freeze?expand=0&rev=5
2019-09-13 10:28:08 +00:00
Version: 6.0
Release: 0
Summary: Create standalone executables from Python scripts
License: Python-2.0
Group: Development/Languages/Python
- Update to 6.0: * Corrected support for Python 3.7 (PR #395). * Use importlib and other Python 3 improvements (PR #484, PR #485, PR #486, PR #490). * Fixed issue with @rpath causing file copy errors on macOS (PR #307). * Replaced file() with open() and use context manager to ensure the file handle is closed and deleted (PR #348). * Corrected invalid version handling in bdist_msi (PR #349, Issue #340). * Corrected hook for clr module (PR #397, PR #444). * Corrected documentation for compress option (PR #358). * Ensure that the pythoncom and pywintypes DLLs are found in the lib directory and not in the base directory (Issue #332). * Always copy dependent files to root directory on macOS (PR #365). * Skip self referencing archive on macOS (PR #364, Issue #304). * Include doc directory in source distribution (PR #394, Issue #376). * Force msilib module to be reloaded in order to allow for the generation of multiple MSI packages in a single session (PR #419). * Added hook for PyQt5.QtPrintSupport module (PR #401). * Added ability to include an icon on the add/remove program window that pops up during installation (PR #387). * Prevent spurious errors from being printed during building on macOS by checking to see that a file is a Mach-O binary before adding it to the list of files it is checking the reference of (PR #342, Issue #268). * Avoid otool bug on macOS Yosemite (PR #297, Issue #292). * Added ability to specify environment variables that should be created when an MSI package is installed (PR #266). * Added support for including resources in an app bundle for macOS (PR #423). * Added absolute reference path option for macOS packages (PR #424). * Added CFBundle identifier for macOS packages (PR #427, Issue #426). * Added hook for copying SSL DLLs for Python 3.7+ on Windows (PR #470). * Added -municode flag when building on Windows with mingw32 (PR #468). * Added hook for pycparser (PR #446). * Fixed hook for zmq so it doesn’t fail when there is no bundled libzmq library in the installed pyzmq package (PR #442). * Print error when fetching dependent files fails (PR #435). * Make executable writable before adding the icon (PR #430, Issue #368). * Dropped support for RPM and MSI packages for cx_Freeze itself since these are no longer supported by PyPI. * Fix building console app with mingw32 (PR #475). * Force inclusion of the unicodedata module which is used by the socket module, and possibly others (PR #476). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cx_Freeze?expand=0&rev=5
2019-09-13 10:28:08 +00:00
URL: https://github.com/anthony-tuininga/cx_Freeze
Source: https://github.com/anthony-tuininga/cx_Freeze/archive/%{version}.tar.gz
BuildRequires: %{python_module base >= 3.5}
BuildRequires: %{python_module devel}
- Update to 6.0: * Corrected support for Python 3.7 (PR #395). * Use importlib and other Python 3 improvements (PR #484, PR #485, PR #486, PR #490). * Fixed issue with @rpath causing file copy errors on macOS (PR #307). * Replaced file() with open() and use context manager to ensure the file handle is closed and deleted (PR #348). * Corrected invalid version handling in bdist_msi (PR #349, Issue #340). * Corrected hook for clr module (PR #397, PR #444). * Corrected documentation for compress option (PR #358). * Ensure that the pythoncom and pywintypes DLLs are found in the lib directory and not in the base directory (Issue #332). * Always copy dependent files to root directory on macOS (PR #365). * Skip self referencing archive on macOS (PR #364, Issue #304). * Include doc directory in source distribution (PR #394, Issue #376). * Force msilib module to be reloaded in order to allow for the generation of multiple MSI packages in a single session (PR #419). * Added hook for PyQt5.QtPrintSupport module (PR #401). * Added ability to include an icon on the add/remove program window that pops up during installation (PR #387). * Prevent spurious errors from being printed during building on macOS by checking to see that a file is a Mach-O binary before adding it to the list of files it is checking the reference of (PR #342, Issue #268). * Avoid otool bug on macOS Yosemite (PR #297, Issue #292). * Added ability to specify environment variables that should be created when an MSI package is installed (PR #266). * Added support for including resources in an app bundle for macOS (PR #423). * Added absolute reference path option for macOS packages (PR #424). * Added CFBundle identifier for macOS packages (PR #427, Issue #426). * Added hook for copying SSL DLLs for Python 3.7+ on Windows (PR #470). * Added -municode flag when building on Windows with mingw32 (PR #468). * Added hook for pycparser (PR #446). * Fixed hook for zmq so it doesn’t fail when there is no bundled libzmq library in the installed pyzmq package (PR #442). * Print error when fetching dependent files fails (PR #435). * Make executable writable before adding the icon (PR #430, Issue #368). * Dropped support for RPM and MSI packages for cx_Freeze itself since these are no longer supported by PyPI. * Fix building console app with mingw32 (PR #475). * Force inclusion of the unicodedata module which is used by the socket module, and possibly others (PR #476). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cx_Freeze?expand=0&rev=5
2019-09-13 10:28:08 +00:00
# imports nose in one test
BuildRequires: %{python_module nose}
BuildRequires: %{python_module openpyxl}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: chrpath
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%python_subpackages
%description
CX_Freeze is a set of scripts and modules for turning Python scripts
into executables in much the same way that py2exe and py2app do.
It works by bundling Python executables and libraries from the local
Python installation. As such, the distribution produced by CX_Freeze
shares the very same dependencies. System libraries are not bundled
however, so additional dependencies may need to be manually installed
before being able to run "cx-frozen" executables that were created by
other systems.
%prep
%setup -q -n cx_Freeze-%{version}
sed -i -e '/^#!\//, 1d' cx_Freeze/samples/*/*.py
chmod a-x cx_Freeze/initscripts/*.py
%build
export CFLAGS="%{optflags}"
%python_build
%install
%python_install
%python_expand chrpath -d %{buildroot}%{$python_sitearch}/cx_Freeze/bases/Console*
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
- Update to 6.0: * Corrected support for Python 3.7 (PR #395). * Use importlib and other Python 3 improvements (PR #484, PR #485, PR #486, PR #490). * Fixed issue with @rpath causing file copy errors on macOS (PR #307). * Replaced file() with open() and use context manager to ensure the file handle is closed and deleted (PR #348). * Corrected invalid version handling in bdist_msi (PR #349, Issue #340). * Corrected hook for clr module (PR #397, PR #444). * Corrected documentation for compress option (PR #358). * Ensure that the pythoncom and pywintypes DLLs are found in the lib directory and not in the base directory (Issue #332). * Always copy dependent files to root directory on macOS (PR #365). * Skip self referencing archive on macOS (PR #364, Issue #304). * Include doc directory in source distribution (PR #394, Issue #376). * Force msilib module to be reloaded in order to allow for the generation of multiple MSI packages in a single session (PR #419). * Added hook for PyQt5.QtPrintSupport module (PR #401). * Added ability to include an icon on the add/remove program window that pops up during installation (PR #387). * Prevent spurious errors from being printed during building on macOS by checking to see that a file is a Mach-O binary before adding it to the list of files it is checking the reference of (PR #342, Issue #268). * Avoid otool bug on macOS Yosemite (PR #297, Issue #292). * Added ability to specify environment variables that should be created when an MSI package is installed (PR #266). * Added support for including resources in an app bundle for macOS (PR #423). * Added absolute reference path option for macOS packages (PR #424). * Added CFBundle identifier for macOS packages (PR #427, Issue #426). * Added hook for copying SSL DLLs for Python 3.7+ on Windows (PR #470). * Added -municode flag when building on Windows with mingw32 (PR #468). * Added hook for pycparser (PR #446). * Fixed hook for zmq so it doesn’t fail when there is no bundled libzmq library in the installed pyzmq package (PR #442). * Print error when fetching dependent files fails (PR #435). * Make executable writable before adding the icon (PR #430, Issue #368). * Dropped support for RPM and MSI packages for cx_Freeze itself since these are no longer supported by PyPI. * Fix building console app with mingw32 (PR #475). * Force inclusion of the unicodedata module which is used by the socket module, and possibly others (PR #476). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cx_Freeze?expand=0&rev=5
2019-09-13 10:28:08 +00:00
# test_FindModule_from_zip - needs testpkg1.egg which is not present
%pytest_arch -k 'not test_FindModule_from_zip'
%files %{python_files}
%doc README.md
- Update to 6.0: * Corrected support for Python 3.7 (PR #395). * Use importlib and other Python 3 improvements (PR #484, PR #485, PR #486, PR #490). * Fixed issue with @rpath causing file copy errors on macOS (PR #307). * Replaced file() with open() and use context manager to ensure the file handle is closed and deleted (PR #348). * Corrected invalid version handling in bdist_msi (PR #349, Issue #340). * Corrected hook for clr module (PR #397, PR #444). * Corrected documentation for compress option (PR #358). * Ensure that the pythoncom and pywintypes DLLs are found in the lib directory and not in the base directory (Issue #332). * Always copy dependent files to root directory on macOS (PR #365). * Skip self referencing archive on macOS (PR #364, Issue #304). * Include doc directory in source distribution (PR #394, Issue #376). * Force msilib module to be reloaded in order to allow for the generation of multiple MSI packages in a single session (PR #419). * Added hook for PyQt5.QtPrintSupport module (PR #401). * Added ability to include an icon on the add/remove program window that pops up during installation (PR #387). * Prevent spurious errors from being printed during building on macOS by checking to see that a file is a Mach-O binary before adding it to the list of files it is checking the reference of (PR #342, Issue #268). * Avoid otool bug on macOS Yosemite (PR #297, Issue #292). * Added ability to specify environment variables that should be created when an MSI package is installed (PR #266). * Added support for including resources in an app bundle for macOS (PR #423). * Added absolute reference path option for macOS packages (PR #424). * Added CFBundle identifier for macOS packages (PR #427, Issue #426). * Added hook for copying SSL DLLs for Python 3.7+ on Windows (PR #470). * Added -municode flag when building on Windows with mingw32 (PR #468). * Added hook for pycparser (PR #446). * Fixed hook for zmq so it doesn’t fail when there is no bundled libzmq library in the installed pyzmq package (PR #442). * Print error when fetching dependent files fails (PR #435). * Make executable writable before adding the icon (PR #430, Issue #368). * Dropped support for RPM and MSI packages for cx_Freeze itself since these are no longer supported by PyPI. * Fix building console app with mingw32 (PR #475). * Force inclusion of the unicodedata module which is used by the socket module, and possibly others (PR #476). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cx_Freeze?expand=0&rev=5
2019-09-13 10:28:08 +00:00
%license doc/src/license.rst
%python3_only %{_bindir}/cxfreeze
%python3_only %{_bindir}/cxfreeze-quickstart
%{python_sitearch}/*
%changelog