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/python-glyphsLib] f43: Use the provisional pyproject declarative buildsystem
Date: Sun, 02 Aug 2026 09:39:47 GMT	[thread overview]
Message-ID: <178566358745.1.11191904862568906644.rpms-python-glyphsLib-014a8ae25fc6@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/python-glyphsLib
Branch : f43
Commit : 014a8ae25fc6c11dd2d33b18c15df003174676e7
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-08-02T09:39:18+01:00
Stats  : +12/-19 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/python-glyphsLib/c/014a8ae25fc6c11dd2d33b18c15df003174676e7?branch=f43

Log:
Use the provisional pyproject declarative buildsystem

---
diff --git a/python-glyphsLib.spec b/python-glyphsLib.spec
index 57be7ab..d839b35 100644
--- a/python-glyphsLib.spec
+++ b/python-glyphsLib.spec
@@ -29,6 +29,15 @@ Source:         %{pypi_source glyphslib}
 # https://github.com/googlefonts/glyphsLib/pull/1073
 Patch:          %{url}/pull/1073.patch
 
+BuildSystem:    pyproject
+BuildOption(generate_buildrequires): %{shrink:
+    %{?with_ufo_normalization:--extras ufo_normalization}
+    --extras defcon
+    %{?with_colr:--extras colr}
+    %{?with_check:requirements-dev.in}
+    }
+BuildOption(install): --assert-license glyphsLib
+
 BuildArch:      noarch
 
 BuildRequires:  help2man
@@ -52,8 +61,7 @@ Summary:        %{summary}
 %pyproject_extras_subpkg -n python3-glyphsLib colr
 %endif
 
-%prep
-%autosetup -n glyphslib-%{version} -p1
+%prep -a
 %if %{without ufo_normalization}
 %pyproject_patch_dependency ufonormalizer:ignore
 %endif
@@ -69,21 +77,7 @@ Summary:        %{summary}
 %pyproject_patch_dependency flake8-bugbear:ignore
 %pyproject_patch_dependency flake8:ignore
 
-%generate_buildrequires
-%{pyproject_buildrequires %{shrink:
-    %{?with_ufo_normalization:--extras ufo_normalization}
-    --extras defcon
-    %{?with_colr:--extras colr}
-    %{?with_check:requirements-dev.in}
-    }}
-
-%build
-%pyproject_wheel
-
-%install
-%pyproject_install
-%pyproject_save_files --assert-license glyphsLib
-
+%install -a
 install --directory '%{buildroot}%{_mandir}/man1'
 for bin in glyphs2ufo ufo2glyphs
 do
@@ -98,8 +92,7 @@ done
 sed --regexp-extended --in-place \
     's/^(.*GlyphData(_AGL)?_LICENSE)/%%license &/' %{pyproject_files}
 
-%check
-%pyproject_check_import
+%check -a
 %if %{with check}
 %if %{without ufo_normalization}
 ignore="${ignore-} --ignore=tests/builder/builder_test.py"

                 reply	other threads:[~2026-08-02  9:39 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=178566358745.1.11191904862568906644.rpms-python-glyphsLib-014a8ae25fc6@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