From 9d8104bf955332d785c5234813c472ea57ec74c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Tue, 8 Sep 2020 09:53:18 +0200 Subject: [PATCH] Handle optional tests Remove them if they are disabled to prevent from an accidental use. --- perl-DBD-SQLite.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/perl-DBD-SQLite.spec b/perl-DBD-SQLite.spec index b5e039b..03ade41 100644 --- a/perl-DBD-SQLite.spec +++ b/perl-DBD-SQLite.spec @@ -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