Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pymol for openSUSE:Factory checked in at 2025-03-15 16:16:36 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pymol (Old) and /work/SRC/openSUSE:Factory/.python-pymol.new.19136 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pymol" Sat Mar 15 16:16:36 2025 rev:16 rq:1253250 version:3.1.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pymol/python-pymol.changes 2025-03-13 22:04:54.675298073 +0100 +++ /work/SRC/openSUSE:Factory/.python-pymol.new.19136/python-pymol.changes 2025-03-15 16:17:28.703576245 +0100 @@ -1,0 +2,8 @@ +Fri Mar 14 17:31:28 UTC 2025 - Friedrich Haubensak <hs...@mail.de> + +- changes to .spec file: + * to make build work on leap 15.6, add sle15_python_module_pythons + and conditional BuildRequires: gcc12-c++ + * drop skip_python2 and oldpython + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pymol.spec ++++++ --- /var/tmp/diff_new_pack.G6UfSL/_old 2025-03-15 16:17:30.699659957 +0100 +++ /var/tmp/diff_new_pack.G6UfSL/_new 2025-03-15 16:17:30.715660628 +0100 @@ -16,10 +16,9 @@ # -%define skip_python2 1 -%define oldpython python %define modname pymol-open-source %bcond_with test +%{?sle15_python_module_pythons} Name: python-pymol Version: 3.1.0 Release: 0 @@ -37,7 +36,11 @@ BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: freetype2-devel +%if 0%{?sle_version} >= 150500 && 0%{?is_opensuse} +BuildRequires: gcc12-c++ +%else BuildRequires: gcc-c++ +%endif BuildRequires: glew-devel BuildRequires: glm-devel BuildRequires: libpng-devel @@ -85,6 +88,10 @@ %autosetup -p1 -n %{modname}-%{version} %build +%if 0%{?sle_version} >= 150500 && 0%{?is_opensuse} +export CC=gcc-12 +export CXX=g++-12 +%endif export CXXFLAGS="%{optflags} -fno-strict-aliasing" %pyproject_wheel @@ -100,13 +107,11 @@ %if 0%{?sle_version} >= 150500 && 0%{?is_opensuse} ## TestSeqalign needs recent biopython not available in Leap rm testing/tests/api/seqalign.py -## default pytest / python on leap are too old... -sed -e '/--import-mode=importlib/d' -i testing/pytest.ini %endif ## succeeds when run separately, but fails when run after ..../api/viewing.py rm testing/tests/api/test_editing.py ## pymol -ckqy testing/testing.py --run all -PYTHONPATH=%{buildroot}%{python_sitearch} python%{python_version} -m pymol -ckqy testing/testing.py --offline --run all +PYTHONPATH=%{buildroot}%{python_sitearch} python%{python_bin_suffix} -m pymol -ckqy testing/testing.py --offline --run all %endif %post