From 85fd9296065eb5abf94fb2fee8c2c7c36c50e114 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Fri, 9 May 2025 08:24:01 -0400 Subject: [PATCH] F41+: Use the provisional pyproject declarative buildsystem --- python-uharfbuzz.spec | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/python-uharfbuzz.spec b/python-uharfbuzz.spec index 2dcd6ad..b08f574 100644 --- a/python-uharfbuzz.spec +++ b/python-uharfbuzz.spec @@ -51,7 +51,10 @@ URL: https://github.com/harfbuzz/uharfbuzz Source0: uharfbuzz-%{version}-filtered.tar.gz Source1: get_source -BuildRequires: python3-devel +BuildSystem: pyproject +BuildOption(generate_buildrequires): -t +BuildOption(install): -l uharfbuzz + BuildRequires: gcc-c++ BuildRequires: pkgconfig(harfbuzz-subset) @@ -67,33 +70,24 @@ Summary: %{summary} %description -n python3-uharfbuzz %{common_description} -%prep -%autosetup -n uharfbuzz-%{version} - +%prep -a # Remove Cythonized C++ sources (if any remain): # https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_using_cython find . -type f -exec grep -FrinIl 'Generated by Cython' '{}' '+' | xargs -r -t rm -v -%generate_buildrequires +%generate_buildrequires -p export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}' export USE_SYSTEM_LIBS=1 -%pyproject_buildrequires -t -%build +%build -p export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}' export USE_SYSTEM_LIBS=1 -%pyproject_wheel -%install -%pyproject_install -%pyproject_save_files -l uharfbuzz - - -%check +%check -a # Requires SparseFont.ttf, omitted from the source archive, via the sparsefont # fixture: k="${k-}${k+ and }not test_sparsefont_coretext"