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 8fdf7b3aef
commit 5abeded564
1 changed files with 4 additions and 0 deletions

View File

@ -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}