Hello community,

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

Package is "python-netCDF4"

Tue May 26 17:20:21 2020 rev:7 rq:808041 version:1.5.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-netCDF4/python-netCDF4.changes    
2019-11-20 10:28:35.246578426 +0100
+++ /work/SRC/openSUSE:Factory/.python-netCDF4.new.2738/python-netCDF4.changes  
2020-05-26 17:20:25.592117493 +0200
@@ -1,0 +2,5 @@
+Thu May 21 10:56:35 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-netCDF4.spec ++++++
--- /var/tmp/diff_new_pack.zvcDnD/_old  2020-05-26 17:20:26.312119042 +0200
+++ /var/tmp/diff_new_pack.zvcDnD/_new  2020-05-26 17:20:26.316119050 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-netCDF4
 #
-# 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
@@ -41,6 +41,8 @@
 Requires:       netcdf >= 4.2
 Requires:       python-cftime
 Requires:       python-numpy >= 1.10.0
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 # SECTION tests
 BuildRequires:  %{python_module pytest}
 BuildRequires:  netcdf
@@ -71,6 +73,9 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/ncinfo
+%python_clone -a %{buildroot}%{_bindir}/nc4tonc3
+%python_clone -a %{buildroot}%{_bindir}/nc3tonc4
 %python_expand %fdupes %{buildroot}%{$python_sitearch}
 
 %check
@@ -81,12 +86,22 @@
 }
 popd
 
+%post
+%python_install_alternative ncinfo
+%python_install_alternative nc4tonc3
+%python_install_alternative nc3tonc4
+
+%postun
+%python_uninstall_alternative ncinfo
+%python_uninstall_alternative nc4tonc3
+%python_uninstall_alternative nc3tonc4
+
 %files %{python_files}
 %doc Changelog README.md
 %license COPYING
-%python3_only %{_bindir}/nc3tonc4
-%python3_only %{_bindir}/nc4tonc3
-%python3_only %{_bindir}/ncinfo
+%python_alternative %{_bindir}/nc3tonc4
+%python_alternative %{_bindir}/nc4tonc3
+%python_alternative %{_bindir}/ncinfo
 %{python_sitearch}/*
 
 %changelog


Reply via email to