From bd4c3de20c94286372a32b1bb953fbb539e95b00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 29 Mar 2021 15:52:12 +0200 Subject: [PATCH] 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 --- python-rpm-macros.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-rpm-macros.spec b/python-rpm-macros.spec index abcab86..20ec1d7 100644 --- a/python-rpm-macros.spec +++ b/python-rpm-macros.spec @@ -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}