From f775fa89712d66f46b0a52566cf20f443755af32 Mon Sep 17 00:00:00 2001 From: Gavin Henry Date: Tue, 20 Sep 2005 08:23:26 +0000 Subject: [PATCH] auto-import perl-Imager-0.45-2 on branch devel from perl-Imager-0.45-2.src.rpm --- .cvsignore | 1 + perl-Imager.spec | 72 ++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 74 insertions(+) create mode 100644 perl-Imager.spec diff --git a/.cvsignore b/.cvsignore index e69de29..b99979c 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Imager-0.45.tar.gz diff --git a/perl-Imager.spec b/perl-Imager.spec new file mode 100644 index 0000000..eaf857a --- /dev/null +++ b/perl-Imager.spec @@ -0,0 +1,72 @@ +Name: perl-Imager +Version: 0.45 +Release: 2%{?dist} +Summary: Imager - Perl extension for Generating 24 bit Images + +Group: Development/Libraries +License: GPL or Artistic +URL: http://search.cpan.org/dist/Imager/ +Source0: http://search.cpan.org/CPAN/authors/id/T/TO/TONYC/Imager-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: perl(ExtUtils::Depends), perl(Parse::RecDescent) +BuildRequires: libungif-devel, libpng-devel, freetype-devel, libtiff-devel +BuildRequires: libjpeg-devel, t1lib-devel +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +Imager is a module for creating and altering images. It can read and write +various image formats, draw primitive shapes like lines,and polygons, blend +multiple images together in various ways, scale, crop, render text and more. + +%prep +%setup -q -n Imager-%{version} +%{__perl} -pi -e 's/my \$resp = /my \$resp = "n"/g' Makefile.PL + +# Quiet rpmlint. +find . -type f \( -perm +100 -o -name '*.pl' \) \ + -exec perl -pi -e 's,^(\#\!)perl,$1%{__perl}, if ($.==1);' {} \; +find . -type f -name '*.pm' \ + -exec perl -pi -e '$_=undef if ($.==1 and /^\#\!.*perl/)' {} \; +chmod a-x samples/* + +%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 +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' +find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' +find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';' +chmod -R u+w $RPM_BUILD_ROOT/* + +perldoc -t perlgpl > COPYING +perldoc -t perlartistic > Artistic + +%check +make test + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc README COPYING Artistic +%doc samples/ +%{perl_vendorarch}/Imager* +%{perl_vendorarch}/auto/* +%{_mandir}/man3/*.3* + + +%changelog +* Wed Sep 14 2005 Gavin Henry - 0.45-2 +- Applied Steven Pritchard's kind patch to cleanup - + https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=166254 + +* Thu Aug 18 2005 Gavin Henry - 0.45-1 +- First build. diff --git a/sources b/sources index e69de29..54e51c6 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +85dd3736426396341b54b632d239e5e5 Imager-0.45.tar.gz