14
0

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
This commit is contained in:
2025-03-17 20:13:55 +00:00
committed by Git OBS Bridge
parent 639a71813b
commit 56fa267d56
2 changed files with 10 additions and 3 deletions

View File

@@ -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