Hello community,

here is the log from the commit of package python-j2gen for openSUSE:Factory 
checked in at 2020-05-26 17:49:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-j2gen (Old)
 and      /work/SRC/openSUSE:Factory/.python-j2gen.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-j2gen"

Tue May 26 17:49:17 2020 rev:3 rq:808783 version:0.1.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-j2gen/python-j2gen.changes        
2019-09-30 16:02:00.388800263 +0200
+++ /work/SRC/openSUSE:Factory/.python-j2gen.new.2738/python-j2gen.changes      
2020-05-26 17:49:20.475883298 +0200
@@ -1,0 +2,5 @@
+Mon May 25 10:59:31 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-j2gen.spec ++++++
--- /var/tmp/diff_new_pack.rgBmdc/_old  2020-05-26 17:49:21.815886235 +0200
+++ /var/tmp/diff_new_pack.rgBmdc/_new  2020-05-26 17:49:21.819886243 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-j2gen
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -32,6 +32,8 @@
 BuildRequires:  python-rpm-macros
 Requires:       python-Jinja2
 Requires:       python-PyYAML
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 BuildArch:      noarch
 # SECTION test requirements
 BuildRequires:  %{python_module Jinja2}
@@ -53,15 +55,22 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/j2gen
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
 %python_exec setup.py test
 
+%post
+%python_install_alternative j2gen
+
+%postun
+%python_uninstall_alternative j2gen
+
 %files %{python_files}
 %doc AUTHORS ChangeLog README.rst
 %license LICENSE
-%python3_only %{_bindir}/j2gen
+%python_alternative %{_bindir}/j2gen
 %{python_sitelib}/*
 
 %changelog


Reply via email to