F41+: Use the provisional pyproject declarative buildsystem
This commit is contained in:
parent
43ebc33f6b
commit
85fd929606
1 changed files with 8 additions and 14 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue