Make the spec file parseable when %_sourcedir is not .

This happens e.g. with:

 - rpmlint python-rpm-macros.spec
 - rpmdev-bumpspec python-rpm-macros.spec
This commit is contained in:
Miro Hrončok 2021-03-29 15:52:12 +02:00
parent dcb4422895
commit bd4c3de20c
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ License: MIT and Python
# The package version MUST be always the same as %%{__default_python3_version}.
# To have only one source of truth, we load the macro and use it.
# The macro is defined in python-srpm-macros.
%{load:%{SOURCE102}}
%{?load:%{SOURCE102}}
Version: %{__default_python3_version}
Release: 36%{?dist}