commit c6cf0021c519da7c343f3741dba87def861ace21 Author: Petr Šabata <contyk@xxxxxxxxxx> Date: Mon Jul 1 10:00:54 2013 +0200 3.232 bump - Modernize the spec somewhat - Drop the extra Build.PL; upstream's shipping Makefile.PL, there's no reason for our own solution - Fix a bogus date in changelog Build.PL | 20 -------------- perl-Image-Size.spec | 70 +++++++++++++++++++++++-------------------------- 2 files changed, 33 insertions(+), 57 deletions(-) --- diff --git a/perl-Image-Size.spec b/perl-Image-Size.spec index 5346d45..572eed9 100644 --- a/perl-Image-Size.spec +++ b/perl-Image-Size.spec @@ -1,24 +1,31 @@ Name: perl-Image-Size -Version: 3.2 -Release: 11%{?dist} +Version: 3.232 +Release: 1%{?dist} Summary: Determine the size of images in several common formats in Perl - -Group: Development/Libraries License: LGPLv2 or Artistic 2.0 URL: http://search.cpan.org/dist/Image-Size/ Source0: http://www.cpan.org/authors/id/R/RJ/RJRAY/Image-Size-%{version}.tar.gz -Source1: Build.PL -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - BuildArch: noarch -BuildRequires: perl(Module::Build) +BuildRequires: perl +BuildRequires: perl(bytes) BuildRequires: perl(Compress::Zlib) +BuildRequires: perl(Cwd) +BuildRequires: perl(Exporter) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(File::Spec) BuildRequires: perl(Image::Magick) -BuildRequires: perl(Test::Pod) -BuildRequires: perl(Test::Pod::Coverage) -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +BuildRequires: perl(IO::File) +BuildRequires: perl(strict) +BuildRequires: perl(Symbol) +BuildRequires: perl(Test::More) +BuildRequires: perl(vars) +BuildRequires: perl(warnings) +Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version)) Requires: perl(Compress::Zlib) +Requires: perl(Cwd) +Requires: perl(File::Spec) Requires: perl(Image::Magick) +Requires: perl(Symbol) %description Image::Size is a library based on the image-sizing code in the wwwimagesize @@ -30,48 +37,37 @@ Currently, Image::Size can size images in XPM, XBM, GIF, JPEG, PNG, MNG, TIFF, the PPM family of formats (PPM/PGM/PBM) and if Image::Magick is installed, the formats supported by it. - %prep %setup -q -n Image-Size-%{version} -# Upstream forgot Build.PL -cp %{SOURCE1} . -pushd lib/Image/ -iconv -f iso-8859-1 -t utf-8 -o Size.pm{.utf8,} -mv Size.pm{.utf8,} -popd - %build -%{__perl} Build.PL installdirs=vendor -./Build - +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} %install -rm -rf $RPM_BUILD_ROOT -./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 -chmod -R u+w $RPM_BUILD_ROOT/* - +make pure_install DESTDIR=%{buildroot} +find %{buildroot} -type f -name .packlist -exec rm -f {} + +chmod -R u+w %{buildroot}/* %check -mv t/00_signature.t t/00_signature.t.skip -./Build test - - -%clean -rm -rf $RPM_BUILD_ROOT - +make test %files -%defattr(-,root,root,-) %doc ChangeLog README %{_bindir}/imgsize %{perl_vendorlib}/Image/ -%{perl_vendorlib}/auto/ %{_mandir}/man1/*.1* -%{_mandir}/man3/*.3pm* +%{_mandir}/man3/*.3* %changelog +* Thu Jun 27 2013 Petr Šabata <contyk@xxxxxxxxxx> - 3.232-1 +- 3.232 bump +- Modernize the spec somewhat +- Drop the extra Build.PL; upstream's shipping Makefile.PL, + there's no reason for our own solution +- Fix a bogus date in changelog + * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 3.2-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild @@ -134,7 +130,7 @@ rm -rf $RPM_BUILD_ROOT * Fri Dec 30 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.992-4 - Dist tag. -* Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 2.992-3 +* Wed Apr 6 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 2.992-3 - rebuilt * Thu Jun 3 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:2.992-0.fdr.2 -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel