[521] | 1 | %define module Image-Size |
---|
| 2 | %define name perl-%{module} |
---|
[5868] | 3 | %define version 3.2 |
---|
| 4 | %define release 1%{_dist_release} |
---|
[521] | 5 | |
---|
| 6 | Name: %{name} |
---|
| 7 | Version: %{version} |
---|
| 8 | Release: %{release} |
---|
| 9 | Summary: Read the dimensions of an image in several popular formats |
---|
| 10 | License: Artistic and GPL |
---|
| 11 | Group: Development/Libraries |
---|
| 12 | URL: http://search.cpan.org/dist/%{module} |
---|
[5868] | 13 | Source0: http://www.cpan.org/modules/by-module/Image/%{module}-%{version}.tar.gz |
---|
| 14 | Source1: Build.PL |
---|
[521] | 15 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[5868] | 16 | |
---|
| 17 | BuildArch: noarch |
---|
| 18 | BuildRequires: perl(Module::Build) |
---|
[521] | 19 | BuildRequires: perl(Compress::Zlib) |
---|
[5868] | 20 | BuildRequires: perl(Image::Magick) |
---|
| 21 | BuildRequires: perl(Test::Pod) |
---|
| 22 | BuildRequires: perl(Test::Pod::Coverage) |
---|
| 23 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
| 24 | Requires: perl(Compress::Zlib) |
---|
| 25 | Requires: perl(Image::Magick) |
---|
[521] | 26 | |
---|
| 27 | Vendor: Project Vine |
---|
| 28 | Distribution: Vine Linux |
---|
| 29 | |
---|
| 30 | %description |
---|
| 31 | Image::Size is a library based on the image-sizing code in the wwwimagesize |
---|
| 32 | script, a tool that analyzes HTML files and adds HEIGHT and WIDTH tags to |
---|
| 33 | IMG directives. |
---|
| 34 | |
---|
| 35 | %prep |
---|
| 36 | %setup -q -n %{module}-%{version} |
---|
[5868] | 37 | # Upstream forgot Build.PL |
---|
| 38 | cp %{SOURCE1} . |
---|
[521] | 39 | |
---|
[5868] | 40 | pushd lib/Image/ |
---|
| 41 | iconv -f iso-8859-1 -t utf-8 -o Size.pm{.utf8,} |
---|
| 42 | mv Size.pm{.utf8,} |
---|
| 43 | popd |
---|
| 44 | |
---|
| 45 | |
---|
[521] | 46 | %build |
---|
| 47 | %{__perl} Build.PL installdirs=vendor |
---|
| 48 | ./Build CFLAGS="%{optflags}" |
---|
| 49 | |
---|
[5868] | 50 | |
---|
| 51 | %install |
---|
| 52 | rm -rf %{buildroot} |
---|
| 53 | ./Build install destdir=%{buildroot} create_packlist=0 |
---|
| 54 | |
---|
| 55 | |
---|
[521] | 56 | %check |
---|
| 57 | ./Build test |
---|
| 58 | |
---|
[5868] | 59 | |
---|
[521] | 60 | %clean |
---|
| 61 | rm -rf %{buildroot} |
---|
| 62 | |
---|
| 63 | |
---|
| 64 | %files |
---|
| 65 | %defattr(-,root,root) |
---|
| 66 | %{_bindir}/* |
---|
| 67 | %{_mandir}/*/* |
---|
| 68 | %{perl_vendorlib}/Image |
---|
| 69 | %{perl_vendorlib}/auto/Image |
---|
| 70 | |
---|
[5868] | 71 | |
---|
[521] | 72 | %changelog |
---|
[5868] | 73 | * Fri Mar 09 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 3.2-1 |
---|
| 74 | - updated to 3.2; spec revamped based on Fedora's 3.2-8 |
---|
| 75 | |
---|
[3739] | 76 | * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.1-3 |
---|
| 77 | - rebuild with perl-5.12.3 |
---|
| 78 | |
---|
[521] | 79 | * Sun Feb 15 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.1.1-2 |
---|
| 80 | - added BuildRequires: perl-Test-Pod, perl-Test-Pod-Coverage |
---|
| 81 | - changed Group to Development/Libraries |
---|
| 82 | |
---|
| 83 | * Mon May 05 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> - 3.1.1-1 |
---|
| 84 | - rebuild with perl 5.10 |
---|
| 85 | - new versioning policy |
---|
| 86 | |
---|
| 87 | * Sun Mar 02 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.1.1-0vl1 |
---|
| 88 | - built for release |
---|
| 89 | |
---|
| 90 | * Sun Mar 02 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.1.1-0vl0.1 |
---|
| 91 | - test package for VineSeed |
---|
| 92 | - new upstream release |
---|
| 93 | - add Vendor/Distribution tag |
---|
| 94 | |
---|
| 95 | * Thu Jul 05 2007 Guillaume Rousse <guillomovitch@mandriva.org> 3.01-1mdv2008.0 |
---|
| 96 | + Revision: 48726 |
---|
| 97 | - switch to Module::Build |
---|
| 98 | |
---|
| 99 | + Olivier Thauvin <nanardon@mandriva.org> |
---|
| 100 | - buildrequires |
---|
| 101 | - 3.01 |
---|
| 102 | |
---|
| 103 | |
---|
| 104 | * Mon Jul 17 2006 Christiaan Welvaart <cjw@daneel.dyndns.org> 1:3.0-2 |
---|
| 105 | - add BuildRequires: perl-Compress-Zlib |
---|
| 106 | |
---|
| 107 | * Fri Jun 16 2006 Guillaume Rousse <guillomovitch@mandriva.org> 1:3.0-1mdv2007.0 |
---|
| 108 | - new version |
---|
| 109 | - rpmbuildupdate aware |
---|
| 110 | - spec cleanup |
---|
| 111 | - better summary |
---|
| 112 | |
---|
| 113 | * Tue Jan 18 2005 Abel Cheung <deaddog@mandrake.org> 2.992-3mdk |
---|
| 114 | - rebuild |
---|
| 115 | |
---|
| 116 | * Tue Aug 12 2003 Per リyvind Karlsen <peroyvind@linux-mandrake.com> 2.992-2mdk |
---|
| 117 | - rebuild for new perl |
---|
| 118 | - use %%makeinstall_std macro |
---|
| 119 | |
---|
| 120 | * Mon Jul 21 2003 Fran輟is Pons <fpons@mandrakesoft.com> 2.992-1mdk |
---|
| 121 | - 2.992. |
---|
| 122 | |
---|