public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/fontmake] f44: Use the pyproject declarative buildsystem
@ 2026-06-02 21:46 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-06-02 21:46 UTC (permalink / raw)
  To: git-commits

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.

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

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

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-02 21:46 [rpms/fontmake] f44: Use the pyproject declarative buildsystem Benjamin A. Beasley

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