c1bcd7
# Run optional test
c1bcd7
%bcond_without perl_DBD_SQLite_enables_optional_test
c1bcd7
c1bcd7
Name:           perl-DBD-SQLite
c1bcd7
Version:        1.58
c1bcd7
Release:        1%{?dist}
c1bcd7
Summary:        SQLite DBI Driver
c1bcd7
# lib/DBD/SQLite.pm:        GPL+ or Artistic
c1bcd7
# LICENSE:                  GPL+ or Artistic
c1bcd7
## unbundled
c1bcd7
# inc/Test/NoWarnings.pm:   LGPLv2+
c1bcd7
# sqlite3.c:                Public Domain (copied from sqlite)
c1bcd7
# sqlite3.h:                Public Domain (copied from sqlite)
c1bcd7
# sqlite3ext.h:             Public Domain (copied from sqlite)
c1bcd7
License:        (GPL+ or Artistic) and Public Domain
c1bcd7
URL:            http://search.cpan.org/dist/DBD-SQLite/
c1bcd7
Source0:        http://search.cpan.org/CPAN/authors/id/I/IS/ISHIGAKI/DBD-SQLite-%{version}.tar.gz
c1bcd7
Patch0:         perl-DBD-SQLite-bz543982.patch
c1bcd7
# Remove notes about bundled sqlite C source from man page and README
c1bcd7
Patch1:         DBD-SQLite-1.50-Remove-bundled-source-extentions.patch
c1bcd7
# Adapt tests to unbundled Test::NoWarnings
c1bcd7
Patch2:         DBD-SQLite-1.58-Unbundle-Test-NoWarnings.patch
c1bcd7
# if sqlite >= 3.6.0 then
c1bcd7
#   perl-DBD-SQLite uses the external library
c1bcd7
# else
c1bcd7
#   perl-DBD-SQLite is self-contained (uses the sqlite local copy)
c1bcd7
# But we always unbundle sqlite.
c1bcd7
BuildRequires:  sqlite-devel
c1bcd7
BuildRequires:  coreutils
c1bcd7
BuildRequires:  findutils
c1bcd7
BuildRequires:  gcc
c1bcd7
BuildRequires:  make
c1bcd7
BuildRequires:  perl-devel
c1bcd7
BuildRequires:  perl-generators
c1bcd7
BuildRequires:  perl-interpreter
c1bcd7
BuildRequires:  perl(:VERSION) >= 5.6
c1bcd7
BuildRequires:  perl(base)
c1bcd7
BuildRequires:  perl(Config)
c1bcd7
BuildRequires:  perl(constant)
c1bcd7
# Prevent bug #443495
c1bcd7
BuildRequires:  perl(DBI) >= 1.607
c1bcd7
BuildRequires:  perl(DBI::DBD)
c1bcd7
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
c1bcd7
BuildRequires:  perl(File::Spec) >= 0.82
c1bcd7
BuildRequires:  perl(strict)
c1bcd7
# Run-time:
c1bcd7
BuildRequires:  perl(DynaLoader)
c1bcd7
# File::Basename not used
c1bcd7
BuildRequires:  perl(locale)
c1bcd7
BuildRequires:  perl(Scalar::Util)
c1bcd7
BuildRequires:  perl(Tie::Hash)
c1bcd7
BuildRequires:  perl(warnings)
c1bcd7
BuildRequires:  sed
c1bcd7
# Tests only
c1bcd7
BuildRequires:  perl(bytes)
c1bcd7
BuildRequires:  perl(Carp)
c1bcd7
BuildRequires:  perl(Data::Dumper)
c1bcd7
BuildRequires:  perl(Encode)
c1bcd7
BuildRequires:  perl(Exporter)
c1bcd7
BuildRequires:  perl(File::Spec::Functions)
c1bcd7
BuildRequires:  perl(File::Temp)
c1bcd7
BuildRequires:  perl(FindBin)
c1bcd7
BuildRequires:  perl(lib)
c1bcd7
# POSIX not used
c1bcd7
BuildRequires:  perl(Test::More)
c1bcd7
BuildRequires:  perl(Test::NoWarnings) >= 0.081
c1bcd7
# Win32 not used
c1bcd7
%if %{with perl_DBD_SQLite_enables_optional_test}
c1bcd7
# Optional tests
c1bcd7
BuildRequires:  perl(Unicode::UCD)
c1bcd7
%endif
c1bcd7
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
c1bcd7
c1bcd7
%{?perl_default_filter}
c1bcd7
c1bcd7
%description
c1bcd7
SQLite is a public domain RDBMS database engine that you can find at
c1bcd7
http://www.hwaci.com/sw/sqlite/.
c1bcd7
c1bcd7
This module provides a SQLite RDBMS module that uses the system SQLite 
c1bcd7
libraries.
c1bcd7
c1bcd7
%prep
c1bcd7
%setup -q -n DBD-SQLite-%{version}
c1bcd7
%patch0 -p1
c1bcd7
%patch1 -p1
c1bcd7
%patch2 -p1
c1bcd7
# Remove bundled sqlite libraries (BZ#1059154)
c1bcd7
# System libraries will be used
c1bcd7
rm sqlite*
c1bcd7
sed -i -e '/^sqlite/ d' MANIFEST
c1bcd7
# Remove bundled modules
c1bcd7
rm -rf inc
c1bcd7
sed -i -e '/^inc\// d' MANIFEST
c1bcd7
c1bcd7
%build
c1bcd7
CFLAGS="%{optflags}" perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
c1bcd7
make %{?_smp_mflags} OPTIMIZE="%{optflags}"
c1bcd7
c1bcd7
%install
c1bcd7
make pure_install DESTDIR=%{buildroot}
c1bcd7
find %{buildroot} -type f  -name '*.bs' -size 0 -delete
c1bcd7
%{_fixperms} %{buildroot}/*
c1bcd7
c1bcd7
%check
c1bcd7
make test
c1bcd7
c1bcd7
%files
c1bcd7
%doc Changes README
c1bcd7
%{perl_vendorarch}/auto/*
c1bcd7
%{perl_vendorarch}/DBD/
c1bcd7
%{_mandir}/man3/*.3pm*
c1bcd7
c1bcd7
%changelog
c1bcd7
* Thu Mar 29 2018 Petr Pisar <ppisar@redhat.com> - 1.58-1
c1bcd7
- 1.58 bump
c1bcd7
c1bcd7
* Thu Mar  1 2018 Florian Weimer <fweimer@redhat.com> - 1.56-2
c1bcd7
- Rebuild with new redhat-rpm-config/perl build flags
c1bcd7
c1bcd7
* Thu Mar 01 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.56-1
c1bcd7
- 1.56 bump
c1bcd7
c1bcd7
* Mon Feb 19 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.54-7
c1bcd7
- Add build-require gcc
c1bcd7
c1bcd7
* Thu Feb 08 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.54-6
c1bcd7
- Adjust to sqlite-3.22.0 (bug #1543286)
c1bcd7
- Add new index constraint ops introduced in SQLite 3.21.0 to PerlData
c1bcd7
c1bcd7
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.54-5
c1bcd7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
c1bcd7
c1bcd7
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.54-4
c1bcd7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
c1bcd7
c1bcd7
* Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.54-3
c1bcd7
- Perl 5.26 rebuild
c1bcd7
c1bcd7
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.54-2
c1bcd7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
c1bcd7
c1bcd7
* Mon Jan 02 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.54-1
c1bcd7
- 1.54 bump
c1bcd7
c1bcd7
* Wed Nov 16 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.52-1
c1bcd7
- 1.52 bump
c1bcd7
c1bcd7
* Sun Jul 24 2016 Petr Pisar <ppisar@redhat.com> - 1.50-4
c1bcd7
- Enable perl FTS3 tokenizer with sqlite older than 3.11.0 (CPAN RT#112474)
c1bcd7
c1bcd7
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.50-3
c1bcd7
- Perl 5.24 rebuild
c1bcd7
c1bcd7
* Thu Feb 18 2016 Petr Pisar <ppisar@redhat.com> - 1.50-2
c1bcd7
- Adjust to sqlite-3.11.0 (bug #1309675)
c1bcd7
- Rebase Remove-bundled-source-extentions.patch to prevent from packing backup
c1bcd7
  files
c1bcd7
c1bcd7
* Thu Feb 11 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.50-1
c1bcd7
- 1.50 bump
c1bcd7
c1bcd7
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.48-4
c1bcd7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
c1bcd7
c1bcd7
* Fri Jan 15 2016 Petr Pisar <ppisar@redhat.com> - 1.48-3
c1bcd7
- Adapt to sqlite-3.10.0 by adding DBD::SQLite::strlike() (bug #1298628)
c1bcd7
c1bcd7
* Fri Jun 19 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.48-2
c1bcd7
- Updated patch
c1bcd7
c1bcd7
* Thu Jun 18 2015 Tom Callaway <spot@fedoraproject.org> - 1.48-1
c1bcd7
- update to 1.48
c1bcd7
c1bcd7
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.46-4
c1bcd7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c1bcd7
c1bcd7
* Fri Jun 05 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.46-3
c1bcd7
- Perl 5.22 rebuild
c1bcd7
c1bcd7
* Fri Mar 20 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.46-2
c1bcd7
- Correct license from (GPL+ or Artistic) to ((GPL+ or Artistic) and
c1bcd7
  Public Domain)
c1bcd7
c1bcd7
* Wed Dec 10 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.46-1
c1bcd7
- 1.46 bump
c1bcd7
c1bcd7
* Wed Oct 29 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.44-1
c1bcd7
- 1.44 bump
c1bcd7
c1bcd7
* Thu Aug 28 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.42-5
c1bcd7
- Perl 5.20 rebuild
c1bcd7
c1bcd7
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.42-4
c1bcd7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
c1bcd7
c1bcd7
* Tue Jul 15 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.42-3
c1bcd7
- Removed bundled sqlite library and updated man page (BZ#1059154)
c1bcd7
c1bcd7
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.42-2
c1bcd7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c1bcd7
c1bcd7
* Thu Mar 20 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.42-1
c1bcd7
- 1.42 bump
c1bcd7
c1bcd7
* Wed Jan 29 2014 Petr Pisar <ppisar@redhat.com> - 1.40-3
c1bcd7
- Fix tests with sqlite >= 3.8.2 (bug #1058709)
c1bcd7
c1bcd7
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.40-2
c1bcd7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
c1bcd7
c1bcd7
* Wed Jul 31 2013 Jitka Plesnikova <jplesnik@redhat.com> - 1.40-1
c1bcd7
- 1.40 bump
c1bcd7
c1bcd7
* Wed Jul 24 2013 Petr Pisar <ppisar@redhat.com> - 1.39-2
c1bcd7
- Perl 5.18 rebuild
c1bcd7
c1bcd7
* Mon Jun 10 2013 Jitka Plesnikova <jplesnik@redhat.com> - 1.39-1
c1bcd7
- 1.39 bump
c1bcd7
- Use DESTDIR rather than PERL_INSTALL_ROOT
c1bcd7
- Update source URL
c1bcd7
c1bcd7
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.37-4
c1bcd7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
c1bcd7
c1bcd7
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.37-3
c1bcd7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
c1bcd7
c1bcd7
* Sat Jun 16 2012 Petr Pisar <ppisar@redhat.com> - 1.37-2
c1bcd7
- Perl 5.16 rebuild
c1bcd7
c1bcd7
* Tue Jun 12 2012 Petr Šabata <contyk@redhat.com> - 1.37-1
c1bcd7
- 1.37 bump (sqlite3.7.11 and various bugfixes)
c1bcd7
- Drop command macros
c1bcd7
- Fix dependencies
c1bcd7
c1bcd7
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.35-2
c1bcd7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
c1bcd7
c1bcd7
* Tue Nov 29 2011 Petr Šabata <contyk@redhat.com> - 1.35-1
c1bcd7
- 1.35 bump
c1bcd7
c1bcd7
* Tue Jun 21 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.33-2
c1bcd7
- Perl mass rebuild
c1bcd7
c1bcd7
* Mon May 30 2011 Petr Sabata <contyk@redhat.com> - 1.33-1
c1bcd7
- 1.33 bump
c1bcd7
- BuildRoot and defattr cleanup
c1bcd7
- Dropping the FTS3 tests patch; included upstream
c1bcd7
c1bcd7
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.31-3
c1bcd7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
c1bcd7
c1bcd7
* Wed Sep 29 2010 jkeating - 1.31-2
c1bcd7
- Rebuilt for gcc bug 634757
c1bcd7
c1bcd7
* Wed Sep 15 2010 Petr Sabata <psabata@redhat.com> - 1.31-1
c1bcd7
- New release, v1.31
c1bcd7
- Significant FTS3 changes -- might break compatibility with pre-1.30 applications using FTS3
c1bcd7
- New FTS3 tests patch by Paul Howarth
c1bcd7
c1bcd7
* Tue Aug 24 2010 Adam Tkac <atkac redhat com> - 1.29-4
c1bcd7
- fix testsuite to run with the latest sqlite (bugs.debian.org/591111)
c1bcd7
c1bcd7
* Tue Aug 24 2010 Adam Tkac <atkac redhat com> - 1.29-3
c1bcd7
- rebuild
c1bcd7
c1bcd7
* Mon Jun 28 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 1.29-2
c1bcd7
- fix description/summary
c1bcd7
c1bcd7
* Thu Jun 10 2010 Petr Sabata <psabata@redhat.com> - 1.29-1
c1bcd7
- Update to the latest release
c1bcd7
c1bcd7
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.27-4
c1bcd7
- Mass rebuild with perl-5.12.0
c1bcd7
c1bcd7
* Mon Jan 11 2010 Marcela Mašláňová <mmaslano@redhat.com> - 1.27-3
c1bcd7
- 543982 change Makefile.PL to compile with system sqlite
c1bcd7
c1bcd7
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 1.27-2
c1bcd7
- rebuild against perl 5.10.1
c1bcd7
c1bcd7
* Wed Nov 25 2009 Stepan Kasal <skasal@redhat.com> 1.27-1
c1bcd7
- new upstream version
c1bcd7
c1bcd7
* Fri Sep 11 2009 Chris Weyl <cweyl@alumni.drew.edu> - 1.25-4
c1bcd7
- Filtering errant private provides
c1bcd7
c1bcd7
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.25-3
c1bcd7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
c1bcd7
c1bcd7
* Wed Jun 10 2009 Stepan Kasal <skasal@redhat.com> 1.25-2
c1bcd7
- rebuild against DBI 1.609
c1bcd7
c1bcd7
* Fri May 29 2009 Chris Weyl <cweyl@alumni.drew.edu> 1.25-1
c1bcd7
- 1.25 needed for DBIx::Class 0.08103
c1bcd7
- auto-update to 1.25 (by cpan-spec-update 0.01)
c1bcd7
- added a new br on perl(File::Spec) (version 0.82)
c1bcd7
- altered br on perl(Test::More) (0 => 0.42)
c1bcd7
- added a new br on perl(DBI) (version 1.57)
c1bcd7
c1bcd7
* Mon Apr 20 2009 Marcela Maslanova <mmaslano@redhat.com> 1.23-1
c1bcd7
- update to the latest version
c1bcd7
c1bcd7
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.14-9
c1bcd7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
c1bcd7
c1bcd7
* Mon Jun  2 2008 Marcela Maslanova <mmaslano@redhat.com> 1.14-8
c1bcd7
c1bcd7
* Wed Mar 19 2008 Chris Weyl <cweyl@alumni.drew.edu> 1.14-7
c1bcd7
- reenable tests
c1bcd7
c1bcd7
* Tue Mar 18 2008 Chris Weyl <cweyl@alumni.drew.edu> 1.14-6
c1bcd7
- apply sanity patches derived from RT#32100
c1bcd7
c1bcd7
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.14-5.1
c1bcd7
- Rebuild for perl 5.10 (again)
c1bcd7
c1bcd7
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.14-4.1
c1bcd7
- Autorebuild for GCC 4.3
c1bcd7
c1bcd7
* Sun Jan 20 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.14-3.1
c1bcd7
- tests disabled, due to x86_64 failures
c1bcd7
c1bcd7
* Tue Jan 15 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.14-3
c1bcd7
- rebuild for new perl
c1bcd7
c1bcd7
* Wed Dec 19 2007 Steven Pritchard <steve@kspei.com> 1.14-2
c1bcd7
- Fix find option order.
c1bcd7
- Use fixperms macro instead of our own chmod incantation.
c1bcd7
c1bcd7
* Mon Dec 10 2007 Robin Norwood <rnorwood@redhat.com> - 1.14-1
c1bcd7
- Update to latest upstream version: 1.14
c1bcd7
- Remove patch - no longer needed.
c1bcd7
c1bcd7
* Mon Oct 15 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 1.12-2.1
c1bcd7
- correct license tag
c1bcd7
- add BR: perl(ExtUtils::MakeMaker)
c1bcd7
c1bcd7
* Thu Sep 14 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.12-2
c1bcd7
- Rebuild for FC6.
c1bcd7
c1bcd7
* Tue Apr 11 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.12-1
c1bcd7
- Update to 1.12.
c1bcd7
c1bcd7
* Wed Apr  5 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.11-4
c1bcd7
- Patch to build with system sqlite 3.3.x (#183530).
c1bcd7
- Patch to avoid type information segv (#187873).
c1bcd7
c1bcd7
* Thu Mar  9 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.11-3
c1bcd7
- DBD::SQLite fails to build with the current FC-5 sqlite version (3.3.3);
c1bcd7
  see bugzilla entry #183530.
c1bcd7
  Forcing package rebuild with the included version of sqlite (3.2.7).
c1bcd7
c1bcd7
* Sat Feb 18 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.11-2
c1bcd7
- Rebuild for FC5 (perl 5.8.8).
c1bcd7
c1bcd7
* Fri Dec  2 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.11-1
c1bcd7
- Update to 1.11.
c1bcd7
c1bcd7
* Fri Dec  2 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.10-1
c1bcd7
- Update to 1.10.
c1bcd7
c1bcd7
* Fri Jul 29 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.09-2
c1bcd7
- Build requirement added: sqlite-devel.
c1bcd7
- Doc file added: Changes.
c1bcd7
c1bcd7
* Fri Jul 29 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.09-1
c1bcd7
- Update to 1.09.
c1bcd7
- This new version can use an external SQLite library (>= 3.1.3).
c1bcd7
c1bcd7
* Sun Jun 12 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.08-2
c1bcd7
- temporary maintainership.
c1bcd7
c1bcd7
* Sat Jun 11 2005 Michael A. Peters <mpeters@mac.com> 1.08-1.1
c1bcd7
- minor changes for initial cvs checkin (removed tabs, better url in
c1bcd7
- url tag and description tag)
c1bcd7
c1bcd7
* Tue Apr 12 2005 Michael A. Peters <mpeters@mac.com> 1.08-1
c1bcd7
- created initial spec file from Fedora spectemplate-perl.spec