forked from pool/python-cx_Freeze
Accepting request 605531 from devel:languages:python:misc
Standalone executables for python packages OBS-URL: https://build.opensuse.org/request/show/605531 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cx_Freeze?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
3
cx_Freeze-5.1.1.tar.gz
Normal file
3
cx_Freeze-5.1.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2eadddde670f5c5f6cf88638a0ac4e5d5fe181292a31063275fa56c7bf22426b
|
||||
size 61381
|
58
license.rst
Normal file
58
license.rst
Normal file
@@ -0,0 +1,58 @@
|
||||
.. _license:
|
||||
|
||||
Licensing
|
||||
=========
|
||||
|
||||
* Copyright © 2007-2017, Anthony Tuininga.
|
||||
* Copyright © 2001-2006, Computronix (Canada) Ltd., Edmonton, Alberta, Canada.
|
||||
* All rights reserved.
|
||||
|
||||
NOTE: this license is derived from the Python Software Foundation License
|
||||
which can be found at http://www.python.org/psf/license
|
||||
|
||||
License for cx_Freeze 5.1.1
|
||||
---------------------------
|
||||
|
||||
1. This LICENSE AGREEMENT is between the copyright holders and the Individual
|
||||
or Organization ("Licensee") accessing and otherwise using cx_Freeze
|
||||
software in source or binary form and its associated documentation.
|
||||
|
||||
2. Subject to the terms and conditions of this License Agreement, the
|
||||
copyright holders hereby grant Licensee a nonexclusive, royalty-free,
|
||||
world-wide license to reproduce, analyze, test, perform and/or display
|
||||
publicly, prepare derivative works, distribute, and otherwise use cx_Freeze
|
||||
alone or in any derivative version, provided, however, that this License
|
||||
Agreement and this notice of copyright are retained in cx_Freeze alone or in
|
||||
any derivative version prepared by Licensee.
|
||||
|
||||
3. In the event Licensee prepares a derivative work that is based on or
|
||||
incorporates cx_Freeze or any part thereof, and wants to make the derivative
|
||||
work available to others as provided herein, then Licensee hereby agrees to
|
||||
include in any such work a brief summary of the changes made to cx_Freeze.
|
||||
|
||||
4. The copyright holders are making cx_Freeze available to Licensee on an
|
||||
"AS IS" basis. THE COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES,
|
||||
EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, THE COPYRIGHT
|
||||
HOLDERS MAKE NO AND DISCLAIM ANY REPRESENTATION OR WARRANTY OF
|
||||
MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF
|
||||
CX_FREEZE WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.
|
||||
|
||||
5. THE COPYRIGHT HOLDERS SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF
|
||||
CX_FREEZE FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
|
||||
A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING CX_FREEZE, OR ANY
|
||||
DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
|
||||
|
||||
6. This License Agreement will automatically terminate upon a material breach
|
||||
of its terms and conditions.
|
||||
|
||||
7. Nothing in this License Agreement shall be deemed to create any relationship
|
||||
of agency, partnership, or joint venture between the copyright holders and
|
||||
Licensee. This License Agreement does not grant permission to use
|
||||
copyright holder's trademarks or trade name in a trademark sense to endorse
|
||||
or promote products or services of Licensee, or any third party.
|
||||
|
||||
8. By copying, installing or otherwise using cx_Freeze, Licensee agrees to be
|
||||
bound by the terms and conditions of this License Agreement.
|
||||
|
||||
Computronix® is a registered trademark of Computronix (Canada) Ltd.
|
||||
|
180
python-cx_Freeze.changes
Normal file
180
python-cx_Freeze.changes
Normal file
@@ -0,0 +1,180 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed May 9 03:01:39 UTC 2018 - toddrme2178@gmail.com
|
||||
|
||||
- Update to 5.1.1
|
||||
* See changelog at https://github.com/anthony-tuininga/cx_Freeze/blob/5.1.1/doc/releasenotes.rst
|
||||
- Add license file
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 18 16:42:45 UTC 2017 - toddrme2178@gmail.com
|
||||
|
||||
- Implement single-spec version
|
||||
- Update to 5.1
|
||||
* See changelog at https://github.com/anthony-tuininga/cx_Freeze/blob/5.1/doc/releasenotes.rst
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 14 18:55:40 UTC 2014 - termim@gmail.com
|
||||
|
||||
- Update to 4.3.2:
|
||||
* note: This version supports Python 2.4 and above. If you need Python
|
||||
2.3 support, please use cx_Freeze 4.2.3.
|
||||
* Added support for Python 3.4.
|
||||
* Added hooks for PyQt4, PyQt5 and PySide to handle their plugins.
|
||||
* Added support for creating a shortcut/alias to the Applications
|
||||
directory within distributed DMG files for OS X.
|
||||
* Improve missing modules output.
|
||||
* Avoid polluting the extension module namespace when using the bootstrap
|
||||
module to load the extension.
|
||||
* Added support for using setuptools and pip if such tools are available.
|
||||
* Added first tests; nose and mock are required to run them.
|
||||
* Remove --bundle-iconfile in favor of --iconfile as a more generic
|
||||
method of including the icon for bdist_mac.
|
||||
* Documentation improved and FAQ added.
|
||||
* Converted samples to follow PEP 8.
|
||||
- Bugs fixed:
|
||||
* cxfreeze-quickstart failed if the default base was not used
|
||||
* scripts frozen with Python 3 fail with an ImportError trying to import
|
||||
the re module
|
||||
* fix bug where after a first attempt to find a module failed, the second
|
||||
attempt would erroneously succeed
|
||||
* stop attempting to load a module by a name that is not a valid Python
|
||||
identifier
|
||||
- Update to 4.3.1:
|
||||
* note: This version supports Python 2.4 and above. If you need Python
|
||||
2.3 support, please use cx_Freeze 4.2.3.
|
||||
* Added support for the final release of Python 3.3.
|
||||
* Added support for copying the MSVC runtime DLLs and manifest if desired
|
||||
by using the --include-msvcr switch. Thanks to Almar Klein for the
|
||||
initial patch.
|
||||
* Clarified the documentation on the --replace-paths option. Thanks to
|
||||
Thomas Kluyver for the patch.
|
||||
- Bugs fixed:
|
||||
* Producing a Mac distribution failed with a variable reference.
|
||||
* Freezing a script using PyQt on a Mac failed with a type error.
|
||||
* Version number reported was incorrect.
|
||||
* Correct paths during installation on Windows.
|
||||
- Update to 4.3:
|
||||
* note: This version supports Python 2.4 and above. If you need Python
|
||||
2.3 support, please use cx_Freeze 4.2.3.
|
||||
* Added options to build Mac OS X application bundles and DMG packages
|
||||
using ``bdist_mac`` and ``bdist_dmg`` distutils commands. Written by
|
||||
Rob Reilink.
|
||||
* The documentation is now using Sphinx, and is `available on
|
||||
ReadTheDocs.org
|
||||
<http://cx_freeze.readthedocs.org/en/latest/index.html>`_.
|
||||
* Added support for Python 3.3 which uses a different compiled file
|
||||
format than earlier versions of Python.
|
||||
* Added support for Windows services which start automatically and which
|
||||
are capable of monitoring changes in sessions such as lock and unlock.
|
||||
* New ``cxfreeze-quickstart`` wizard to create a basic ``setup.py`` file.
|
||||
Initially written by Thomas Kluyver.
|
||||
* Included files under their original name can now be passed to
|
||||
``include_files`` as a tuple with an empty second element. Written by
|
||||
r_haritonov.
|
||||
* File inclusions/exclusions can now be specified using a full path, or a
|
||||
shared library name with a version number suffix.
|
||||
- Bugs fixed:
|
||||
* Messagebox display of certain errors in Windows GUI applications with
|
||||
Python 3.
|
||||
* Running Windows GUI applications in a path containing non-ASCII
|
||||
characters.
|
||||
* Calculate the correct filename for the Python shared library in Python
|
||||
3.2.
|
||||
* Including a package would not include the packages within that package,
|
||||
only the modules within that package.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 4 08:57:17 UTC 2012 - toddrme2178@gmail.com
|
||||
|
||||
- Fix for rpmlint warnings
|
||||
- Update license
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 30 14:13:38 UTC 2012 - toddrme2178@gmail.com
|
||||
|
||||
- Split python 3 version into a seperate spec file
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 7 14:43:04 UTC 2011 - saschpe@suse.de
|
||||
|
||||
- Define python3_sitearch for openSUSE-11.3 and 11.4
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 7 10:28:46 UTC 2011 - saschpe@suse.de
|
||||
|
||||
- Provides/obsoletes for python3-cx_freeze
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 5 12:28:35 UTC 2011 - toddrme2178@gmail.com
|
||||
|
||||
- Renamed the package to match the upstream naming
|
||||
- Cleaned up spec file formatting
|
||||
- Added a python 3 version of the package
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Mar 20 02:36:44 UTC 2011 - alexandre@exatati.com.br
|
||||
|
||||
- Update to 4.2.3:
|
||||
- Added support for Python 3.2.
|
||||
- Added hook for datetime module which implicitly imports the time module.
|
||||
- Fixed hook for tkinter in Python 3.x.
|
||||
- Always include the zlib module since the zipimport module requires
|
||||
it, even when compression is not taking place.
|
||||
- Added sample for a tkinter application.
|
||||
- Regenerated spec file.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 27 01:11:08 UTC 2010 - alexandre@exatati.com.br
|
||||
|
||||
- Update to 4.2.2:
|
||||
- Added support for namespace packages which are loaded implicitly upon
|
||||
startup by injection into sys.modules.
|
||||
- Added support for a Zope sample which makes use of namespace packages.
|
||||
- Use the Microsoft compiler on Windows for Python 2.6 and up as some
|
||||
strange behaviors were identified with Python 2.7 when compiled using
|
||||
mingw32.
|
||||
- Eliminate warning about -mwindows when using the Microsoft compiler for
|
||||
building the Win32GUI base executable.
|
||||
- Added support for creating version resources on Windows.
|
||||
- Ensure that modules that are not truly required for bootstrapping are not
|
||||
included in the frozen modules compiled in to the executable; otherwise,
|
||||
* cannot be found at
|
||||
runtime. This problem only seems to be present in Python 2.7.1 but it is a
|
||||
good improvement for earlier releases of Python as well.
|
||||
- Added support for setting the description for Windows services.
|
||||
- Added hook for using the widget plugins which are part of the PyQt4.uic
|
||||
package.
|
||||
- Added additional hooks to remove spurious errors about missing modules
|
||||
and to force inclusion of implicitly imported modules (twitter module
|
||||
*.
|
||||
- Fixed support for installing frozen executables under Python 3.x on
|
||||
Windows.
|
||||
- Removed optional import of setuptools which is not a complete drop-in
|
||||
replacement for distutils and if found, replaces distutils with itself,
|
||||
resulting in some distutils features not being available; for those who
|
||||
require or prefer the use of setuptools, import it in your setup.py.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 17 11:21:14 UTC 2010 - alexandre@exatati.com.br
|
||||
|
||||
- Update to 4.2.1.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 21 01:56:37 UTC 2010 - alexandre@exatati.com.br
|
||||
|
||||
- Update to 4.2.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 6 11:27:45 UTC 2010 - alexandre@exatati.com.br
|
||||
|
||||
- Update to 4.1.2.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 21 10:57:44 UTC 2009 - alexandre@exatati.com.br
|
||||
|
||||
- Updated to 4.1.1.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 29 17:45:29 UTC 2009 - alexandre@exatati.com.br
|
||||
|
||||
- Updated to 4.1.
|
90
python-cx_Freeze.spec
Normal file
90
python-cx_Freeze.spec
Normal file
@@ -0,0 +1,90 @@
|
||||
#
|
||||
# spec file for package python-cx_Freeze
|
||||
#
|
||||
# Copyright (c) 2018 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.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
# Missing sample files
|
||||
%bcond_with test
|
||||
Name: python-cx_Freeze
|
||||
Version: 5.1.1
|
||||
Release: 0
|
||||
Summary: Create standalone executables from Python scripts
|
||||
License: Python-2.0
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/anthony-tuininga/cx_Freeze
|
||||
Source: https://files.pythonhosted.org/packages/source/c/cx_Freeze/cx_Freeze-%{version}.tar.gz
|
||||
Source10: https://raw.githubusercontent.com/anthony-tuininga/cx_Freeze/%{version}/doc/license.rst
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: chrpath
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module nose}
|
||||
BuildRequires: python-mock
|
||||
%endif
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
CX_Freeze is a set of scripts and modules for freezing Python scripts
|
||||
into executables in much the same way that py2exe and py2app do.
|
||||
Unlike these two tools, however, cx_Freeze is cross platform and
|
||||
should work on any platform that Python itself works on.
|
||||
|
||||
%prep
|
||||
%setup -q -n cx_Freeze-%{version}
|
||||
cp %{SOURCE10} .
|
||||
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}
|
||||
|
||||
%python_clone -a %{buildroot}%{_bindir}/cxfreeze
|
||||
%python_clone -a %{buildroot}%{_bindir}/cxfreeze-quickstart
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch}
|
||||
nosetests-%{$python_bin_suffix}
|
||||
}
|
||||
%endif
|
||||
|
||||
%post
|
||||
%{python_install_alternative cxfreeze cxfreeze-quickstart}
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative cxfreeze
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc README.md
|
||||
%license license.rst
|
||||
%python_alternative %{_bindir}/cxfreeze
|
||||
%python_alternative %{_bindir}/cxfreeze-quickstart
|
||||
%{python_sitearch}/*
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user