drop patch upstreamed long ago

This commit is contained in:
Štěpán Kasal 2010-01-27 17:53:51 +00:00
parent 42605ab674
commit 6b99cd7980
2 changed files with 4 additions and 16 deletions

View File

@ -1,13 +0,0 @@
diff -up DBD-Pg-2.8.7/t/lib/App/Info/RDBMS/PostgreSQL.pm.fix DBD-Pg-2.8.7/t/lib/App/Info/RDBMS/PostgreSQL.pm
--- DBD-Pg-2.8.7/t/lib/App/Info/RDBMS/PostgreSQL.pm.fix 2008-07-21 17:15:05.000000000 +0200
+++ DBD-Pg-2.8.7/t/lib/App/Info/RDBMS/PostgreSQL.pm 2008-07-28 09:01:08.000000000 +0200
@@ -274,6 +274,9 @@ my $get_version = sub {
# New versions, such as "7.4", are treated as patch level "0"
@{$self}{qw(version major minor patch)} =
($version, $1, $2, 0);
+ } elsif ($version =~ /(\d+)\.(\d+)/) {
+ @{$self}{qw(version major minor patch)} =
+ ($version, $1, $2, 0);
} else {
$self->error("Failed to parse PostgreSQL version parts from " .
"string '$version'");

View File

@ -1,13 +1,12 @@
Name: perl-DBD-Pg
Version: 2.15.1
Release: 2%{?dist}
Release: 3%{?dist}
Summary: A PostgreSQL interface for perl
Group: Development/Libraries
License: GPL+ 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
Patch0: perl-DBD-1.31-fixver.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# Prevent bug #443495
@ -26,7 +25,6 @@ An implementation of DBI for PostgreSQL for Perl.
%prep
%setup -q -n DBD-Pg-%{version}
%patch0 -p1
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
@ -62,6 +60,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Wed Jan 27 2010 Stepan Kasal <skasal@redhat.com> - 2.15.1-3
- drop patch that was upstreamed long ago (<=2.8.7)
* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 2.15.1-2
- rebuild against perl 5.10.1