Name: perl-DBD-Pg
Version: 1.43
Release: 2.1
Summary: A PostgresSQL interface for perl
Group: Development/Libraries
License: GPL or Artistic
URL: http://search.cpan.org/dist/DBD-Pg/
Source0: http://www.cpan.org/authors/id/D/DB/DBDPG/DBD-Pg-%{version}.tar.gz
Patch: perl-DBD-1.31-fixver.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: perl >= 1:5.6.1
BuildRequires: perl-DBI >= 1.38, postgresql-devel >= 7.2
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: perl-DBI >= 1.38
Provides: perl(DBD::Pg) = %{version}
%description
An implementation of DBI for PostgreSQL for Perl.
%prep
%setup -q -n DBD-Pg-%{version}
%patch0 -p1
%build
CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS"
%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/*
%check || :
# Full test coverage requires a live PostgreSQL database (see the README file)
#export DBI_DSN=dbi:Pg:dbname=<database>
#export DBI_USER=<username>
#export DBI_PASS=<password>
#make test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{perl_vendorarch}/DBD/
%{perl_vendorarch}/auto/DBD/
%{_mandir}/man3/*.3*
%changelog
* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
- rebuilt for new gcj
* Thu Nov 03 2005 Florian La Roche <laroche@redhat.com>
- make sure correct Provides: are generated for this module
* Tue Jun 28 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.43-1
- Update to 1.43 (corrects #156840).
* Thu May 19 2005 Warren Togami <wtogami@redhat.com> - 1.41-2
- Disable gcc optimization to workaround broken placeholders (#156840)
* Wed Apr 13 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.41-1
- Update to 1.41.
- Updated the requirements versions.
- Specfile cleanup. (#154203)
* Wed Apr 13 2005 Joe Orton <jorton@redhat.com> 1.40-2
- rebuild for new libpq soname
* Thu Mar 31 2005 Warren Togami <wtogami@redhat.com> 1.40-1
- 1.40
* Tue Oct 12 2004 Chip Turner <cturner@redhat.com> 1.32-1
- bugzilla: 127755, update to 1.32
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
- rebuilt
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
- rebuilt
* Fri Feb 13 2004 Chip Turner <cturner@redhat.com> 1.31-2
- rebuild
* Thu Dec 11 2003 Chip Turner <cturner@redhat.com> 1.31-1
- update to 1.31
* Mon Jul 7 2003 Chip Turner <cturner@redhat.com> 1.22-1
- move to upstream 1.22
* Mon Jan 27 2003 Chip Turner <cturner@redhat.com>
- version bump and rebuild
* Mon Jan 13 2003 Chip Turner <cturner@redhat.com>
- update to 1.21
* Sat Dec 14 2002 Chip Turner <cturner@redhat.com>
- don't use internal rpm dep generator
* Wed Nov 20 2002 Chip Turner <cturner@redhat.com>
- rebuild
* Wed Aug 7 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.13-5
- Rebuild
* Tue Jun 25 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.13-4
- Rebuild, to fix #66304
* Wed Jun 5 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.13-3
- Integrate with newer perl
* Thu May 23 2002 Tim Powers <timp@redhat.com>
- automated rebuild
* Tue May 7 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.13-1
- 1.13
* Fri Feb 22 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.01-8
- Rebuild
* Thu Feb 7 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.01-7
- Rebuild
* Thu Jan 31 2002 Tim Powers <timp@redhat.com>
- rebuild to solve more deps
* Tue Jan 29 2002 Bill Nottingham <notting@redhat.com> 1.01-5
- rebuild (dependencies)
* Tue Jan 22 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.01-4
- Rebuild
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
- automated rebuild
* Tue Jan 8 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.01-2
- Rebuild
* Sun Jul 1 2001 Trond Eivind Glomsrød <teg@redhat.com>
- 1.01 bugfix release ("bytea" coredumped with values outside 0...127)
- Add perl-DBI and perl to BuildRequires (they were just in Requires: previously)
* Wed May 30 2001 Trond Eivind Glomsrød <teg@redhat.com>
- 1.00
- change group to Applications/Databases from Applications/CPAN
* Tue May 1 2001 Trond Eivind Glomsrød <teg@redhat.com>
- 0.98, for postgresql-7.1
- add doc files
- cleanups
* Thu Nov 30 2000 Trond Eivind Glomsrød <teg@redhat.com>
- First cut