Hello community,

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

Package is "python-onnx"

Sun May 24 18:08:53 2020 rev:6 rq:808443 version:1.6.0

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-onnx/python-onnx.changes        
2020-04-25 19:09:15.168133367 +0200
+++ /work/SRC/openSUSE:Leap:15.2/.python-onnx.new.2738/python-onnx.changes      
2020-05-24 18:08:54.322137156 +0200
@@ -1,0 +2,5 @@
+Thu May 21 06:55:38 UTC 2020 - Petr Gajdos <pgaj...@suse.com>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-onnx.spec ++++++
--- /var/tmp/diff_new_pack.qY0rsR/_old  2020-05-24 18:08:54.722138021 +0200
+++ /var/tmp/diff_new_pack.qY0rsR/_new  2020-05-24 18:08:54.726138029 +0200
@@ -46,6 +46,8 @@
 Requires:       python-protobuf
 Requires:       python-six
 Requires:       python-typing_extensions >= 3.6.2.1
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 Provides:       python-onnx-devel = %{version}-%{release}
 Obsoletes:      python-onnx-devel < %{version}-%{release}
 %python_subpackages
@@ -71,6 +73,7 @@
 %build
 # define same folder like is used for the setup.py later
 %define __builddir .setuptools-cmake-build
+# FIXME: you should use %%cmake macros
 # Force the cmake to build static libs as otherwise we end
 # up with unresolvable package.
 %{python_expand # we need to generate for each python
@@ -88,6 +91,9 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/backend-test-tools
+%python_clone -a %{buildroot}%{_bindir}/check-node
+%python_clone -a %{buildroot}%{_bindir}/check-model
 %python_expand %fdupes %{buildroot}%{$python_sitearch}
 shebang_files="%{python_sitearch}/onnx/backend/test/stat_coverage.py 
%{python_sitearch}/onnx/defs/gen_doc.py %{python_sitearch}/onnx/gen_proto.py"
 for file in $shebang_files ; do
@@ -102,12 +108,22 @@
 # skip online tests
 %pytest_arch -n auto -k 'not (test_bvlc_alexnet_cpu or test_shufflenet_cpu or 
test_densenet121_cpu or test_squeezenet_cpu or test_inception_v1_cpu or 
test_vgg19_cpu or test_inception_v2_cpu or test_zfnet512_cpu or 
test_resnet50_cpu)'
 
+%post
+%python_install_alternative backend-test-tools
+%python_install_alternative check-node
+%python_install_alternative check-model
+
+%postun
+%python_uninstall_alternative backend-test-tools
+%python_uninstall_alternative check-node
+%python_uninstall_alternative check-model
+
 %files %{python_files}
 %doc README.md
 %license LICENSE
-%python3_only %{_bindir}/check-model
-%python3_only %{_bindir}/check-node
-%python3_only %{_bindir}/backend-test-tools
+%python_alternative %{_bindir}/check-model
+%python_alternative %{_bindir}/check-node
+%python_alternative %{_bindir}/backend-test-tools
 %{python_sitearch}/onnx*
 
 %changelog


Reply via email to