Hello community,
here is the log from the commit of package python-xhtml2pdf for
openSUSE:Factory checked in at 2020-05-16 22:27:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-xhtml2pdf (Old)
and /work/SRC/openSUSE:Factory/.python-xhtml2pdf.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-xhtml2pdf"
Sat May 16 22:27:04 2020 rev:4 rq:805893 version:0.2.4
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-xhtml2pdf/python-xhtml2pdf.changes
2020-02-07 15:54:27.067512074 +0100
+++
/work/SRC/openSUSE:Factory/.python-xhtml2pdf.new.2738/python-xhtml2pdf.changes
2020-05-16 22:27:08.285372105 +0200
@@ -1,0 +2,5 @@
+Fri May 15 12:56:36 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-xhtml2pdf.spec ++++++
--- /var/tmp/diff_new_pack.JduYuE/_old 2020-05-16 22:27:08.993373558 +0200
+++ /var/tmp/diff_new_pack.JduYuE/_new 2020-05-16 22:27:08.997373565 +0200
@@ -41,6 +41,8 @@
Requires: python-html5lib >= 1.0
Requires: python-reportlab >= 3.0
Requires: python-six
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
Conflicts: python-pisa
BuildArch: noarch
%python_subpackages
@@ -61,16 +63,26 @@
%install
%python_install
+%python_clone -a %{buildroot}%{_bindir}/xhtml2pdf
+%python_clone -a %{buildroot}%{_bindir}/pisa
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# as in setup.py: test_suite = "tests", They're not even working yet
+%post
+%python_install_alternative xhtml2pdf
+%python_install_alternative pisa
+
+%postun
+%python_uninstall_alternative xhtml2pdf
+%python_uninstall_alternative pisa
+
%files %{python_files}
%license LICENSE.txt
%doc README.rst
%{python_sitelib}/*
-%python3_only %{_bindir}/pisa
-%python3_only %{_bindir}/xhtml2pdf
+%python_alternative %{_bindir}/pisa
+%python_alternative %{_bindir}/xhtml2pdf
%changelog