|
|
|
@ -2,17 +2,17 @@
|
|
|
|
|
%bcond_without perl_DBD_SQLite_enables_optional_test
|
|
|
|
|
|
|
|
|
|
Name: perl-DBD-SQLite
|
|
|
|
|
Version: 1.72
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Version: 1.66
|
|
|
|
|
Release: 5%{?dist}
|
|
|
|
|
Summary: SQLite DBI Driver
|
|
|
|
|
# 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
|
|
|
|
|
# lib/DBD/SQLite.pm: GPL+ or Artistic
|
|
|
|
|
# LICENSE: GPL+ or Artistic
|
|
|
|
|
## unbundled
|
|
|
|
|
# inc/Test/FailWarnings.pm: Apache-2.0
|
|
|
|
|
# inc/Test/FailWarnings.pm: ASL 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-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
|
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/I/IS/ISHIGAKI/DBD-SQLite-%{version}.tar.gz
|
|
|
|
|
# Use system sqlite if it is available
|
|
|
|
@ -45,12 +45,12 @@ 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: perl(XSLoader)
|
|
|
|
|
# Tests only
|
|
|
|
|
BuildRequires: perl(bytes)
|
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
@ -66,33 +66,20 @@ BuildRequires: perl(lib)
|
|
|
|
|
# POSIX not used
|
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
|
# 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}
|
|
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
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
|
|
|
|
@ -111,12 +98,6 @@ 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 NO_PERLLOCAL=1
|
|
|
|
|
%{make_build} OPTIMIZE="%{optflags}"
|
|
|
|
@ -126,25 +107,7 @@ CFLAGS="%{optflags}" perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLO
|
|
|
|
|
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
|
|
|
|
@ -154,40 +117,16 @@ make test
|
|
|
|
|
%{perl_vendorarch}/DBD/
|
|
|
|
|
%{_mandir}/man3/*.3pm*
|
|
|
|
|
|
|
|
|
|
%files tests
|
|
|
|
|
%{_libexecdir}/%{name}
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* 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
|
|
|
|
|
* Wed Mar 15 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 1.66-5
|
|
|
|
|
- Rebuilt for MSVSphere 9.1.
|
|
|
|
|
|
|
|
|
|
* Thu Jul 22 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1.68-1
|
|
|
|
|
- 1.68 bump
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.66-5
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1.66-4
|
|
|
|
|
- Perl 5.34 rebuild
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.66-4
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.66-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|