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