# Perl bootstrap for rebuild of Perl and all related packages #%%perl_bootstrap 1 # Enable SCL restrictions %perl_small 1 # The system macros for tests sub-package have to be redefine, because # they use %%{__perl} for updating shbang and it does not work # Btw. these macros should work for non-SCL rpms %tests_req() %{?@SCL@tests_req}%{!?@SCL@tests_req:%{expand:\ BuildRequires: %* \ %%tests_subpackage_requires %* \ }} %tests_subpackage_requires() %{?@SCL@tests_subpackage_requires}%{!?@SCL@tests_subpackage_requires:%{expand: \ %global @SCL@__tests_spkg_req %{?@SCL@__tests_spkg_req} %* \ }} %perl_default_subpackage_tests %{?@SCL@perl_default_subpackage_tests} # scl_macro_prefix - use for updating macro name, %%scl contains dash which is # not allowed in macro name %scl_package_override() %{expand: \ %global perl_small 1 \ %global perl_bootstrap 1 \ %global __perl LD_LIBRARY_PATH="@LIBDIR@${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}" %_scl_root/usr/bin/perl \ %global __perl_requires /usr/lib/rpm/perl.req.stack \ %global __perl_provides /usr/lib/rpm/perl.prov.stack \ %global __perllib_requires /usr/lib/rpm/perl.req.stack \ %global __perllib_provides /usr/lib/rpm/perl.prov.stack \ %global perl_default_filter %{?@SCL@perl_default_filter} \ %global scl_macro_prefix @SCL@ \ }