Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package spack for openSUSE:Factory checked in at 2024-02-12 18:53:19 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/spack (Old) and /work/SRC/openSUSE:Factory/.spack.new.1815 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "spack" Mon Feb 12 18:53:19 2024 rev:39 rq:1146129 version:0.21.1 Changes: -------- --- /work/SRC/openSUSE:Factory/spack/spack.changes 2024-02-02 15:48:20.218989256 +0100 +++ /work/SRC/openSUSE:Factory/.spack.new.1815/spack.changes 2024-02-12 18:55:38.429931869 +0100 @@ -1,0 +2,6 @@ +Fri Feb 2 14:41:14 UTC 2024 - Egbert Eich <e...@suse.com> + +- Make python version used configurable. +- Filter out more rpmlint errors. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ spack.spec ++++++ --- /var/tmp/diff_new_pack.L9dAMc/_old 2024-02-12 18:55:39.165958448 +0100 +++ /var/tmp/diff_new_pack.L9dAMc/_new 2024-02-12 18:55:39.173958737 +0100 @@ -19,11 +19,10 @@ %global flavor @BUILD_FLAVOR@%{?nil} %if "%{flavor}" == "doc" %bcond_without doc -%ifarch i586 %arm s390 s390x %power64 ppc -ExclusiveArch: do_not_build -%endif %endif +ExcludeArch: i586 %arm s390 s390x %power64 ppc + %if %{with doc} && (0%{?sle_version} > 0) && (150200 >= 0%{?sle_version}) ExclusiveArch: do_not_build %endif @@ -45,6 +44,14 @@ # non oss packages %define spack_trigger_external cuda-nvcc + +%if 0%{?sle_version} <= 120500 && !0%{?is_opensuse} +%define __python3 python3 +%endif + +%define mypyver 3 +%define mypython python%{?mypyver} + Name: spack Version: 0.21.1 Release: 0 @@ -67,12 +74,13 @@ Patch8: Set-modules-default-to-lmod.patch Patch9: Add-support-for-container-building-using-a-SLE-base-container.patch %if %{without doc} +BuildRequires: %{mypython}-urllib3 BuildRequires: fdupes BuildRequires: lua-lmod BuildRequires: polkit -BuildRequires: python3-urllib3 BuildRequires: sudo BuildRequires: sysuser-tools +Requires: %{mypython}-clingo Requires: %{name}-recipes = %{version} Requires: awk Requires: bzip2 @@ -87,7 +95,6 @@ Requires: make Requires: patch Requires: polkit -Requires: python3-clingo Requires: sudo Requires: tar Requires: unzip @@ -100,21 +107,18 @@ BuildRequires: git BuildRequires: makeinfo # Hardcode this - there is no python2 version of this around any more. -BuildRequires: python3-Sphinx >= 3.4 -BuildRequires: python3-sphinxcontrib-programoutput +BuildRequires: %{mypython}-Sphinx >= 3.4 +BuildRequires: %{mypython}-sphinxcontrib-programoutput BuildRequires: spack # html BuildRequires: graphviz # info BuildRequires: graphviz-gnome ## pdf -# BuildRequires: python3-Sphinx-latex -Requires: spack +# BuildRequires: %{mypython}-Sphinx-latex +Recommends: spack %endif BuildArch: noarch -%if 0%{?sle_version} <= 120500 && !0%{?is_opensuse} -%define __python3 python3 -%endif %description Spack is a configurable Python-based HPC package manager, automating @@ -252,9 +256,11 @@ # with doc %endif cd - -grep -rl '#! /usr/bin/env bash' . | xargs -i@ sed -i 's|#! /usr/bin/env bash|#!%{_bindir}/bash|g' @ -grep -rl '#!/bin/env sh' . | xargs -i@ sed -i 's|#!/bin/env sh|#!%{_bindir}/sh|g' @ -grep -rl '#!/usr/bin/env bash' . | xargs -i@ sed -i 's|#!/usr/bin/env bash|#!%{_bindir}/bash|g' @ +grep -rl '#! /usr/bin/env bash' . | xargs -i@ sed -i '1s|#! /usr/bin/env bash|#!%{_bindir}/bash|g' @ +grep -rl '#!/bin/env sh' . | xargs -i@ sed -i '1s|#!/bin/env sh|#!%{_bindir}/sh|g' @ +grep -rl '#!/usr/bin/env bash' . | xargs -i@ sed -i '1s|#!/usr/bin/env bash|#!%{_bindir}/bash|g' @ +grep -rl '#![[:space:]]*/usr/bin/env python' | \ + xargs -i@ sed -i '1s|#![[:space:]]*/usr/bin/env python|#!%{_bindir}/%{mypython}|g' @ grep -rl '/var/spack/repos' | grep -v "cmd/list.py" | \ xargs -i@ sed -i 's|/var/spack/repos|/usr/share/spack/repos|g' @ grep -rl "spack/" . | xargs -i@ sed -i \ @@ -335,9 +341,9 @@ lmod: ~/spack/modules EOF -# compile python files for python3 +# compile python files for %{mypython} # %%{buildroot}%%{spack_dir}/spack -%py3_compile . +%{expand:%{py%{?mypyver}_compile .}} # make shell scripts executeable find %{buildroot}%{_localstatedir}/lib/spack/ -type f -name \*.sh -exec chmod 755 {} \; ++++++ spack-rpmlintrc ++++++ --- /var/tmp/diff_new_pack.L9dAMc/_old 2024-02-12 18:55:39.317963937 +0100 +++ /var/tmp/diff_new_pack.L9dAMc/_new 2024-02-12 18:55:39.321964082 +0100 @@ -11,9 +11,15 @@ # Spurious self-applying patches from an upstream source. # These are part of recipes and not intended to run as scripts. addFilter("non-executable-script /var/lib/spack/repos.*") -# Spack is used for building other software, so when it finds e.g +# Spack is used for building other software, so when it finds e.g # the bzip binary it assumes that the devel libraries are also installed. # So ignore the warnings: addFilter("devel-dependency libbz2-devel") addFilter("explicit-lib-dependency libbz2-devel") +# Non executible scripts are expected in recipes. These will be installed +# with the final software that Spack builds. +addFilter("spack-recipes.noarch: .* non-executable-script") +# 3rd party modules - not used stand-alone +addFilter(".* non-executable-script /usr/lib/spack/external/_vendoring") +addFilter(".* non-executable-script /usr/share/spack/gitlab/cloud_pipelines/scripts/common/aggregate_package_logs.spack.py")