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 committed by Pavel Filipenský
parent 15b4b0f68d
commit 71db3a4330
1 changed files with 4 additions and 0 deletions

View File

@ -169,6 +169,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}