forked from pool/python-cx_Freeze
- Convert to libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cx_Freeze?expand=0&rev=41
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jul 8 08:26:51 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to libalternatives
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Apr 3 01:23:28 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
Thu Apr 3 01:23:28 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
@@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
%define oldpython python
|
%define oldpython python
|
||||||
|
%bcond_without libalternatives
|
||||||
Name: python-cx_Freeze
|
Name: python-cx_Freeze
|
||||||
Version: 8.0.0
|
Version: 8.0.0
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -38,21 +39,21 @@ BuildRequires: %{python_module pytest}
|
|||||||
BuildRequires: %{python_module setuptools >= 65}
|
BuildRequires: %{python_module setuptools >= 65}
|
||||||
BuildRequires: %{python_module tomli >= 2.0.1 if %python-base < 3.11}
|
BuildRequires: %{python_module tomli >= 2.0.1 if %python-base < 3.11}
|
||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
|
BuildRequires: alts
|
||||||
BuildRequires: chrpath
|
BuildRequires: chrpath
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: patchelf
|
BuildRequires: patchelf
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires: alts
|
||||||
Requires: patchelf
|
Requires: patchelf
|
||||||
Requires: python-filelock >= 3.12
|
Requires: python-filelock >= 3.12
|
||||||
Requires: python-packaging >= 24
|
Requires: python-packaging >= 24
|
||||||
Requires: python-setuptools >= 65
|
Requires: python-setuptools >= 65
|
||||||
|
# we provide same binary like the deprecated py2 variant
|
||||||
|
Conflicts: %{oldpython}-cx_Freeze
|
||||||
%if 0%{python_version_nodots} < 311
|
%if 0%{python_version_nodots} < 311
|
||||||
Requires: python-tomli >= 2.0.1
|
Requires: python-tomli >= 2.0.1
|
||||||
%endif
|
%endif
|
||||||
Requires(post): update-alternatives
|
|
||||||
Requires(postun): update-alternatives
|
|
||||||
# we provide same binary like the deprecated py2 variant
|
|
||||||
Conflicts: %{oldpython}-cx_Freeze
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -87,13 +88,9 @@ export CFLAGS="%{optflags}"
|
|||||||
# bdist_rpm is not long for this world, and it always execs the default Python
|
# bdist_rpm is not long for this world, and it always execs the default Python
|
||||||
%pytest_arch -k 'not (test_command_bdist_rpm or test_command_build_exe or test_command_build or test_bdist_appimage)'
|
%pytest_arch -k 'not (test_command_bdist_rpm or test_command_build_exe or test_command_build or test_bdist_appimage)'
|
||||||
|
|
||||||
%post
|
%pre
|
||||||
%python_install_alternative cxfreeze-quickstart
|
%python_libalternatives_reset_alternative cxfreeze-quickstart
|
||||||
%python_install_alternative cxfreeze
|
%python_libalternatives_reset_alternative cxfreeze
|
||||||
|
|
||||||
%postun
|
|
||||||
%python_uninstall_alternative cxfreeze-quickstart
|
|
||||||
%python_uninstall_alternative cxfreeze
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.md
|
%doc README.md
|
||||||
|
Reference in New Issue
Block a user