Skip to content

Commit

Permalink
export SETUPTOOLS_SCM_PRETEND_VERSION=%version
Browse files Browse the repository at this point in the history
Signed-off-by: madomado <[email protected]>
  • Loading branch information
madonuko authored Jul 1, 2024
1 parent 90d59c4 commit abda584
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion anda/langs/python/pillow-heif/python3-pillow-heif.spec
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ Documentation for %{srcname}.


%build
export SETUPTOOLS_SCM_PRETEND_VERSION=%version
export PILLOW_HEIF_VERSION=%version
# Native build
%py3_build
Expand All @@ -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
Expand Down

0 comments on commit abda584

Please sign in to comment.