# Got the intial spec from Fedora and modified it
Summary: SQLite DBI Driver
Name: perl-DBD-SQLite
Version: 1.50
Release: 6%{?dist}
Group: Development/Libraries
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
%define sha1 DBD-SQLite=49463e8cf40deb91db8ce36cd8a5d8ccb9cb28c7
Vendor: VMware, Inc.
Distribution: Photon
Patch0: enable_sqlite_location.patch
BuildRequires: sqlite-autoconf >= 3.22.0-3
BuildRequires: perl
BuildRequires: perl-DBI
Requires: perl-DBI
Requires: perl
Requires: sqlite-autoconf >= 3.22.0-3
%description
SQLite is a public domain RDBMS database engine that you can find at
http://www.hwaci.com/sw/sqlite/.
This module provides a SQLite RDBMS module that uses the system SQLite
libraries.
%prep
%setup -q -n DBD-SQLite-%{version}
%patch0 -p1
%build
CFLAGS="%{optflags}" perl Makefile.PL SQLITE_LOCATION=/usr INSTALLDIRS=vendor
make %{?_smp_mflags} OPTIMIZE="%{optflags}"
%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f \( -name .packlist -o \
-name '*.bs' -size 0 \) -exec rm -f {} ';'
%{_fixperms} %{buildroot}/*
%check
make test
%files
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/DBD/
%{_mandir}/man3/*
%changelog
* Wed Jun 06 2018 Xiaolin Li <xiaolinl@vmware.com> 1.50-6
- Bump release after upgraded perl to 5.24.1
* Thu May 31 2018 Xiaolin Li <xiaolinl@vmware.com> 1.50-5
- Rebuild perl-DBD-SQLite after changed cflags in sqlite-autoconf.spec.
* Thu May 24 2018 Xiaolin Li <xiaolinl@vmware.com> 1.50-4
- Build perl-DBD-SQLite with system sqlite.
* Tue Feb 20 2018 Xiaolin Li <xiaolinl@vmware.com> 1.50-3
- Build perl-DBD-SQLite with sqlite-autoconf-3.22.0.
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.50-2
- GA - Bump release of all rpms
* Tue Feb 23 2016 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 1.50-1
- Upgraded to version 1.50
* Thu Jan 21 2016 Anish Swaminathan <anishs@vmware.com> 1.48-1
- Upgrade version
* Fri Apr 3 2015 Divya Thaluru <dthaluru@vmware.com> 1.46-1
- Initial version.