From 56fa267d5687f47fa4c95d4ccecda28395c2f504e6f0bc80a47a594e14d5dcf1 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 17 Mar 2025 20:13:55 +0000 Subject: [PATCH] Accepting request 1253870 from home:Andreas_Schwab:Factory - Compile everything with -DNDEBUG to fix reference to undefined symbols - Compile mupdf with %optflags OBS-URL: https://build.opensuse.org/request/show/1253870 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=60 --- python-PyMuPDF.changes | 6 ++++++ python-PyMuPDF.spec | 7 ++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/python-PyMuPDF.changes b/python-PyMuPDF.changes index 4a1b4fe..dba295d 100644 --- a/python-PyMuPDF.changes +++ b/python-PyMuPDF.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Mar 17 09:06:01 UTC 2025 - Andreas Schwab + +- Compile everything with -DNDEBUG to fix reference to undefined symbols +- Compile mupdf with %optflags + ------------------------------------------------------------------- Wed Dec 13 14:54:54 UTC 2023 - ecsos diff --git a/python-PyMuPDF.spec b/python-PyMuPDF.spec index 76bb7eb..8f30f2b 100644 --- a/python-PyMuPDF.spec +++ b/python-PyMuPDF.spec @@ -1,7 +1,7 @@ # -# spec file +# spec file for package python-PyMuPDF # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -60,7 +60,8 @@ book formats. PyMuPDF can also access files with extensions *.pdf, %autosetup -p1 -n %{pypi_name}-%{version} %build -export CFLAGS="%{optflags} -I/usr/include/freetype2" +export CFLAGS="%{optflags} -I/usr/include/freetype2 -DNDEBUG" +export ARCHFLAGS="%{optflags}" %pyproject_wheel %install