Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-IMDbPY for openSUSE:Factory 
checked in at 2021-01-21 21:54:55
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-IMDbPY (Old)
 and      /work/SRC/openSUSE:Factory/.python-IMDbPY.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-IMDbPY"

Thu Jan 21 21:54:55 2021 rev:3 rq:865106 version:6.8

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-IMDbPY/python-IMDbPY.changes      
2019-08-05 10:37:06.507329373 +0200
+++ /work/SRC/openSUSE:Factory/.python-IMDbPY.new.28504/python-IMDbPY.changes   
2021-01-21 21:54:56.085783398 +0100
@@ -1,0 +2,6 @@
+Thu Jan 21 04:45:03 UTC 2021 - Steve Kowalik <steven.kowa...@suse.com>
+
+- Use python_alternative for imdbpy script, correct where we install the
+  language mo files from. 
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-IMDbPY.spec ++++++
--- /var/tmp/diff_new_pack.aTDblO/_old  2021-01-21 21:54:56.665783618 +0100
+++ /var/tmp/diff_new_pack.aTDblO/_new  2021-01-21 21:54:56.665783618 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-IMDbPY
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# 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
@@ -34,6 +34,8 @@
 Requires:       python-SQLAlchemy
 Requires:       python-lxml
 BuildArch:      noarch
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 %python_subpackages
 
 %description
@@ -58,21 +60,28 @@
 %python_expand rm %{buildroot}/%{$python_sitelib}/imdb/locale/*.py
 %python_expand rm -rf %{buildroot}/%{$python_sitelib}/imdb/locale/__pycache__/
 %python_expand rm %{buildroot}/%{$python_sitelib}/imdb/locale/*.po
+%python_clone -a %{buildroot}%{_bindir}/imdbpy
+
+%post
+%python_install_alternative imdbpy
+
+%postun
+%python_uninstall_alternative imdbpy
 
 %files %{python_files}
 %doc README.rst docs/Changelog.rst
 %license docs/GPL.txt docs/LICENSE.txt
-%{_bindir}/imdbpy
+%python_alternative %{_bindir}/imdbpy
 %{python_sitelib}/IMDbPY-%{version}-py%{python_version}.egg-info
 %{python_sitelib}/imdb
-%lang(ar) %{python3_sitelib}/imdb/locale/ar/LC_MESSAGES/imdbpy.mo
-%lang(bg) %{python3_sitelib}/imdb/locale/bg/LC_MESSAGES/imdbpy.mo
-%lang(de) %{python3_sitelib}/imdb/locale/de/LC_MESSAGES/imdbpy.mo
-%lang(en) %{python3_sitelib}/imdb/locale/en/LC_MESSAGES/imdbpy.mo
-%lang(es) %{python3_sitelib}/imdb/locale/es/LC_MESSAGES/imdbpy.mo
-%lang(fr) %{python3_sitelib}/imdb/locale/fr/LC_MESSAGES/imdbpy.mo
-%lang(it) %{python3_sitelib}/imdb/locale/it/LC_MESSAGES/imdbpy.mo
-%lang(pt_BR) %{python3_sitelib}/imdb/locale/pt_BR/LC_MESSAGES/imdbpy.mo
-%lang(tr) %{python3_sitelib}/imdb/locale/tr/LC_MESSAGES/imdbpy.mo
+%lang(ar) %{python_sitelib}/imdb/locale/ar/LC_MESSAGES/imdbpy.mo
+%lang(bg) %{python_sitelib}/imdb/locale/bg/LC_MESSAGES/imdbpy.mo
+%lang(de) %{python_sitelib}/imdb/locale/de/LC_MESSAGES/imdbpy.mo
+%lang(en) %{python_sitelib}/imdb/locale/en/LC_MESSAGES/imdbpy.mo
+%lang(es) %{python_sitelib}/imdb/locale/es/LC_MESSAGES/imdbpy.mo
+%lang(fr) %{python_sitelib}/imdb/locale/fr/LC_MESSAGES/imdbpy.mo
+%lang(it) %{python_sitelib}/imdb/locale/it/LC_MESSAGES/imdbpy.mo
+%lang(pt_BR) %{python_sitelib}/imdb/locale/pt_BR/LC_MESSAGES/imdbpy.mo
+%lang(tr) %{python_sitelib}/imdb/locale/tr/LC_MESSAGES/imdbpy.mo
 
 %changelog

Reply via email to