Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pre-commit for 
openSUSE:Factory checked in at 2021-02-18 20:40:26
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pre-commit (Old)
 and      /work/SRC/openSUSE:Factory/.python-pre-commit.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pre-commit"

Thu Feb 18 20:40:26 2021 rev:6 rq:872837 version:2.7.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pre-commit/python-pre-commit.changes      
2020-08-31 16:50:59.324375905 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pre-commit.new.28504/python-pre-commit.changes
   2021-02-18 20:52:37.003450985 +0100
@@ -1,0 +2,5 @@
+Tue Feb 16 11:29:34 UTC 2021 - Robert Munteanu <romb...@apache.org>
+
+- Fix build for multiple python flavors 
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pre-commit.spec ++++++
--- /var/tmp/diff_new_pack.TBoE3u/_old  2021-02-18 20:52:37.615451560 +0100
+++ /var/tmp/diff_new_pack.TBoE3u/_new  2021-02-18 20:52:37.619451563 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pre-commit
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -35,6 +35,8 @@
 Requires:       python-nodeenv >= 0.11.1
 Requires:       python-toml
 Requires:       python-virtualenv >= 20.0.8
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 BuildArch:      noarch
 # SECTION test requirements
 BuildRequires:  %{python_module PyYAML >= 5.1}
@@ -46,8 +48,8 @@
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module toml}
 BuildRequires:  %{python_module virtualenv >= 20.0.8}
+BuildRequires:  %{pythons}
 BuildRequires:  git-core
-BuildRequires:  python3
 # /SECTION
 %python_subpackages
 
@@ -64,6 +66,9 @@
 %install
 %python_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
+%python_clone -a %{buildroot}%{_bindir}/pre-commit
+%python_clone -a %{buildroot}%{_bindir}/pre-commit-validate-manifest
+%python_clone -a %{buildroot}%{_bindir}/pre-commit-validate-config
 
 %check
 export GIT_AUTHOR_NAME=test GIT_COMMITTER_NAME=test \
@@ -87,10 +92,20 @@
 git init .
 %pytest -k "not ($EXCLUDED_TESTS)"
 
+%post
+%python_install_alternative pre-commit
+%python_install_alternative pre-commit-validate-config
+%python_install_alternative pre-commit-validate-manifest
+
+%postun
+%python_uninstall_alternative pre-commit
+%python_uninstall_alternative pre-commit-validate-config
+%python_uninstall_alternative pre-commit-validate-manifest
+
 %files %{python_files}
-%{_bindir}/pre-commit-validate-manifest
-%{_bindir}/pre-commit
-%{_bindir}/pre-commit-validate-config
+%python_alternative %{_bindir}/pre-commit-validate-manifest
+%python_alternative %{_bindir}/pre-commit
+%python_alternative %{_bindir}/pre-commit-validate-config
 %{python_sitelib}/pre_commit
 %{python_sitelib}/pre_commit-%{version}-py*.egg-info
 

Reply via email to