Blame SOURCES/macro-build

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