public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-PyMuPDF] f43: simplify macro usage for current Fedoras
@ 2026-06-03 19:02 Michael J Gruber
  0 siblings, 0 replies; only message in thread
From: Michael J Gruber @ 2026-06-03 19:02 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/python-PyMuPDF
            Branch : f43
            Commit : 26afed72c775a0322bdaec17edd1925e10809bbd
            Author : Michael J Gruber <mjg@fedoraproject.org>
            Date   : 2026-04-03T21:04:36+02:00
            Stats  : +3/-14 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-PyMuPDF/c/26afed72c775a0322bdaec17edd1925e10809bbd?branch=f43

            Log:
            simplify macro usage for current Fedoras

[skip changelog]

---
diff --git a/python-PyMuPDF.spec b/python-PyMuPDF.spec
index e12978b..d3ebfe6 100644
--- a/python-PyMuPDF.spec
+++ b/python-PyMuPDF.spec
@@ -2,10 +2,8 @@
 %global module_name pymupdf
 %global module_name_compat fitz
 
-%bcond docs %{defined fedora}
-
-# mupdf barcode support is available on Fedora only
-%bcond barcode 0%{?fedora} 
+%bcond docs 1
+%bcond barcode 1 
 
 Name:		python-%{pypi_name}
 Version:	1.27.2.2
@@ -79,8 +77,6 @@ python-%{pypi_name}-doc contains documentation and examples for PyMuPDF
 %autosetup -n %{pypi_name}-%{version} -p 1
 # disable google analytics for installed doc
 sed -i -e "s/,'sphinxcontrib.googleanalytics'//" docs/conf.py
-# swig < 4.3 (RHEL 9, Fedora 41) needs this
-sed -i -e 's/{swig} --version/{swig} -version/' setup.py
 
 %generate_buildrequires
 %pyproject_buildrequires -R
@@ -94,9 +90,6 @@ export PYMUPDF_SETUP_MUPDF_BUILD=''
 export PYMUPDF_SETUP_IMPLEMENTATIONS='b'
 # build breaks on F39/EL9 with limited API, and we depend on py version anyways:
 export PYMUPDF_SETUP_PY_LIMITED_API=0
-%if 0%{?rhel} && 0%{?rhel} <= 9
-%set_build_flags
-%endif
 CFLAGS="$CFLAGS -I/usr/include -I/usr/include/freetype2 -I/usr/include/mupdf"
 LDFLAGS="$LDFLAGS -lfreetype -lmupdf"
 %pyproject_wheel
@@ -133,12 +126,8 @@ SKIP="$SKIP and not test_4180 and not test_4613 and not test_htmlbox1"
 SKIP="$SKIP and not test_4445 and not test_4457 and not test_4533 and not test_4702"
 # test requires additional packages
 SKIP="$SKIP and not test_4751"
-# test fails on *EL after PyMuPDF change
-%if 0%{?rhel}
-SKIP="$SKIP and not test_3842"
-%endif
 # Fedora's earlier swig may return different results
-%if 0%{?fedora} >= 44 || 0%{?rhel} >= 11
+%if 0%{?fedora} >= 44
 %else
 SKIP="$SKIP and not test_4392"
 %endif

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-03 19:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-03 19:02 [rpms/python-PyMuPDF] f43: simplify macro usage for current Fedoras Michael J Gruber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox