diff --git a/perl-DBD-MariaDB.spec b/perl-DBD-MariaDB.spec index e488aa5..a796b9c 100644 --- a/perl-DBD-MariaDB.spec +++ b/perl-DBD-MariaDB.spec @@ -9,7 +9,7 @@ Name: perl-DBD-MariaDB Version: 1.21 -Release: 11%{?dist} +Release: 12%{?dist} Summary: MariaDB and MySQL driver for the Perl5 Database Interface (DBI) License: GPL+ or Artistic URL: https://metacpan.org/release/DBD-MariaDB/ @@ -110,11 +110,7 @@ cp %{SOURCE1} %{SOURCE2} t/ # Help file to recognise the Perl scripts and normalize shebangs for F in t/*.t t/*.pl; do - if head -1 "$F" | grep -q -e '^#!.*perl\b' ; then - perl -MConfig -pi -e 's|^#!.*perl\b|$Config{startperl}|' "$F" - else - perl -i -MConfig -ple 'print $Config{startperl} if $. == 1' "$F" - fi + perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F" chmod +x "$F" done @@ -174,6 +170,9 @@ make test %{?with_perl_DBD_MariaDB_enables_leak_test:EXTENDED_TESTING=1} %{_libexecdir}/%{name} %changelog +* Tue May 04 2021 Jitka Plesnikova - 1.21-12 +- Update tests + * Fri Mar 12 2021 Jitka Plesnikova - 1.21-11 - Package tests