public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-glyphsLib] f44: Use the provisional pyproject declarative buildsystem
@ 2026-08-02 9:09 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-08-02 9:09 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-glyphsLib
Branch : f44
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=f44
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"
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-02 9:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-02 9:09 [rpms/python-glyphsLib] f44: Use the provisional 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