Handle optional tests
Remove them if they are disabled to prevent from an accidental use.
This commit is contained in:
parent
2e3da71188
commit
9d8104bf95
@ -92,6 +92,11 @@ perl -i -ne 'print $_ unless m{^sqlite}' MANIFEST
|
||||
# Remove bundled modules
|
||||
rm -rf inc
|
||||
perl -i -ne 'print $_ unless m{^inc/}' MANIFEST
|
||||
# Handle optional tests
|
||||
%if !%{with perl_DBD_SQLite_enables_optional_test}
|
||||
rm t/virtual_table/21_perldata_charinfo.t
|
||||
perl -i -ne 'print $_ unless m{^t/virtual_table/21_perldata_charinfo\.t}' MANIFEST
|
||||
%endif
|
||||
|
||||
%build
|
||||
CFLAGS="%{optflags}" perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
||||
|
||||
Loading…
Reference in New Issue
Block a user