From b4b16b7d4f1b492e770909909e15991cdbc4ba40 Mon Sep 17 00:00:00 2001 From: Steven Pritchard Date: Mon, 2 Apr 2007 23:09:41 +0000 Subject: [PATCH] BR Inline, Test::Pod, and Test::Pod::Coverage perl modules and rgb (for rgb.txt) for better test coverage. Fix path to rgb.txt in lib/Imager/Color.pm and t/t15color.t. --- perl-Imager.spec | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/perl-Imager.spec b/perl-Imager.spec index 8b206ab..d5e8468 100644 --- a/perl-Imager.spec +++ b/perl-Imager.spec @@ -1,6 +1,6 @@ Name: perl-Imager Version: 0.56 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Perl extension for Generating 24 bit Images License: GPL or Artistic Group: Development/Libraries @@ -10,12 +10,16 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: perl(ExtUtils::Depends) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Parse::RecDescent) +BuildRequires: perl(Inline) +BuildRequires: perl(Test::Pod) >= 1.00 +BuildRequires: perl(Test::Pod::Coverage) >= 1.08 BuildRequires: freetype-devel BuildRequires: libjpeg-devel BuildRequires: libpng-devel BuildRequires: libtiff-devel BuildRequires: libungif-devel BuildRequires: t1lib-devel +BuildRequires: rgb Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description @@ -36,6 +40,10 @@ find . -type f -name '*.pm' \ -exec perl -pi -e '$_=undef if ($.==1 and /^\#\!.*perl/)' {} \; chmod a-x samples/* +# Fix path to rgb.txt. +%{__perl} -pi -e 's,/usr/lib/X11/,/usr/share/X11/,' \ + lib/Imager/Color.pm t/t15color.t + %build %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" make %{?_smp_mflags} @@ -66,6 +74,11 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man3/* %changelog +* Mon Apr 02 2007 Steven Pritchard 0.56-2 +- BR Inline, Test::Pod, and Test::Pod::Coverage perl modules and rgb + (for rgb.txt) for better test coverage. +- Fix path to rgb.txt in lib/Imager/Color.pm and t/t15color.t. + * Mon Apr 02 2007 Steven Pritchard 0.56-1 - Update to 0.56. - BR ExtUtils::MakeMaker.