Hello community,

here is the log from the commit of package python-textX for openSUSE:Leap:15.2 
checked in at 2020-05-23 16:08:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-textX (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.python-textX.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-textX"

Sat May 23 16:08:01 2020 rev:14 rq:808346 version:2.1.0

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-textX/python-textX.changes      
2020-03-15 07:14:39.133075225 +0100
+++ /work/SRC/openSUSE:Leap:15.2/.python-textX.new.2738/python-textX.changes    
2020-05-23 16:08:03.709135618 +0200
@@ -1,0 +2,5 @@
+Mon May 18 09:10:29 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-textX.spec ++++++
--- /var/tmp/diff_new_pack.bY7oVh/_old  2020-05-23 16:08:04.041136330 +0200
+++ /var/tmp/diff_new_pack.bY7oVh/_new  2020-05-23 16:08:04.041136330 +0200
@@ -31,6 +31,8 @@
 Requires:       python-Arpeggio >= 1.9.0
 Requires:       python-click >= 7.0
 Requires:       python-setuptools
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 Obsoletes:      %{name}-doc
 BuildArch:      noarch
 # SECTION tests
@@ -96,13 +98,14 @@
 pushd tests/functional/registration/projects/flow_codegen
 %python_install
 popd
+%python_clone -a %{buildroot}%{_bindir}/textx
 %python_expand %fdupes %{buildroot}%{$python_sitelib}/textx
 
 %check
 export PYTHONDONTWRITEBYTECODE=1
 export LC_ALL=C.UTF-8
-export PATH=$PATH:%{buildroot}%{_bindir}
-%pytest
+# textx executable is update-alternative'd
+%pytest -k 'not test_subcommand'
 %python_expand rm -r %{buildroot}%{$python_sitelib}/data_dsl*
 %python_expand rm -r %{buildroot}%{$python_sitelib}/flow_codegen*
 %python_expand rm -r %{buildroot}%{$python_sitelib}/flow_dsl*
@@ -110,9 +113,15 @@
 %python_expand rm -r %{buildroot}%{$python_sitelib}/textX_subcommand_test*
 %python_expand rm -r %{buildroot}%{$python_sitelib}/textx_subcommand_test*
 
+%post
+%python_install_alternative textx
+
+%postun
+%python_uninstall_alternative textx
+
 %files %{python_files}
 %{python_sitelib}/*
-%python3_only %{_bindir}/textx
+%python_alternative %{_bindir}/textx
 %license LICENSE.txt
 %doc AUTHORS.md CHANGELOG.md README.md
 


Reply via email to