diff --git a/.gitignore b/.gitignore index e435feb..910dff2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,17 @@ /uharfbuzz-0.45.0-filtered.tar.gz /uharfbuzz-0.46.0-filtered.tar.gz +/uharfbuzz-0.49.0-filtered.tar.gz +/uharfbuzz-0.50.0-filtered.tar.gz +/uharfbuzz-0.50.2-filtered.tar.gz +/uharfbuzz-0.51.0-filtered.tar.gz +/uharfbuzz-0.51.1-filtered.tar.gz +/uharfbuzz-0.51.2-filtered.tar.gz +/uharfbuzz-0.51.3-filtered.tar.gz +/uharfbuzz-0.51.4-filtered.tar.gz +/uharfbuzz-0.51.5-filtered.tar.gz +/uharfbuzz-0.51.6-filtered.tar.gz +/uharfbuzz-0.51.7-filtered.tar.gz +/uharfbuzz-0.52.0-filtered.tar.gz +/uharfbuzz-0.53.0-filtered.tar.gz +/uharfbuzz-0.53.1-filtered.tar.gz +/uharfbuzz-0.53.2-filtered.tar.gz diff --git a/python-uharfbuzz.rpmlintrc b/python-uharfbuzz.rpmlintrc new file mode 100644 index 0000000..b95bdff --- /dev/null +++ b/python-uharfbuzz.rpmlintrc @@ -0,0 +1,2 @@ +# This Source cannot be a URL because we must filter out certain files. +addFilter(r" invalid-url Source[0-9]+: uharfbuzz-.*-filtered\.tar\.gz") diff --git a/python-uharfbuzz.spec b/python-uharfbuzz.spec index 946109e..5682a9e 100644 --- a/python-uharfbuzz.spec +++ b/python-uharfbuzz.spec @@ -1,5 +1,5 @@ Name: python-uharfbuzz -Version: 0.46.0 +Version: 0.53.2 Release: %autorelease Summary: Streamlined Cython bindings for the harfbuzz shaping engine @@ -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" diff --git a/sources b/sources index ba02835..1913757 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (uharfbuzz-0.46.0-filtered.tar.gz) = 995afc0f40734213c2a76e41965db8c794070c762efdd6df804b0005e866a725b4c3da658560d3a337879fb5fc837e7587f2e26679ae524b089b375da269e79d +SHA512 (uharfbuzz-0.53.2-filtered.tar.gz) = adc87172df16724cf3f4408b35c5750cc295cb243f921dbb9ec5ece5058f161167ce79cbcaf09111dab0606ca8a9cdf5fe4584808cef4fc2052246dbb88f84b7