public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Michael J Gruber <mjg@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/python-PyMuPDF] rawhide: simplify macro usage for current Fedoras
Date: Wed, 03 Jun 2026 14:23:04 GMT [thread overview]
Message-ID: <178049658469.1.13341181437168777441.rpms-python-PyMuPDF-26afed72c775@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-PyMuPDF
Branch : rawhide
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=rawhide
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
reply other threads:[~2026-06-03 14:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178049658469.1.13341181437168777441.rpms-python-PyMuPDF-26afed72c775@fedoraproject.org \
--to=mjg@fedoraproject.org \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox