From abda5840250291f6ae63da8bc12c8907a6e6fa2c Mon Sep 17 00:00:00 2001 From: madomado Date: Mon, 1 Jul 2024 12:38:05 +0800 Subject: [PATCH] export SETUPTOOLS_SCM_PRETEND_VERSION=%version Signed-off-by: madomado --- anda/langs/python/pillow-heif/python3-pillow-heif.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/anda/langs/python/pillow-heif/python3-pillow-heif.spec b/anda/langs/python/pillow-heif/python3-pillow-heif.spec index 6ad7469c97..f1a8684e92 100644 --- a/anda/langs/python/pillow-heif/python3-pillow-heif.spec +++ b/anda/langs/python/pillow-heif/python3-pillow-heif.spec @@ -72,6 +72,7 @@ Documentation for %{srcname}. %build +export SETUPTOOLS_SCM_PRETEND_VERSION=%version export PILLOW_HEIF_VERSION=%version # Native build %py3_build @@ -84,12 +85,13 @@ rm -f docs/_build_py3/html/.buildinfo %install +export SETUPTOOLS_SCM_PRETEND_VERSION=%version export PILLOW_HEIF_VERSION=%version # Native build %py3_install # hackā€¦? but how did this even happen in the first place -mv %buildroot%python3_sitearch/pillow_heif-0.0.0-py%python3_version.egg-info %buildroot%python3_sitearch/pillow_heif-%version-py%python3_version.egg-info || true +%dnl mv %buildroot%python3_sitearch/pillow_heif-0.0.0-py%python3_version.egg-info %buildroot%python3_sitearch/pillow_heif-%version-py%python3_version.egg-info || true %check # Check Python 3 modules