Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-python-poppler for
openSUSE:Factory checked in at 2021-03-24 16:12:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-python-poppler (Old)
and /work/SRC/openSUSE:Factory/.python-python-poppler.new.2401 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-python-poppler"
Wed Mar 24 16:12:24 2021 rev:2 rq:880533 version:0.2.2
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-python-poppler/python-python-poppler.changes
2020-10-13 15:43:53.469404267 +0200
+++
/work/SRC/openSUSE:Factory/.python-python-poppler.new.2401/python-python-poppler.changes
2021-03-24 16:12:24.303904565 +0100
@@ -1,0 +2,6 @@
+Mon Mar 22 01:19:20 UTC 2021 - Hans-Peter Jansen <[email protected]>
+
+- Add fix-image-argb.patch to fix image formatting with
+ pybind11 >= 2.6.0
+
+-------------------------------------------------------------------
New:
----
fix-image-argb.patch
series
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-python-poppler.spec ++++++
--- /var/tmp/diff_new_pack.Cu5fA1/_old 2021-03-24 16:12:24.911905203 +0100
+++ /var/tmp/diff_new_pack.Cu5fA1/_new 2021-03-24 16:12:24.911905203 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-python-poppler
#
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2020 LISA GmbH ,Bingen, Germany
#
# All modifications and additions to the file contributed by third parties
@@ -27,17 +27,19 @@
Group: Development/Libraries/Python
URL: https://github.com/cbrunet/python-poppler
Source: python-poppler-%{version}.tar.xz
+Source1: series
Patch: use-system-pybind11.patch
-BuildRequires: python3
+Patch1: fix-image-argb.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pybind11-devel}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
-BuildRequires: pkg-config
BuildRequires: c++_compiler
BuildRequires: cmake
BuildRequires: fdupes
+BuildRequires: pkg-config
BuildRequires: python-rpm-macros
+BuildRequires: python3
BuildRequires: pkgconfig(poppler)
# some tests require this this
BuildRequires: poppler-data
++++++ fix-image-argb.patch ++++++
Index: b/src/cpp/image.cpp
===================================================================
--- a/src/cpp/image.cpp
+++ b/src/cpp/image.cpp
@@ -93,7 +93,11 @@ PYBIND11_MODULE(image, m)
.value("bgr24", image::format_enum::format_bgr24)
#endif
.export_values()
+#if PYBIND11_VERSION_MAJOR >= 2 && PYBIND11_VERSION_MINOR >= 6
+ .def("__str__", &format_to_str, "Image format used by PIL
converters.", py::prepend());
+#else
.def("__str__", &format_to_str, "Image format used by PIL
converters.");
+#endif
py::class_<image>(m, "image", py::buffer_protocol())
.def(py::init<>())
@@ -114,4 +118,4 @@ PYBIND11_MODULE(image, m)
m.def("supported_image_formats", &image::image::supported_image_formats);
}
-} // namespace poppler
\ No newline at end of file
+} // namespace poppler
++++++ series ++++++
use-system-pybind11.patch
fix-image-argb.patch