Memoize python3_sitearch for faster RPM spec file processing

This greatly speeds up the creation of source RPMs, among other
things.
This commit is contained in:
Florian Weimer 2022-11-21 15:28:44 +01:00
parent 441bd49ffc
commit 14cc94aae1

View File

@ -193,6 +193,10 @@
%global _systemd_extra "Environment=KRB5CCNAME=FILE:/run/samba/krb5cc_samba" %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 Name: samba
Version: %{samba_version} Version: %{samba_version}
Release: %{samba_release}%{?dist} Release: %{samba_release}%{?dist}