diff --git a/.cvsignore b/.cvsignore index 27a3d72..8c64b35 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -DBD-Pg-2.15.1.tar.gz +DBD-Pg-2.17.1.tar.gz diff --git a/perl-DBD-Pg.spec b/perl-DBD-Pg.spec index 251cc33..76ca341 100644 --- a/perl-DBD-Pg.spec +++ b/perl-DBD-Pg.spec @@ -1,10 +1,13 @@ +# Enable %%check +%define use_test 1 + Name: perl-DBD-Pg -Version: 2.15.1 -Release: 3%{?dist} +Version: 2.17.1 +Release: 1%{?dist} Summary: A PostgreSQL interface for perl Group: Development/Libraries -License: GPL+ or Artistic +License: GPLv2+ or Artistic URL: http://search.cpan.org/dist/DBD-Pg/ Source0: http://search.cpan.org/CPAN/authors/id/T/TU/TURNSTEP/DBD-Pg-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -12,8 +15,12 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) # Prevent bug #443495 BuildRequires: perl(DBI) >= 1.607 -BuildRequires: postgresql-devel >= 7.2 +BuildRequires: postgresql-devel >= 7.4 BuildRequires: perl(ExtUtils::MakeMaker) +%if %{use_test} +BuildRequires: perl(Test::Simple), postgresql-server +%endif + Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) # Missed by the find provides script: @@ -39,12 +46,17 @@ 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/* +%if %{use_test} %check # Full test coverage requires a live PostgreSQL database (see the README file) #export DBI_DSN=dbi:Pg:dbname= #export DBI_USER= #export DBI_PASS= -#make test +# If variables undefined, package test will create it's own database. All +# tests pass then if LC_ALL=C. Otherwise +# appears. +LC_ALL=C make test +%endif %clean rm -rf $RPM_BUILD_ROOT @@ -60,6 +72,11 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Tue Apr 27 2010 Petr Pisar - 2.17.1-1 +- upstream released 2.17.1 +- GPL+ license corrected to GPLv2+ +- enable and run %%check in C locale + * Wed Jan 27 2010 Stepan Kasal - 2.15.1-3 - drop patch that was upstreamed long ago (<=2.8.7) diff --git a/sources b/sources index c59e268..c453e38 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -b1c5488a68fa61cc3694b0cd4e413e25 DBD-Pg-2.15.1.tar.gz +96b24b29d876bbbcc7c194115917a2f0 DBD-Pg-2.17.1.tar.gz