Define build macros using buildopts modulemd

Current module build service supports RPM buildopts to set macros for
a build root. Use them instead of custom perl-srpm-macros package.
This commit is contained in:
Petr Písař 2018-01-17 13:30:56 +01:00
commit 840f2fa806

View file

@ -31,24 +31,27 @@ data:
minimal:
rpms:
- perl
filter:
buildopts:
rpms:
# This is provided by MBR, we do not need any different content
# there, not providing it will preserve MBR's NEVRA and that's
# good for dependend modules.
- perl-srpm-macros
macros: |
%_without_perl_enables_groff 1
%_without_perl_enables_syslog_test 1
%_without_perl_enables_systemtap 1
%_without_perl_enables_tcsh 1
%_without_perl_Compress_Bzip2_enables_optional_test 1
%_without_perl_CPAN_Meta_Requirements_enables_optional_test 1
%_without_perl_IPC_System_Simple_enables_optional_test 1
%_without_perl_LWP_MediaTypes_enables_mailcap 1
%_without_perl_Module_Build_enables_optional_test 1
%_without_perl_Perl_OSType_enables_optional_test 1
%_without_perl_Pod_Perldoc_enables_tk_test 1
%_without_perl_Software_License_enables_optional_test 1
%_without_perl_Sys_Syslog_enables_optional_test 1
%_without_perl_Test_Harness_enables_optional_test 1
%_without_perl_URI_enables_Business_ISBN 1
components:
rpms:
# We need to build all (as in perl-bootstrap) RPM packages again
# because only those built from this module definition will get
# into the module compose.
# This perl-srpm-macros build must have higher NEVRA than a build
# from perl-bootstrap and must be built first.
perl-srpm-macros:
rationale: Control generating source packages.
ref: 2d2cd8711bd8ec5059308d85ca2fcc1fbbcf0aa2
buildorder: -1
# Then we can rebuild in a random order because we have all binary
# We can rebuild in a random order because we have all binary
# packages available from perl-bootstrap.
perl:
rationale: The Perl interpreter.