Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-weasyprint for 
openSUSE:Factory checked in at 2021-12-27 16:07:12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-weasyprint (Old)
 and      /work/SRC/openSUSE:Factory/.python-weasyprint.new.2520 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-weasyprint"

Mon Dec 27 16:07:12 2021 rev:4 rq:942650 version:53.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-weasyprint/python-weasyprint.changes      
2021-12-18 20:30:55.582265213 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-weasyprint.new.2520/python-weasyprint.changes
    2021-12-27 16:07:16.813695473 +0100
@@ -1,0 +2,6 @@
+Wed Dec 22 23:52:20 UTC 2021 - Marcus Rueckert <[email protected]>
+
+- port to the pyproject build to get the commandline for weasyprint
+  back (boo#1194029)
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-weasyprint.spec ++++++
--- /var/tmp/diff_new_pack.BubuON/_old  2021-12-27 16:07:17.289695811 +0100
+++ /var/tmp/diff_new_pack.BubuON/_new  2021-12-27 16:07:17.293695814 +0100
@@ -29,9 +29,13 @@
 URL:            https://github.com/Kozea/WeasyPrint
 Source:         
https://files.pythonhosted.org/packages/source/w/weasyprint/weasyprint-%{version}.tar.gz
 Source100:      python-weasyprint-rpmlintrc
+BuildRequires:  %{python_module flit-core}
+BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module setuptools >= 39.2.0}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+Requires(post): update-alternatives
+Requires(postun):update-alternatives
 Requires:       libgobject-2_0-0
 Requires:       pango
 Requires:       python-Pillow >= 4.0.0
@@ -82,19 +86,28 @@
 sed -i '/addopts/d' pyproject.toml
 
 %build
-%python_build
+export PYTHONPATH=$PWD
+%pyproject_wheel
 
 %install
-%python_install
+%pyproject_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
+%python_clone -a %{buildroot}%{_bindir}/weasyprint
 
 %check
 # gh#Kozea/WeasyPrint#1503
 %pytest -k 'not (test_relative_links_missing_base_link or test_links)' tests
 
+%post
+%python_install_alternative weasyprint
+
+%postun
+%python_uninstall_alternative weasyprint
+
 %files %{python_files}
 %doc README.rst
 %license LICENSE
+%python_alternative %{_bindir}/weasyprint
 %{python_sitelib}/weasyprint
 %{python_sitelib}/weasyprint-%{version}*-info
 

Reply via email to