From 77c103bf1f58396e2dc14d708d639ba204d90543233e4678f8cec2819753682a Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 3 Jan 2024 18:40:02 +0000 Subject: [PATCH] Accepting request 1136649 from home:deneb_alpha:devel-utils - Specify a Group tag for Leap and SUSE Linux Enterprise - Disable Perl install test as that requires network for CPAN initialisation also on SUSE Linux Enterprise. OBS-URL: https://build.opensuse.org/request/show/1136649 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pre-commit?expand=0&rev=33 --- python-pre-commit.changes | 11 +++++++++++ python-pre-commit.spec | 12 +++++++----- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/python-pre-commit.changes b/python-pre-commit.changes index 6fd9ed6..ee65954 100644 --- a/python-pre-commit.changes +++ b/python-pre-commit.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Wed Jan 3 17:04:33 UTC 2024 - Marina Latini + +- Specify a Group tag for Leap and SUSE Linux Enterprise + +------------------------------------------------------------------- +Wed Jan 3 16:13:53 UTC 2024 - Marina Latini + +- Disable Perl install test as that requires network for + CPAN initialisation also on SUSE Linux Enterprise. + ------------------------------------------------------------------- Wed Dec 13 12:28:25 UTC 2023 - Matthias Bach - 3.6.0 diff --git a/python-pre-commit.spec b/python-pre-commit.spec index 8235965..0d25566 100644 --- a/python-pre-commit.spec +++ b/python-pre-commit.spec @@ -1,7 +1,7 @@ # # spec file for package python-pre-commit # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,6 +24,9 @@ Summary: Multi-language pre-commit hooks License: MIT URL: https://github.com/pre-commit/pre-commit Source: https://github.com/pre-commit/pre-commit/archive/v%{version}.tar.gz#/pre-commit-%{version}.tar.gz +%if 0%{?sle_version} <= 150600 +Group: Development/Tools/Other +%endif BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -33,7 +36,7 @@ Requires: python-identify >= 1.0.0 Requires: python-nodeenv >= 0.11.1 Requires: python-virtualenv >= 20.10.0 Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(postun):update-alternatives BuildArch: noarch %if 0%{?sle_version} <= 150600 && 0%{?is_opensuse} BuildRequires: lua53-devel @@ -99,12 +102,11 @@ EXCLUDED_TESTS="$EXCLUDED_TESTS or test_local_python_repo_python2 or rust_test" EXCLUDED_TESTS="$EXCLUDED_TESTS or test_run_example_executable or test_run_dep or test_perl_additional_dependencies or test_lua_additional_dependencies" # requires swift EXCLUDED_TESTS="$EXCLUDED_TESTS or test_swift_language" -%if 0%{?sle_version} <= 150600 && 0%{?is_opensuse} -# requires network on Leap +%if 0%{?sle_version} <= 150600 +# requires network on Leap or SUSE Linux Enterprise EXCLUDED_TESTS="$EXCLUDED_TESTS or test_perl_install" %endif - # Fix issue with git submodule in OBS git config --global --add protocol.file.allow always