import UBI perl-DBD-SQLite-1.74-6.el10
This commit is contained in:
parent
7aef2be78d
commit
bdf5817b67
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
||||
SOURCES/DBD-SQLite-1.58.tar.gz
|
||||
DBD-SQLite-1.74.tar.gz
|
||||
|
||||
@ -1 +0,0 @@
|
||||
060575ccf965a80e02b4caed40c1ef589532cf52 SOURCES/DBD-SQLite-1.58.tar.gz
|
||||
96
DBD-SQLite-1.62-Remove-bundled-source-extentions.patch
Normal file
96
DBD-SQLite-1.62-Remove-bundled-source-extentions.patch
Normal file
@ -0,0 +1,96 @@
|
||||
From 244f130b8f918cc80b1c2165877102fe56d6611f Mon Sep 17 00:00:00 2001
|
||||
From: Jitka Plesnikova <jplesnik@redhat.com>
|
||||
Date: Wed, 2 Jan 2019 13:34:31 +0100
|
||||
Subject: [PATCH] Remove bundled source extentions
|
||||
|
||||
---
|
||||
README | 30 ------------------------------
|
||||
lib/DBD/SQLite.pm | 31 -------------------------------
|
||||
2 files changed, 61 deletions(-)
|
||||
|
||||
diff --git a/README b/README
|
||||
index 34973a3..069cdeb 100644
|
||||
--- a/README
|
||||
+++ b/README
|
||||
@@ -1439,36 +1439,6 @@ VIRTUAL TABLES IMPLEMENTED IN PERL
|
||||
Other Perl virtual tables may also be published separately on
|
||||
CPAN.
|
||||
|
||||
-FOR DBD::SQLITE EXTENSION AUTHORS
|
||||
- Since 1.30_01, you can retrieve the bundled SQLite C source and/or
|
||||
- header like this:
|
||||
-
|
||||
- use File::ShareDir 'dist_dir';
|
||||
- use File::Spec::Functions 'catfile';
|
||||
-
|
||||
- # the whole sqlite3.h header
|
||||
- my $sqlite3_h = catfile(dist_dir('DBD-SQLite'), 'sqlite3.h');
|
||||
-
|
||||
- # or only a particular header, amalgamated in sqlite3.c
|
||||
- my $what_i_want = 'parse.h';
|
||||
- my $sqlite3_c = catfile(dist_dir('DBD-SQLite'), 'sqlite3.c');
|
||||
- open my $fh, '<', $sqlite3_c or die $!;
|
||||
- my $code = do { local $/; <$fh> };
|
||||
- my ($parse_h) = $code =~ m{(
|
||||
- /\*+[ ]Begin[ ]file[ ]$what_i_want[ ]\*+
|
||||
- .+?
|
||||
- /\*+[ ]End[ ]of[ ]$what_i_want[ ]\*+/
|
||||
- )}sx;
|
||||
- open my $out, '>', $what_i_want or die $!;
|
||||
- print $out $parse_h;
|
||||
- close $out;
|
||||
-
|
||||
- You usually want to use this in your extension's "Makefile.PL",
|
||||
- and you may want to add DBD::SQLite to your extension's
|
||||
- "CONFIGURE_REQUIRES" to ensure your extension users use the same C
|
||||
- source/header they use to build DBD::SQLite itself (instead of the
|
||||
- ones installed in their system).
|
||||
-
|
||||
TO DO
|
||||
The following items remain to be done.
|
||||
|
||||
diff --git a/lib/DBD/SQLite.pm b/lib/DBD/SQLite.pm
|
||||
index f6b90e4..e1150aa 100644
|
||||
--- a/lib/DBD/SQLite.pm
|
||||
+++ b/lib/DBD/SQLite.pm
|
||||
@@ -2649,37 +2649,6 @@ sources, etc.
|
||||
|
||||
Other Perl virtual tables may also be published separately on CPAN.
|
||||
|
||||
-=head1 FOR DBD::SQLITE EXTENSION AUTHORS
|
||||
-
|
||||
-Since 1.30_01, you can retrieve the bundled SQLite C source and/or
|
||||
-header like this:
|
||||
-
|
||||
- use File::ShareDir 'dist_dir';
|
||||
- use File::Spec::Functions 'catfile';
|
||||
-
|
||||
- # the whole sqlite3.h header
|
||||
- my $sqlite3_h = catfile(dist_dir('DBD-SQLite'), 'sqlite3.h');
|
||||
-
|
||||
- # or only a particular header, amalgamated in sqlite3.c
|
||||
- my $what_i_want = 'parse.h';
|
||||
- my $sqlite3_c = catfile(dist_dir('DBD-SQLite'), 'sqlite3.c');
|
||||
- open my $fh, '<', $sqlite3_c or die $!;
|
||||
- my $code = do { local $/; <$fh> };
|
||||
- my ($parse_h) = $code =~ m{(
|
||||
- /\*+[ ]Begin[ ]file[ ]$what_i_want[ ]\*+
|
||||
- .+?
|
||||
- /\*+[ ]End[ ]of[ ]$what_i_want[ ]\*+/
|
||||
- )}sx;
|
||||
- open my $out, '>', $what_i_want or die $!;
|
||||
- print $out $parse_h;
|
||||
- close $out;
|
||||
-
|
||||
-You usually want to use this in your extension's C<Makefile.PL>,
|
||||
-and you may want to add DBD::SQLite to your extension's C<CONFIGURE_REQUIRES>
|
||||
-to ensure your extension users use the same C source/header they use
|
||||
-to build DBD::SQLite itself (instead of the ones installed in their
|
||||
-system).
|
||||
-
|
||||
=head1 TO DO
|
||||
|
||||
The following items remain to be done.
|
||||
--
|
||||
2.17.2
|
||||
|
||||
49
DBD-SQLite-1.64-Unbundle-Test-FailWarnings.patch
Normal file
49
DBD-SQLite-1.64-Unbundle-Test-FailWarnings.patch
Normal file
@ -0,0 +1,49 @@
|
||||
From 7b0ab0afac68a6540e1023419d66423f24f6134a Mon Sep 17 00:00:00 2001
|
||||
From: Jitka Plesnikova <jplesnik@redhat.com>
|
||||
Date: Mon, 3 Dec 2018 15:36:25 +0100
|
||||
Subject: [PATCH] Unbundle Test::FailWarnings
|
||||
|
||||
---
|
||||
Makefile.PL | 6 ++----
|
||||
t/virtual_table/11_filecontent_fulltext.t | 7 ++-----
|
||||
2 files changed, 5 insertions(+), 10 deletions(-)
|
||||
|
||||
diff --git a/Makefile.PL b/Makefile.PL
|
||||
index 1175783..f523987 100644
|
||||
--- a/Makefile.PL
|
||||
+++ b/Makefile.PL
|
||||
@@ -367,6 +367,7 @@ WriteMakefile(
|
||||
build_requires => {
|
||||
'File::Spec' => (WINLIKE ? '3.27' : '0.82'),
|
||||
'Test::More' => '0.88',
|
||||
+ 'Test::FailWarnings' => '0.008',
|
||||
},
|
||||
requires => {
|
||||
'Tie::Hash' => 0,
|
||||
diff --git a/t/virtual_table/11_filecontent_fulltext.t b/t/virtual_table/11_filecontent_fulltext.t
|
||||
index 0a0304f..a49fd35 100644
|
||||
--- a/t/virtual_table/11_filecontent_fulltext.t
|
||||
+++ b/t/virtual_table/11_filecontent_fulltext.t
|
||||
@@ -21,8 +21,7 @@ my @tests = (
|
||||
lib/DBD/SQLite/VirtualTable/FileContent.pm
|
||||
lib/DBD/SQLite/VirtualTable/PerlData.pm]],
|
||||
["install_method" => qw[lib/DBD/SQLite.pm]],
|
||||
- ['"use strict"' => qw[inc/Test/FailWarnings.pm
|
||||
- lib/DBD/SQLite.pm
|
||||
+ ['"use strict"' => qw[lib/DBD/SQLite.pm
|
||||
lib/DBD/SQLite/Constants.pm
|
||||
lib/DBD/SQLite/GetInfo.pm
|
||||
lib/DBD/SQLite/VirtualTable.pm
|
||||
@@ -36,8 +35,7 @@ my @tests = (
|
||||
# literally.
|
||||
if (has_compile_option('ENABLE_FTS3_PARENTHESIS')) {
|
||||
push @tests, (
|
||||
- ['"use strict" AND "use warnings"' => qw[inc/Test/FailWarnings.pm
|
||||
- lib/DBD/SQLite/Constants.pm
|
||||
+ ['"use strict" AND "use warnings"' => qw[lib/DBD/SQLite/Constants.pm
|
||||
lib/DBD/SQLite/GetInfo.pm
|
||||
lib/DBD/SQLite/VirtualTable.pm
|
||||
lib/DBD/SQLite/VirtualTable/FileContent.pm
|
||||
--
|
||||
2.17.2
|
||||
|
||||
@ -1,100 +0,0 @@
|
||||
From 8973008e7e50b14e266dd3ff6b4728289910ba5f Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
|
||||
Date: Thu, 18 Feb 2016 14:16:06 +0100
|
||||
Subject: [PATCH] Remove bundled source extentions
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Signed-off-by: Petr Písař <ppisar@redhat.com>
|
||||
---
|
||||
README | 30 ------------------------------
|
||||
lib/DBD/SQLite.pm | 31 -------------------------------
|
||||
2 files changed, 61 deletions(-)
|
||||
|
||||
diff --git a/README b/README
|
||||
index c1577c2..bf7503c 100644
|
||||
--- a/README
|
||||
+++ b/README
|
||||
@@ -1222,36 +1222,6 @@ R* TREE SUPPORT
|
||||
using callbacks, as mentioned in the prior link, have not been
|
||||
implemented yet.
|
||||
|
||||
-FOR DBD::SQLITE EXTENSION AUTHORS
|
||||
- Since 1.30_01, you can retrieve the bundled sqlite C source and/or
|
||||
- header like this:
|
||||
-
|
||||
- use File::ShareDir 'dist_dir';
|
||||
- use File::Spec::Functions 'catfile';
|
||||
-
|
||||
- # the whole sqlite3.h header
|
||||
- my $sqlite3_h = catfile(dist_dir('DBD-SQLite'), 'sqlite3.h');
|
||||
-
|
||||
- # or only a particular header, amalgamated in sqlite3.c
|
||||
- my $what_i_want = 'parse.h';
|
||||
- my $sqlite3_c = catfile(dist_dir('DBD-SQLite'), 'sqlite3.c');
|
||||
- open my $fh, '<', $sqlite3_c or die $!;
|
||||
- my $code = do { local $/; <$fh> };
|
||||
- my ($parse_h) = $code =~ m{(
|
||||
- /\*+[ ]Begin[ ]file[ ]$what_i_want[ ]\*+
|
||||
- .+?
|
||||
- /\*+[ ]End[ ]of[ ]$what_i_want[ ]\*+/
|
||||
- )}sx;
|
||||
- open my $out, '>', $what_i_want or die $!;
|
||||
- print $out $parse_h;
|
||||
- close $out;
|
||||
-
|
||||
- You usually want to use this in your extension's "Makefile.PL", and you
|
||||
- may want to add DBD::SQLite to your extension's "CONFIGURE_REQUIRES" to
|
||||
- ensure your extension users use the same C source/header they use to
|
||||
- build DBD::SQLite itself (instead of the ones installed in their
|
||||
- system).
|
||||
-
|
||||
TO DO
|
||||
The following items remain to be done.
|
||||
|
||||
diff --git a/lib/DBD/SQLite.pm b/lib/DBD/SQLite.pm
|
||||
index d03aeb5..60b74a7 100644
|
||||
--- a/lib/DBD/SQLite.pm
|
||||
+++ b/lib/DBD/SQLite.pm
|
||||
@@ -2494,37 +2494,6 @@ sources, etc.
|
||||
|
||||
Other Perl virtual tables may also be published separately on CPAN.
|
||||
|
||||
-=head1 FOR DBD::SQLITE EXTENSION AUTHORS
|
||||
-
|
||||
-Since 1.30_01, you can retrieve the bundled SQLite C source and/or
|
||||
-header like this:
|
||||
-
|
||||
- use File::ShareDir 'dist_dir';
|
||||
- use File::Spec::Functions 'catfile';
|
||||
-
|
||||
- # the whole sqlite3.h header
|
||||
- my $sqlite3_h = catfile(dist_dir('DBD-SQLite'), 'sqlite3.h');
|
||||
-
|
||||
- # or only a particular header, amalgamated in sqlite3.c
|
||||
- my $what_i_want = 'parse.h';
|
||||
- my $sqlite3_c = catfile(dist_dir('DBD-SQLite'), 'sqlite3.c');
|
||||
- open my $fh, '<', $sqlite3_c or die $!;
|
||||
- my $code = do { local $/; <$fh> };
|
||||
- my ($parse_h) = $code =~ m{(
|
||||
- /\*+[ ]Begin[ ]file[ ]$what_i_want[ ]\*+
|
||||
- .+?
|
||||
- /\*+[ ]End[ ]of[ ]$what_i_want[ ]\*+/
|
||||
- )}sx;
|
||||
- open my $out, '>', $what_i_want or die $!;
|
||||
- print $out $parse_h;
|
||||
- close $out;
|
||||
-
|
||||
-You usually want to use this in your extension's C<Makefile.PL>,
|
||||
-and you may want to add DBD::SQLite to your extension's C<CONFIGURE_REQUIRES>
|
||||
-to ensure your extension users use the same C source/header they use
|
||||
-to build DBD::SQLite itself (instead of the ones installed in their
|
||||
-system).
|
||||
-
|
||||
=head1 TO DO
|
||||
|
||||
The following items remain to be done.
|
||||
--
|
||||
2.5.0
|
||||
|
||||
@ -1,65 +0,0 @@
|
||||
From 1944bbf4f29181690097e61f1410d30d43343b02 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
|
||||
Date: Thu, 29 Mar 2018 10:40:17 +0200
|
||||
Subject: [PATCH] Unbundle Test::NoWarnings
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Signed-off-by: Petr Písař <ppisar@redhat.com>
|
||||
---
|
||||
Makefile.PL | 6 ++----
|
||||
t/virtual_table/11_filecontent_fulltext.t | 7 ++-----
|
||||
|
||||
diff --git a/Makefile.PL b/Makefile.PL
|
||||
index fcdf771..3860eda 100644
|
||||
--- a/Makefile.PL
|
||||
+++ b/Makefile.PL
|
||||
@@ -330,8 +330,7 @@ WriteMakefile(
|
||||
'Tie::Hash' => 0,
|
||||
'File::Spec' => (WINLIKE ? '3.27' : '0.82'),
|
||||
'DBI' => $DBI_required,
|
||||
- 'Test::More' => '0.47', # Test::NoWarnings
|
||||
- 'Test::Builder' => '0.86', # Test::NoWarnings
|
||||
+ 'Test::More' => 0,
|
||||
( WINLIKE ? (
|
||||
'Win32' => '0.30',
|
||||
) : () ),
|
||||
@@ -363,8 +362,7 @@ WriteMakefile(
|
||||
build_requires => {
|
||||
'File::Spec' => (WINLIKE ? '3.27' : '0.82'),
|
||||
'Test::More' => '0.42',
|
||||
- # Bundled in /inc
|
||||
- # 'Test::NoWarnings' => '0.081',
|
||||
+ 'Test::NoWarnings' => '0.081',
|
||||
},
|
||||
requires => {
|
||||
'Tie::Hash' => 0,
|
||||
diff --git a/t/virtual_table/11_filecontent_fulltext.t b/t/virtual_table/11_filecontent_fulltext.t
|
||||
index b95b115..7e805f1 100644
|
||||
--- a/t/virtual_table/11_filecontent_fulltext.t
|
||||
+++ b/t/virtual_table/11_filecontent_fulltext.t
|
||||
@@ -27,9 +27,7 @@ my @tests = (
|
||||
lib/DBD/SQLite/VirtualTable/FileContent.pm
|
||||
lib/DBD/SQLite/VirtualTable/PerlData.pm]],
|
||||
["install_method" => qw[lib/DBD/SQLite.pm]],
|
||||
- ['"use strict"' => qw[inc/Test/NoWarnings.pm
|
||||
- inc/Test/NoWarnings/Warning.pm
|
||||
- lib/DBD/SQLite.pm
|
||||
+ ['"use strict"' => qw[lib/DBD/SQLite.pm
|
||||
lib/DBD/SQLite/Constants.pm
|
||||
lib/DBD/SQLite/VirtualTable.pm
|
||||
lib/DBD/SQLite/VirtualTable/FileContent.pm
|
||||
@@ -42,8 +40,7 @@ my @tests = (
|
||||
# literally.
|
||||
if (grep /ENABLE_FTS3_PARENTHESIS/, DBD::SQLite::compile_options()) {
|
||||
push @tests, (
|
||||
- ['"use strict" AND "use warnings"' => qw[inc/Test/NoWarnings.pm
|
||||
- lib/DBD/SQLite/Constants.pm
|
||||
+ ['"use strict" AND "use warnings"' => qw[lib/DBD/SQLite/Constants.pm
|
||||
lib/DBD/SQLite/VirtualTable.pm
|
||||
lib/DBD/SQLite/VirtualTable/FileContent.pm
|
||||
lib/DBD/SQLite/VirtualTable/PerlData.pm
|
||||
--
|
||||
2.14.3
|
||||
|
||||
@ -2,24 +2,25 @@
|
||||
%bcond_without perl_DBD_SQLite_enables_optional_test
|
||||
|
||||
Name: perl-DBD-SQLite
|
||||
Version: 1.58
|
||||
Release: 2%{?dist}
|
||||
Version: 1.74
|
||||
Release: 6%{?dist}
|
||||
Summary: SQLite DBI Driver
|
||||
# lib/DBD/SQLite.pm: GPL+ or Artistic
|
||||
# LICENSE: GPL+ or Artistic
|
||||
# lib/DBD/SQLite.pm: GPL-1.0-or-later OR Artistic-1.0-Perl
|
||||
# LICENSE: GPL-1.0-or-later OR Artistic-1.0-Perl
|
||||
## unbundled
|
||||
# inc/Test/NoWarnings.pm: LGPLv2+
|
||||
# inc/Test/FailWarnings.pm: Apache-2.0
|
||||
# sqlite3.c: Public Domain (copied from sqlite)
|
||||
# sqlite3.h: Public Domain (copied from sqlite)
|
||||
# sqlite3ext.h: Public Domain (copied from sqlite)
|
||||
License: (GPL+ or Artistic) and Public Domain
|
||||
URL: http://search.cpan.org/dist/DBD-SQLite/
|
||||
Source0: http://search.cpan.org/CPAN/authors/id/I/IS/ISHIGAKI/DBD-SQLite-%{version}.tar.gz
|
||||
License: ( GPL-1.0-or-later OR Artistic-1.0-Perl ) AND LicenseRef-Fedora-Public-Domain
|
||||
URL: https://metacpan.org/release/DBD-SQLite
|
||||
Source0: https://cpan.metacpan.org/authors/id/I/IS/ISHIGAKI/DBD-SQLite-%{version}.tar.gz
|
||||
# Use system sqlite if it is available
|
||||
Patch0: perl-DBD-SQLite-bz543982.patch
|
||||
# Remove notes about bundled sqlite C source from man page and README
|
||||
Patch1: DBD-SQLite-1.50-Remove-bundled-source-extentions.patch
|
||||
# Adapt tests to unbundled Test::NoWarnings
|
||||
Patch2: DBD-SQLite-1.58-Unbundle-Test-NoWarnings.patch
|
||||
Patch1: DBD-SQLite-1.62-Remove-bundled-source-extentions.patch
|
||||
# Adapt tests to unbundled Test::FailWarnings
|
||||
Patch2: DBD-SQLite-1.64-Unbundle-Test-FailWarnings.patch
|
||||
# if sqlite >= 3.6.0 then
|
||||
# perl-DBD-SQLite uses the external library
|
||||
# else
|
||||
@ -37,72 +38,113 @@ BuildRequires: perl(:VERSION) >= 5.6
|
||||
BuildRequires: perl(base)
|
||||
BuildRequires: perl(Config)
|
||||
BuildRequires: perl(constant)
|
||||
# Prevent bug #443495
|
||||
# Prevent from bug #443495
|
||||
BuildRequires: perl(DBI) >= 1.607
|
||||
BuildRequires: perl(DBI::DBD)
|
||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
||||
BuildRequires: perl(File::Spec) >= 0.82
|
||||
BuildRequires: perl(strict)
|
||||
# Run-time:
|
||||
BuildRequires: perl(DynaLoader)
|
||||
# File::Basename not used
|
||||
BuildRequires: perl(locale)
|
||||
BuildRequires: perl(Scalar::Util)
|
||||
BuildRequires: perl(Tie::Hash)
|
||||
BuildRequires: perl(warnings)
|
||||
BuildRequires: sed
|
||||
BuildRequires: perl(XSLoader)
|
||||
# Tests only
|
||||
BuildRequires: perl(bytes)
|
||||
BuildRequires: perl(Carp)
|
||||
BuildRequires: perl(Data::Dumper)
|
||||
BuildRequires: perl(Digest::MD5)
|
||||
BuildRequires: perl(Encode)
|
||||
BuildRequires: perl(Exporter)
|
||||
BuildRequires: perl(File::Spec::Functions)
|
||||
BuildRequires: perl(File::Temp)
|
||||
BuildRequires: perl(FindBin)
|
||||
BuildRequires: perl(if)
|
||||
BuildRequires: perl(lib)
|
||||
# POSIX not used
|
||||
BuildRequires: perl(Test::More)
|
||||
BuildRequires: perl(Test::NoWarnings) >= 0.081
|
||||
# Test::FailWarnings not used
|
||||
BuildRequires: perl(Time::HiRes)
|
||||
# Win32 not used
|
||||
%if %{with perl_DBD_SQLite_enables_optional_test}
|
||||
# Optional tests
|
||||
BuildRequires: perl(Unicode::UCD)
|
||||
%endif
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
|
||||
%{?perl_default_filter}
|
||||
|
||||
%description
|
||||
SQLite is a public domain RDBMS database engine that you can find at
|
||||
http://www.hwaci.com/sw/sqlite/.
|
||||
# Filter modules bundled for tests
|
||||
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_libexecdir}
|
||||
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(SQLiteTest\\)
|
||||
|
||||
This module provides a SQLite RDBMS module that uses the system SQLite
|
||||
libraries.
|
||||
%description
|
||||
SQLite is a public domain, file-based, relational database engine that you can
|
||||
find at <https://www.sqlite.org/>. This package provides a Perl DBI driver for
|
||||
SQLite.
|
||||
|
||||
%package tests
|
||||
Summary: Tests for %{name}
|
||||
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||
Requires: perl-Test-Harness
|
||||
|
||||
%description tests
|
||||
Tests from %{name}. Execute them
|
||||
with "%{_libexecdir}/%{name}/test".
|
||||
|
||||
%prep
|
||||
%setup -q -n DBD-SQLite-%{version}
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
%patch -P0 -p1
|
||||
%patch -P1 -p1
|
||||
%patch -P2 -p1
|
||||
# Remove bundled sqlite libraries (BZ#1059154)
|
||||
# System libraries will be used
|
||||
rm sqlite*
|
||||
sed -i -e '/^sqlite/ d' MANIFEST
|
||||
perl -i -ne 'print $_ unless m{^sqlite}' MANIFEST
|
||||
# Remove bundled modules
|
||||
rm -rf inc
|
||||
sed -i -e '/^inc\// d' MANIFEST
|
||||
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
|
||||
|
||||
# Help generators to recognize Perl scripts
|
||||
for F in `find t -name *.t`; do
|
||||
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
|
||||
chmod +x "$F"
|
||||
done
|
||||
|
||||
%build
|
||||
CFLAGS="%{optflags}" perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
||||
make %{?_smp_mflags} OPTIMIZE="%{optflags}"
|
||||
CFLAGS="%{optflags}" perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
||||
%{make_build} OPTIMIZE="%{optflags}"
|
||||
|
||||
%install
|
||||
make pure_install DESTDIR=%{buildroot}
|
||||
%{make_install}
|
||||
find %{buildroot} -type f -name '*.bs' -size 0 -delete
|
||||
%{_fixperms} %{buildroot}/*
|
||||
|
||||
# Install tests
|
||||
mkdir -p %{buildroot}%{_libexecdir}/%{name}
|
||||
cp -a t %{buildroot}%{_libexecdir}/%{name}
|
||||
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
|
||||
#!/bin/bash
|
||||
set -e
|
||||
# Some tests write into temporary files/directories. The easiest solution
|
||||
# is to copy the tests into a writable directory and execute them from there.
|
||||
DIR=$(mktemp -d)
|
||||
pushd "$DIR"
|
||||
cp -a %{_libexecdir}/%{name}/* ./
|
||||
prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
|
||||
popd
|
||||
rm -rf "$DIR"
|
||||
EOF
|
||||
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
|
||||
|
||||
%check
|
||||
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
|
||||
make test
|
||||
|
||||
%files
|
||||
@ -112,9 +154,117 @@ make test
|
||||
%{perl_vendorarch}/DBD/
|
||||
%{_mandir}/man3/*.3pm*
|
||||
|
||||
%files tests
|
||||
%{_libexecdir}/%{name}
|
||||
|
||||
%changelog
|
||||
* Thu Mar 28 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.58-2
|
||||
- Add missing LICENSE file (bug #1691279)
|
||||
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1.74-6
|
||||
- Bump release for October 2024 mass rebuild:
|
||||
Resolves: RHEL-64018
|
||||
|
||||
* Thu Aug 08 2024 Troy Dawson <tdawson@redhat.com> - 1.74-5
|
||||
- Bump release for Aug 2024 java mass rebuild
|
||||
|
||||
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.74-4
|
||||
- Bump release for June 2024 mass rebuild
|
||||
|
||||
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.74-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.74-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Wed Sep 20 2023 Jitka Plesnikova <jplesnik@redhat.com> - 1.74-1
|
||||
- 1.74 bump (rhbz#2239708)
|
||||
|
||||
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.72-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Tue Jul 11 2023 Jitka Plesnikova <jplesnik@redhat.com> - 1.72-3
|
||||
- Perl 5.38 rebuild
|
||||
|
||||
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.72-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Fri Nov 04 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1.72-1
|
||||
- 1.72 bump
|
||||
- Package tests
|
||||
|
||||
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.70-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Tue May 31 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1.70-4
|
||||
- Perl 5.36 rebuild
|
||||
|
||||
* Fri Mar 18 2022 Petr Pisar <ppisar@redhat.com> - 1.70-3
|
||||
- Adapt to SQLite-3.38.0 (bug #2065567)
|
||||
|
||||
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.70-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Mon Aug 02 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1.70-1
|
||||
- 1.70 bump
|
||||
|
||||
* Thu Jul 29 2021 Adam Williamson <awilliam@redhat.com> - 1.68-2
|
||||
- (backport) disable sqlite_unicode deprecation warning as it's widely used
|
||||
|
||||
* Thu Jul 22 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1.68-1
|
||||
- 1.68 bump
|
||||
|
||||
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1.66-4
|
||||
- Perl 5.34 rebuild
|
||||
|
||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.66-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Tue Sep 08 2020 Petr Pisar <ppisar@redhat.com> - 1.66-2
|
||||
- Update DBD-SQLite-1.60-Unbundle-Test-NoWarnings.patch
|
||||
- Do not build-require unused Test::FailWarnings
|
||||
- Update the description
|
||||
|
||||
* Mon Aug 31 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1.66-1
|
||||
- 1.66 bump
|
||||
|
||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.64-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1.64-5
|
||||
- Perl 5.32 rebuild
|
||||
|
||||
* Tue Feb 04 2020 Tom Stellard <tstellar@redhat.com> - 1.64-4
|
||||
- Spec file cleanups: Use make_build and make_install macros
|
||||
- https://fedoraproject.org/wiki/Perl/Tips#ExtUtils::MakeMaker
|
||||
- https://docs.fedoraproject.org/en-US/packaging-guidelines/#_parallel_make
|
||||
|
||||
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.64-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Thu Dec 12 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.64-2
|
||||
- Initialize filename variable in sqlite_db_filename()
|
||||
|
||||
* Tue Aug 13 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.64-1
|
||||
- 1.64 bump
|
||||
|
||||
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.62-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.62-3
|
||||
- Perl 5.30 rebuild
|
||||
|
||||
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.62-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Wed Jan 02 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.62-1
|
||||
- 1.62 bump
|
||||
|
||||
* Mon Dec 03 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.60-1
|
||||
- 1.60 bump
|
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.58-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.58-2
|
||||
- Perl 5.28 rebuild
|
||||
|
||||
* Thu Mar 29 2018 Petr Pisar <ppisar@redhat.com> - 1.58-1
|
||||
- 1.58 bump
|
||||
Loading…
Reference in New Issue
Block a user