Resolves: bz#226253. fix issues from package review.

This commit is contained in:
Robin Norwood 2007-11-14 03:50:57 +00:00
parent af25217bc9
commit 1f9b12f60d
4 changed files with 28 additions and 7 deletions

View File

@ -1 +1 @@
DBI-1.58.tar.gz
DBI-1.601.tar.gz

View File

@ -0,0 +1,8 @@
--- DBI-1.601/dbixs_rev.pl Mon Jul 16 07:04:58 2007
+++ DBI-1.601/dbixs_rev.pl Tue Nov 13 21:06:15 2007
@@ -1,4 +1,4 @@
-#!perl -w
+#!/usr/bin/perl -w
use strict;
my $dbixs_rev_file = "dbixs_rev.h";

View File

@ -1,16 +1,18 @@
Name: perl-DBI
Version: 1.58
Release: 2%{?dist}
Version: 1.601
Release: 1%{?dist}
Summary: A database access API for perl
Group: Development/Libraries
License: GPL+ or Artistic
URL: http://dbi.perl.org/
Source0: http://www.cpan.org/authors/id/T/TI/TIMB/DBI-%{version}.tar.gz
Patch0: perl-DBI-1.601-script-interpreter.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: perl, perl(ExtUtils::MakeMaker), perl(Test::Pod)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
BuildRequires: perl(ExtUtils::MakeMaker), perl(Test::Pod)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
DBI is a database access Application Programming Interface (API) for
@ -21,6 +23,8 @@ database interface independent of the actual database being used.
%prep
%setup -q -n DBI-%{version}
%patch0 -p1
chmod 644 ex/*
# Filter unwanted Requires:
@ -33,10 +37,13 @@ EOF
%define __perl_requires %{_builddir}/DBI-%{version}/%{name}-req
chmod +x %{__perl_requires}
chmod 744 dbixs_rev.pl
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
@ -79,6 +86,13 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Fri Oct 26 2007 Robin Norwood <rnorwood@redhat.com> - 1.601-1
- Update to latest CPAN version: 1.601
- Fix some issues from package review:
- patch to change #! line in script
- make script executable
- fix requires and buildrequires
* Mon Aug 27 2007 Robin Norwood <rnorwood@redhat.com> - 1.58-2
- Rebuild
@ -234,6 +248,5 @@ rm -rf $RPM_BUILD_ROOT
- general cleanup
- add descriptive summary and description
* Mon Aug 14 2000 Tim Powers <timp@redhat.com>
- Spec file was autogenerated.

View File

@ -1 +1 @@
132a7a28481824692e48d71b06994e09 DBI-1.58.tar.gz
d80677bd8113ec8cb0438b8703f3c418 DBI-1.601.tar.gz