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