Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package cppreference-doc for 
openSUSE:Factory checked in at 2022-10-27 13:54:22
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/cppreference-doc (Old)
 and      /work/SRC/openSUSE:Factory/.cppreference-doc.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "cppreference-doc"

Thu Oct 27 13:54:22 2022 rev:8 rq:1031429 version:20220730

Changes:
--------
--- /work/SRC/openSUSE:Factory/cppreference-doc/cppreference-doc.changes        
2022-09-15 22:59:29.949267696 +0200
+++ 
/work/SRC/openSUSE:Factory/.cppreference-doc.new.2275/cppreference-doc.changes  
    2022-10-27 13:55:01.264827268 +0200
@@ -1,0 +2,6 @@
+Mon Oct 24 11:09:11 UTC 2022 - Atri Bhattacharya <badshah...@gmail.com>
+
+- Add cppreference-doc-premailer-3.9-compat.patch: Make
+  pre-processing compatible with premailer >= 3.9.
+
+-------------------------------------------------------------------

New:
----
  cppreference-doc-premailer-3.9-compat.patch

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

Other differences:
------------------
++++++ cppreference-doc.spec ++++++
--- /var/tmp/diff_new_pack.x5w12Z/_old  2022-10-27 13:55:01.752829758 +0200
+++ /var/tmp/diff_new_pack.x5w12Z/_new  2022-10-27 13:55:01.764829819 +0200
@@ -24,6 +24,8 @@
 Group:          Documentation/HTML
 URL:            http://en.cppreference.com/w/
 Source0:        
https://github.com/PeterFeicht/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.xz
+# PATCH-FIX-UPSTREAM cppreference-doc-premailer-3.9-compat.patch 
badshah...@gmail.com -- Fix building against premailer >= 3.9
+Patch0:         cppreference-doc-premailer-3.9-compat.patch
 BuildRequires:  devhelp
 BuildRequires:  fdupes
 BuildRequires:  libqt5-qttools
@@ -62,7 +64,7 @@
 This package provides the documentation in the qhelp format.
 
 %prep
-%setup -q
+%autosetup -p1
 
 %build
 make %{?_smp_mflags} qhelpgenerator=qhelpgenerator-qt5

++++++ cppreference-doc-premailer-3.9-compat.patch ++++++
Index: cppreference-doc-20220730/commands/preprocess_cssless.py
===================================================================
--- cppreference-doc-20220730.orig/commands/preprocess_cssless.py
+++ cppreference-doc-20220730/commands/preprocess_cssless.py
@@ -72,8 +72,16 @@ def preprocess_html_merge_css(root, src_
 
     with warnings.catch_warnings():
         warnings.simplefilter("ignore")
-        premailer = Premailer(root, base_url=src_path,
-                              disable_link_rewrites=True, remove_classes=True)
+        try:
+            # Premailer >= 3.9
+            premailer = Premailer(root, base_url=src_path,
+                                  disable_link_rewrites=True, 
remove_classes=True,
+                                  allow_loading_external_files=True)
+        except:
+            # Premailer < 3.9
+            premailer = Premailer(root, base_url=src_path,
+                                  disable_link_rewrites=True, 
remove_classes=True)
+
         root = premailer.transform().getroot()
 
     return output.getvalue()

Reply via email to