14
0

Accepting request 809590 from home:pgajdos:python

submit

OBS-URL: https://build.opensuse.org/request/show/809590
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cx_Freeze?expand=0&rev=9
This commit is contained in:
Tomáš Chvátal
2020-05-27 14:46:06 +00:00
committed by Git OBS Bridge
parent 89103411fe
commit 0f23fdae5a
2 changed files with 20 additions and 3 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed May 27 09:36:53 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Sep 13 14:55:04 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com> Fri Sep 13 14:55:04 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-cx_Freeze # spec file for package python-cx_Freeze
# #
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2020 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -37,6 +37,8 @@ BuildRequires: %{python_module setuptools}
BuildRequires: chrpath BuildRequires: chrpath
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(postun): update-alternatives
# we provide same binary like the deprecated py2 variant # we provide same binary like the deprecated py2 variant
Conflicts: %{oldpython}-cx_Freeze Conflicts: %{oldpython}-cx_Freeze
%python_subpackages %python_subpackages
@@ -63,6 +65,8 @@ export CFLAGS="%{optflags}"
%install %install
%python_install %python_install
%python_clone -a %{buildroot}%{_bindir}/cxfreeze-quickstart
%python_clone -a %{buildroot}%{_bindir}/cxfreeze
%python_expand chrpath -d %{buildroot}%{$python_sitearch}/cx_Freeze/bases/Console* %python_expand chrpath -d %{buildroot}%{$python_sitearch}/cx_Freeze/bases/Console*
%python_expand %fdupes %{buildroot}%{$python_sitearch} %python_expand %fdupes %{buildroot}%{$python_sitearch}
@@ -70,11 +74,19 @@ export CFLAGS="%{optflags}"
# test_FindModule_from_zip - needs testpkg1.egg which is not present # test_FindModule_from_zip - needs testpkg1.egg which is not present
%pytest_arch -k 'not test_FindModule_from_zip' %pytest_arch -k 'not test_FindModule_from_zip'
%post
%python_install_alternative cxfreeze-quickstart
%python_install_alternative cxfreeze
%postun
%python_uninstall_alternative cxfreeze-quickstart
%python_uninstall_alternative cxfreeze
%files %{python_files} %files %{python_files}
%doc README.md %doc README.md
%license doc/src/license.rst %license doc/src/license.rst
%python3_only %{_bindir}/cxfreeze %python_alternative %{_bindir}/cxfreeze
%python3_only %{_bindir}/cxfreeze-quickstart %python_alternative %{_bindir}/cxfreeze-quickstart
%{python_sitearch}/* %{python_sitearch}/*
%changelog %changelog