|
|
@ -2,25 +2,24 @@
|
|
|
|
%bcond_without perl_DBD_SQLite_enables_optional_test
|
|
|
|
%bcond_without perl_DBD_SQLite_enables_optional_test
|
|
|
|
|
|
|
|
|
|
|
|
Name: perl-DBD-SQLite
|
|
|
|
Name: perl-DBD-SQLite
|
|
|
|
Version: 1.72
|
|
|
|
Version: 1.58
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Summary: SQLite DBI Driver
|
|
|
|
Summary: SQLite DBI Driver
|
|
|
|
# lib/DBD/SQLite.pm: GPL-1.0-or-later OR Artistic-1.0-Perl
|
|
|
|
# lib/DBD/SQLite.pm: GPL+ or Artistic
|
|
|
|
# LICENSE: GPL-1.0-or-later OR Artistic-1.0-Perl
|
|
|
|
# LICENSE: GPL+ or Artistic
|
|
|
|
## unbundled
|
|
|
|
## unbundled
|
|
|
|
# inc/Test/FailWarnings.pm: Apache-2.0
|
|
|
|
# inc/Test/NoWarnings.pm: LGPLv2+
|
|
|
|
# sqlite3.c: Public Domain (copied from sqlite)
|
|
|
|
# sqlite3.c: Public Domain (copied from sqlite)
|
|
|
|
# sqlite3.h: Public Domain (copied from sqlite)
|
|
|
|
# sqlite3.h: Public Domain (copied from sqlite)
|
|
|
|
# sqlite3ext.h: Public Domain (copied from sqlite)
|
|
|
|
# sqlite3ext.h: Public Domain (copied from sqlite)
|
|
|
|
License: ( GPL-1.0-or-later OR Artistic-1.0-Perl ) AND LicenseRef-Fedora-Public-Domain
|
|
|
|
License: (GPL+ or Artistic) and Public Domain
|
|
|
|
URL: https://metacpan.org/release/DBD-SQLite
|
|
|
|
URL: http://search.cpan.org/dist/DBD-SQLite/
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/I/IS/ISHIGAKI/DBD-SQLite-%{version}.tar.gz
|
|
|
|
Source0: http://search.cpan.org/CPAN/authors/id/I/IS/ISHIGAKI/DBD-SQLite-%{version}.tar.gz
|
|
|
|
# Use system sqlite if it is available
|
|
|
|
|
|
|
|
Patch0: perl-DBD-SQLite-bz543982.patch
|
|
|
|
Patch0: perl-DBD-SQLite-bz543982.patch
|
|
|
|
# Remove notes about bundled sqlite C source from man page and README
|
|
|
|
# Remove notes about bundled sqlite C source from man page and README
|
|
|
|
Patch1: DBD-SQLite-1.62-Remove-bundled-source-extentions.patch
|
|
|
|
Patch1: DBD-SQLite-1.50-Remove-bundled-source-extentions.patch
|
|
|
|
# Adapt tests to unbundled Test::FailWarnings
|
|
|
|
# Adapt tests to unbundled Test::NoWarnings
|
|
|
|
Patch2: DBD-SQLite-1.64-Unbundle-Test-FailWarnings.patch
|
|
|
|
Patch2: DBD-SQLite-1.58-Unbundle-Test-NoWarnings.patch
|
|
|
|
# if sqlite >= 3.6.0 then
|
|
|
|
# if sqlite >= 3.6.0 then
|
|
|
|
# perl-DBD-SQLite uses the external library
|
|
|
|
# perl-DBD-SQLite uses the external library
|
|
|
|
# else
|
|
|
|
# else
|
|
|
@ -38,60 +37,48 @@ BuildRequires: perl(:VERSION) >= 5.6
|
|
|
|
BuildRequires: perl(base)
|
|
|
|
BuildRequires: perl(base)
|
|
|
|
BuildRequires: perl(Config)
|
|
|
|
BuildRequires: perl(Config)
|
|
|
|
BuildRequires: perl(constant)
|
|
|
|
BuildRequires: perl(constant)
|
|
|
|
# Prevent from bug #443495
|
|
|
|
# Prevent bug #443495
|
|
|
|
BuildRequires: perl(DBI) >= 1.607
|
|
|
|
BuildRequires: perl(DBI) >= 1.607
|
|
|
|
BuildRequires: perl(DBI::DBD)
|
|
|
|
BuildRequires: perl(DBI::DBD)
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
|
|
|
BuildRequires: perl(File::Spec) >= 0.82
|
|
|
|
BuildRequires: perl(File::Spec) >= 0.82
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
# Run-time:
|
|
|
|
# Run-time:
|
|
|
|
|
|
|
|
BuildRequires: perl(DynaLoader)
|
|
|
|
# File::Basename not used
|
|
|
|
# File::Basename not used
|
|
|
|
BuildRequires: perl(locale)
|
|
|
|
BuildRequires: perl(locale)
|
|
|
|
BuildRequires: perl(Scalar::Util)
|
|
|
|
BuildRequires: perl(Scalar::Util)
|
|
|
|
BuildRequires: perl(Tie::Hash)
|
|
|
|
BuildRequires: perl(Tie::Hash)
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
BuildRequires: perl(XSLoader)
|
|
|
|
BuildRequires: sed
|
|
|
|
# Tests only
|
|
|
|
# Tests only
|
|
|
|
BuildRequires: perl(bytes)
|
|
|
|
BuildRequires: perl(bytes)
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
BuildRequires: perl(Data::Dumper)
|
|
|
|
BuildRequires: perl(Data::Dumper)
|
|
|
|
BuildRequires: perl(Digest::MD5)
|
|
|
|
|
|
|
|
BuildRequires: perl(Encode)
|
|
|
|
BuildRequires: perl(Encode)
|
|
|
|
BuildRequires: perl(Exporter)
|
|
|
|
BuildRequires: perl(Exporter)
|
|
|
|
BuildRequires: perl(File::Spec::Functions)
|
|
|
|
BuildRequires: perl(File::Spec::Functions)
|
|
|
|
BuildRequires: perl(File::Temp)
|
|
|
|
BuildRequires: perl(File::Temp)
|
|
|
|
BuildRequires: perl(FindBin)
|
|
|
|
BuildRequires: perl(FindBin)
|
|
|
|
BuildRequires: perl(if)
|
|
|
|
|
|
|
|
BuildRequires: perl(lib)
|
|
|
|
BuildRequires: perl(lib)
|
|
|
|
# POSIX not used
|
|
|
|
# POSIX not used
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
# Test::FailWarnings not used
|
|
|
|
BuildRequires: perl(Test::NoWarnings) >= 0.081
|
|
|
|
BuildRequires: perl(Time::HiRes)
|
|
|
|
|
|
|
|
# Win32 not used
|
|
|
|
# Win32 not used
|
|
|
|
%if %{with perl_DBD_SQLite_enables_optional_test}
|
|
|
|
%if %{with perl_DBD_SQLite_enables_optional_test}
|
|
|
|
# Optional tests
|
|
|
|
# Optional tests
|
|
|
|
BuildRequires: perl(Unicode::UCD)
|
|
|
|
BuildRequires: perl(Unicode::UCD)
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
|
|
|
|
|
|
|
|
%{?perl_default_filter}
|
|
|
|
%{?perl_default_filter}
|
|
|
|
|
|
|
|
|
|
|
|
# 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\\)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
SQLite is a public domain, file-based, relational database engine that you can
|
|
|
|
SQLite is a public domain RDBMS database engine that you can find at
|
|
|
|
find at <https://www.sqlite.org/>. This package provides a Perl DBI driver for
|
|
|
|
http://www.hwaci.com/sw/sqlite/.
|
|
|
|
SQLite.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package tests
|
|
|
|
|
|
|
|
Summary: Tests for %{name}
|
|
|
|
|
|
|
|
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
|
|
|
|
|
Requires: perl-Test-Harness
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description tests
|
|
|
|
This module provides a SQLite RDBMS module that uses the system SQLite
|
|
|
|
Tests from %{name}. Execute them
|
|
|
|
libraries.
|
|
|
|
with "%{_libexecdir}/%{name}/test".
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -n DBD-SQLite-%{version}
|
|
|
|
%setup -q -n DBD-SQLite-%{version}
|
|
|
@ -101,50 +88,21 @@ with "%{_libexecdir}/%{name}/test".
|
|
|
|
# Remove bundled sqlite libraries (BZ#1059154)
|
|
|
|
# Remove bundled sqlite libraries (BZ#1059154)
|
|
|
|
# System libraries will be used
|
|
|
|
# System libraries will be used
|
|
|
|
rm sqlite*
|
|
|
|
rm sqlite*
|
|
|
|
perl -i -ne 'print $_ unless m{^sqlite}' MANIFEST
|
|
|
|
sed -i -e '/^sqlite/ d' MANIFEST
|
|
|
|
# Remove bundled modules
|
|
|
|
# Remove bundled modules
|
|
|
|
rm -rf inc
|
|
|
|
rm -rf inc
|
|
|
|
perl -i -ne 'print $_ unless m{^inc/}' MANIFEST
|
|
|
|
sed -i -e '/^inc\// d' 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
|
|
|
|
%build
|
|
|
|
CFLAGS="%{optflags}" perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
|
|
|
CFLAGS="%{optflags}" perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
|
|
|
%{make_build} OPTIMIZE="%{optflags}"
|
|
|
|
make %{?_smp_mflags} OPTIMIZE="%{optflags}"
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%{make_install}
|
|
|
|
make pure_install DESTDIR=%{buildroot}
|
|
|
|
find %{buildroot} -type f -name '*.bs' -size 0 -delete
|
|
|
|
find %{buildroot} -type f -name '*.bs' -size 0 -delete
|
|
|
|
%{_fixperms} %{buildroot}/*
|
|
|
|
%{_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
|
|
|
|
%check
|
|
|
|
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
|
|
|
|
|
|
|
|
make test
|
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
@ -154,92 +112,9 @@ make test
|
|
|
|
%{perl_vendorarch}/DBD/
|
|
|
|
%{perl_vendorarch}/DBD/
|
|
|
|
%{_mandir}/man3/*.3pm*
|
|
|
|
%{_mandir}/man3/*.3pm*
|
|
|
|
|
|
|
|
|
|
|
|
%files tests
|
|
|
|
|
|
|
|
%{_libexecdir}/%{name}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.72-2
|
|
|
|
* Thu Mar 28 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.58-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
- Add missing LICENSE file (bug #1691243)
|
|
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
* Thu Mar 29 2018 Petr Pisar <ppisar@redhat.com> - 1.58-1
|
|
|
|
- 1.58 bump
|
|
|
|
- 1.58 bump
|