Hello community,

here is the log from the commit of package python-WeasyPrint for 
openSUSE:Factory checked in at 2020-05-19 14:46:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-WeasyPrint (Old)
 and      /work/SRC/openSUSE:Factory/.python-WeasyPrint.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-WeasyPrint"

Tue May 19 14:46:45 2020 rev:7 rq:806807 version:51

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-WeasyPrint/python-WeasyPrint.changes      
2020-01-17 16:07:38.272503930 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-WeasyPrint.new.2738/python-WeasyPrint.changes
    2020-05-19 14:46:48.167854779 +0200
@@ -1,0 +2,5 @@
+Mon May 18 07:25:35 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-WeasyPrint.spec ++++++
--- /var/tmp/diff_new_pack.opjHmw/_old  2020-05-19 14:46:49.443857505 +0200
+++ /var/tmp/diff_new_pack.opjHmw/_new  2020-05-19 14:46:49.459857539 +0200
@@ -41,6 +41,8 @@
 Requires:       python-pdfrw >= 0.4
 Requires:       python-setuptools >= 39.2.0
 Requires:       python-tinycss2 >= 1.0.0
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 Suggests:       python-CairoSVG >= 2.4.0
 BuildArch:      noarch
 # SECTION test requirements
@@ -78,16 +80,23 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/weasyprint
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
 # https://github.com/Kozea/WeasyPrint/issues/913
 %pytest -k 'not test_linear_gradients_7'
 
+%post
+%python_install_alternative weasyprint
+
+%postun
+%python_uninstall_alternative weasyprint
+
 %files %{python_files}
 %doc README.rst
 %license LICENSE
-%python3_only %{_bindir}/weasyprint
+%python_alternative %{_bindir}/weasyprint
 %{python_sitelib}/*
 
 %changelog


Reply via email to