From 5abeded56463236c11817c3d80419bbc075928cc Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Mon, 21 Nov 2022 15:28:44 +0100 Subject: [PATCH] Memoize python3_sitearch for faster RPM spec file processing This greatly speeds up the creation of source RPMs, among other things. --- samba.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/samba.spec b/samba.spec index 6e4f87f..25333b7 100644 --- a/samba.spec +++ b/samba.spec @@ -193,6 +193,10 @@ %global _systemd_extra "Environment=KRB5CCNAME=FILE:/run/samba/krb5cc_samba" +# Make a copy of this variable to prevent repeated evaluation of the +# embedded shell command. +%global python3_sitearch %{python3_sitearch} + Name: samba Version: %{samba_version} Release: %{samba_release}%{?dist}