52 lines
1.7 KiB
RPMSpec
52 lines
1.7 KiB
RPMSpec
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
|
|
# https://rt.cpan.org/Public/Bug/Display.html?id=93417
|
|
Patch1: Image-Scale-0.08-arm-asm.patch
|
|
BuildRequires: libpng-devel libjpeg-devel giflib-devel
|
|
BuildRequires: perl(ExtUtils::MakeMaker) perl(Test::NoWarnings)
|
|
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
|
|
%patch1 -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
|
|
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 <hdegoede@redhat.com> - 0.08-1
|
|
- Specfile autogenerated by cpanspec 1.78.
|