Hello community,

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

Package is "python-img2pdf"

Tue May 26 17:49:26 2020 rev:7 rq:808787 version:0.3.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-img2pdf/python-img2pdf.changes    
2020-04-23 18:37:02.368845534 +0200
+++ /work/SRC/openSUSE:Factory/.python-img2pdf.new.2738/python-img2pdf.changes  
2020-05-26 17:49:30.755905829 +0200
@@ -1,0 +2,5 @@
+Mon May 25 10:59:25 UTC 2020 - Petr Gajdos <pgaj...@suse.com>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-img2pdf.spec ++++++
--- /var/tmp/diff_new_pack.CZFbPp/_old  2020-05-26 17:49:32.575909817 +0200
+++ /var/tmp/diff_new_pack.CZFbPp/_new  2020-05-26 17:49:32.579909827 +0200
@@ -29,17 +29,18 @@
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
-# SECTION test requirements
-BuildRequires:  %{python_module Pillow}
-BuildRequires:  %{python_module pdfrw}
-BuildRequires:  %{python_module pytest}
-# /SECTION
 Requires:       python-Pillow
 Requires:       python-pdfrw
 Requires:       python-setuptools
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 Suggests:       python-pdfrw
 BuildArch:      noarch
-
+# SECTION test requirements
+BuildRequires:  %{python_module Pillow}
+BuildRequires:  %{python_module pdfrw}
+BuildRequires:  %{python_module pytest}
+# /SECTION
 %python_subpackages
 
 %description
@@ -60,16 +61,26 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/img2pdf-gui
+%python_clone -a %{buildroot}%{_bindir}/img2pdf
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
 %python_exec setup.py test
 
+%post
+%python_install_alternative img2pdf-gui
+%python_install_alternative img2pdf
+
+%postun
+%python_uninstall_alternative img2pdf-gui
+%python_uninstall_alternative img2pdf
+
 %files %{python_files}
 %license LICENSE
 %doc CHANGES.rst README.md
-%python3_only %{_bindir}/img2pdf
-%python3_only %{_bindir}/img2pdf-gui
+%python_alternative %{_bindir}/img2pdf
+%python_alternative %{_bindir}/img2pdf-gui
 %{python_sitelib}/*
 
 %changelog


Reply via email to