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"