|
|
|
@ -1,26 +1,26 @@
|
|
|
|
|
Name: perl-Imager
|
|
|
|
|
Version: 0.54
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Summary: Imager - Perl extension for Generating 24 bit Images
|
|
|
|
|
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
Version: 0.55
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Perl extension for Generating 24 bit Images
|
|
|
|
|
License: GPL or Artistic
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
URL: http://search.cpan.org/dist/Imager/
|
|
|
|
|
Source0: http://search.cpan.org/CPAN/authors/id/T/TO/TONYC/Imager-%{version}.tar.gz
|
|
|
|
|
Source0: http://www.cpan.org/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.
|
|
|
|
|
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 = <STDIN>/my \$resp = "n"/g' Makefile.PL
|
|
|
|
|
|
|
|
|
|
# Quiet rpmlint.
|
|
|
|
@ -34,36 +34,36 @@ chmod a-x samples/*
|
|
|
|
|
%{__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 -depth -type d -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
|
|
|
|
|
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
|
|
|
|
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
|
|
|
|
|
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
|
|
|
|
|
|
|
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%doc README COPYING Artistic
|
|
|
|
|
%doc Changes* README
|
|
|
|
|
%doc samples/
|
|
|
|
|
%{perl_vendorarch}/Imager*
|
|
|
|
|
%{perl_vendorarch}/auto/*
|
|
|
|
|
%{_mandir}/man3/*.3*
|
|
|
|
|
|
|
|
|
|
%{perl_vendorarch}/Imager*
|
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Dec 26 2006 Steven Pritchard <steve@kspei.com> 0.55-1
|
|
|
|
|
- Update to 0.55.
|
|
|
|
|
- Cleanup to more closely resemble current cpanspec output.
|
|
|
|
|
|
|
|
|
|
* Thu Oct 05 2006 Christian Iseli <Christian.Iseli@licr.org> 0.54-2
|
|
|
|
|
- rebuilt for unwind info generation, broken in gcc-4.1.1-21
|
|
|
|
|
|
|
|
|
|