[521] | 1 | %define module Image-Size |
---|
| 2 | %define name perl-%{module} |
---|
| 3 | %define version 3.1.1 |
---|
| 4 | %define release 2%{_dist_release} |
---|
| 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} |
---|
| 13 | Source: http://www.cpan.org/modules/by-module/Image/%{module}-%{version}.tar.gz |
---|
| 14 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 15 | BuildRequires: perl(Compress::Zlib) |
---|
| 16 | BuildRequires: perl(Module::Build) |
---|
| 17 | BuildRequires: perl-Test-Pod |
---|
| 18 | BuildRequires: perl-Test-Pod-Coverage |
---|
| 19 | BuildArch: noarch |
---|
| 20 | |
---|
| 21 | Vendor: Project Vine |
---|
| 22 | Distribution: Vine Linux |
---|
| 23 | |
---|
| 24 | %description |
---|
| 25 | Image::Size is a library based on the image-sizing code in the wwwimagesize |
---|
| 26 | script, a tool that analyzes HTML files and adds HEIGHT and WIDTH tags to |
---|
| 27 | IMG directives. |
---|
| 28 | |
---|
| 29 | %prep |
---|
| 30 | %setup -q -n %{module}-%{version} |
---|
| 31 | |
---|
| 32 | %build |
---|
| 33 | %{__perl} Build.PL installdirs=vendor |
---|
| 34 | ./Build CFLAGS="%{optflags}" |
---|
| 35 | |
---|
| 36 | %check |
---|
| 37 | ./Build test |
---|
| 38 | |
---|
| 39 | %clean |
---|
| 40 | rm -rf %{buildroot} |
---|
| 41 | |
---|
| 42 | %install |
---|
| 43 | rm -rf %{buildroot} |
---|
| 44 | ./Build install destdir=%{buildroot} |
---|
| 45 | # rm -f %{buildroot}%{perl_archlib}/perllocal.pod |
---|
| 46 | # rm -rf %{buildroot}%{perl_vendorarch} |
---|
| 47 | |
---|
| 48 | %files |
---|
| 49 | %defattr(-,root,root) |
---|
| 50 | %{_bindir}/* |
---|
| 51 | %{_mandir}/*/* |
---|
| 52 | %{perl_vendorlib}/Image |
---|
| 53 | %{perl_vendorlib}/auto/Image |
---|
| 54 | |
---|
| 55 | %changelog |
---|
| 56 | * Sun Feb 15 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.1.1-2 |
---|
| 57 | - added BuildRequires: perl-Test-Pod, perl-Test-Pod-Coverage |
---|
| 58 | - changed Group to Development/Libraries |
---|
| 59 | |
---|
| 60 | * Mon May 05 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> - 3.1.1-1 |
---|
| 61 | - rebuild with perl 5.10 |
---|
| 62 | - new versioning policy |
---|
| 63 | |
---|
| 64 | * Sun Mar 02 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.1.1-0vl1 |
---|
| 65 | - built for release |
---|
| 66 | |
---|
| 67 | * Sun Mar 02 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.1.1-0vl0.1 |
---|
| 68 | - test package for VineSeed |
---|
| 69 | - new upstream release |
---|
| 70 | - add Vendor/Distribution tag |
---|
| 71 | |
---|
| 72 | * Thu Jul 05 2007 Guillaume Rousse <guillomovitch@mandriva.org> 3.01-1mdv2008.0 |
---|
| 73 | + Revision: 48726 |
---|
| 74 | - switch to Module::Build |
---|
| 75 | |
---|
| 76 | + Olivier Thauvin <nanardon@mandriva.org> |
---|
| 77 | - buildrequires |
---|
| 78 | - 3.01 |
---|
| 79 | |
---|
| 80 | |
---|
| 81 | * Mon Jul 17 2006 Christiaan Welvaart <cjw@daneel.dyndns.org> 1:3.0-2 |
---|
| 82 | - add BuildRequires: perl-Compress-Zlib |
---|
| 83 | |
---|
| 84 | * Fri Jun 16 2006 Guillaume Rousse <guillomovitch@mandriva.org> 1:3.0-1mdv2007.0 |
---|
| 85 | - new version |
---|
| 86 | - rpmbuildupdate aware |
---|
| 87 | - spec cleanup |
---|
| 88 | - better summary |
---|
| 89 | |
---|
| 90 | * Tue Jan 18 2005 Abel Cheung <deaddog@mandrake.org> 2.992-3mdk |
---|
| 91 | - rebuild |
---|
| 92 | |
---|
| 93 | * Tue Aug 12 2003 Per リyvind Karlsen <peroyvind@linux-mandrake.com> 2.992-2mdk |
---|
| 94 | - rebuild for new perl |
---|
| 95 | - use %%makeinstall_std macro |
---|
| 96 | |
---|
| 97 | * Mon Jul 21 2003 Fran輟is Pons <fpons@mandrakesoft.com> 2.992-1mdk |
---|
| 98 | - 2.992. |
---|
| 99 | |
---|