Name: perl-Image-Scale Version: 0.08 Release: 1%{?dist} Summary: Fast, high-quality fixed-point image resizing License: GPLv2+ Group: Development/Libraries URL: http://search.cpan.org/dist/Image-Scale/ Source0: http://www.cpan.org/authors/id/A/AG/AGRUNDMA/Image-Scale-%{version}.tar.gz # Fix compilation with libpng-1.6 Patch0: Image-Scale-0.08-libpng16.patch BuildRequires: perl(ExtUtils::MakeMaker) perl(Test::NoWarnings) BuildRequires: perl(Test::Pod) perl(Test::Pod::Coverage) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description This module implements several resizing algorithms with a focus on low overhead, speed and minimal features. Algorithms available are: %prep %setup -q -n Image-Scale-%{version} %patch0 -p1 %build # Makefile.PL only searches in lib not lib64 for libgif, specify libdir %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" --with-gif-libs=%{_libdir} make %{?_smp_mflags} %install 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 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 TEST_POD=1 make test %files %doc Changes README README.win32 TODO %{perl_vendorarch}/auto/* %{perl_vendorarch}/Image* %{_mandir}/man3/* %changelog * Sun Aug 03 2014 Hans de Goede - 0.08-1 - Initial specfile autogenerated by cpanspec 1.78.