public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/fontmake] f44: Use the pyproject declarative buildsystem
Date: Tue, 02 Jun 2026 21:46:46 GMT [thread overview]
Message-ID: <178043680668.1.12008219585813218185.rpms-fontmake-963de1b84a56@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/fontmake
Branch : f44
Commit : 963de1b84a56340d0a5aa89ba702cc4c85dcd996
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-05-07T18:44:10+01:00
Stats : +15/-28 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/fontmake/c/963de1b84a56340d0a5aa89ba702cc4c85dcd996?branch=f44
Log:
Use the pyproject declarative buildsystem
---
diff --git a/fontmake.spec b/fontmake.spec
index 6e10ae0..2816ab1 100644
--- a/fontmake.spec
+++ b/fontmake.spec
@@ -25,6 +25,19 @@ SourceLicense: %{license} AND MIT AND OFL-1.1
URL: https://github.com/googlefonts/fontmake
Source: %{pypi_source fontmake}
+BuildSystem: pyproject
+BuildOption(install): --assert-license fontmake
+# From setup.py:
+# - this [lxml] is now default; kept here for backward compatibility
+# - MutatorMath is no longer supported but a dummy extras [sic] is kept below
+# to avoid fontmake installation failing if requested
+# We therefore don’t need to generate dependencies for these.
+BuildOption(generate_buildrequires): %{shrink:
+ %{?with_pathops:--extras pathops}
+ %{?with_autohint:--extras autohint}
+ %{?with_json:--extras json}
+ %{?with_repacker:--extras repacker}}
+
BuildArch: noarch
BuildRequires: help2man
@@ -56,31 +69,7 @@ fonts.
%endif
-%prep
-%autosetup
-
-
-%generate_buildrequires
-# From setup.py:
-# - this [lxml] is now default; kept here for backward compatibility
-# - MutatorMath is no longer supported but a dummy extras [sic] is kept below
-# to avoid fontmake installation failing if requested
-# We therefore don’t need to generate dependencies for these.
-%{pyproject_buildrequires %{shrink:
- %{?with_pathops:--extras pathops}
- %{?with_autohint:--extras autohint}
- %{?with_json:--extras json}
- %{?with_repacker:--extras repacker}}}
-
-
-%build
-%pyproject_wheel
-
-
-%install
-%pyproject_install
-%pyproject_save_files --assert-license fontmake
-
+%install -a
# We do this in %%install rather than in %%build because we need to use the
# script entry point that was generated during installation.
install -d '%{buildroot}%{_mandir}/man1'
@@ -91,9 +80,7 @@ install -d '%{buildroot}%{_mandir}/man1'
%{buildroot}%{_bindir}/fontmake
-%check
-%pyproject_check_import
-
+%check -a
# A number of integer IDs differ from the expected output. It feels like this
# is probably a brittle test that is sensitive to dependency versions rather
# than a real problem.
reply other threads:[~2026-06-02 21:46 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=178043680668.1.12008219585813218185.rpms-fontmake-963de1b84a56@fedoraproject.org \
--to=code@musicinmybrain.net \
--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