Paths with spaces would cause the macro to fail.
Version: 1.716
-%define rpm_macros_rev 1.715
+%define rpm_macros_rev 1.716
%define find_lang_rev 1.38
Summary: PLD Linux RPM build macros
Summary(pl.UTF-8): Makra do budowania pakietów RPM dla Linuksa PLD
%{!?debug:set +x;} \
fail=0; \
echo "Checking script shebangs..."; \
- for f in $(find $RPM_BUILD_ROOT -type f -perm -500 -print) ; do \
- shebang=$(sed -e'1s/#! *\(.*\)/\1/;t;d;q' "$f") ; \
- f=${f##$RPM_BUILD_ROOT}; \
+ find $RPM_BUILD_ROOT -type f -perm -500 -print | \
+ while read f ; do \
+ shebang="$(sed -e'1s/#! *\(.*\)/\1/;t;d;q' "$f")" ; \
+ f="${f##$RPM_BUILD_ROOT}"; \
case "$shebang" in \
"%{__python}"|"%{__python3}"|"%{__python} "*|"%{__python3} "* \
|"/usr/bin/python%{py_ver}"|"/usr/bin/python%{py_ver} "* \