Default %{___build_pre} provided in the rpm-build package does
clear some environment variables (locale), but there are other,
that can break build (e.g. $http_proxy may break Python tests using
http://localhost/ URLs).
Version: 1.688
%if "%{pld_release}" == "ac"
%define with_rpm4 1
%endif
-%define rpm_macros_rev 1.687
+%define rpm_macros_rev 1.688
%define find_lang_rev 1.36
Summary: PLD Linux RPM build macros
Summary(pl.UTF-8): Makra do budowania pakietów RPM dla Linuksa PLD
}
}')
+# override %__spec_build_pre and %__spec_install_pre from macros.rpmbuild
+# adding %{_clean_env}
+%__spec_build_pre %{_clean_env}\
+%{___build_pre}\
+%{nil}
+%__spec_install_pre %{_clean_env}\
+%{___build_pre}\
+%{?buildroot:%{__rm} -rf '%{buildroot}'; %{__mkdir_p} '%{buildroot}'}\
+%{nil}
+
#-----------------------------------------------------------------
%configure2_13 { \
if [ -n "$LINGUAS" ]; then unset LINGUAS; fi; \