1 | %define module Image-Size |
---|
2 | %define name perl-%{module} |
---|
3 | %define version 3.1.1 |
---|
4 | %define release 3%{_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 | * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.1-3 |
---|
57 | - rebuild with perl-5.12.3 |
---|
58 | |
---|
59 | * Sun Feb 15 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.1.1-2 |
---|
60 | - added BuildRequires: perl-Test-Pod, perl-Test-Pod-Coverage |
---|
61 | - changed Group to Development/Libraries |
---|
62 | |
---|
63 | * Mon May 05 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> - 3.1.1-1 |
---|
64 | - rebuild with perl 5.10 |
---|
65 | - new versioning policy |
---|
66 | |
---|
67 | * Sun Mar 02 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.1.1-0vl1 |
---|
68 | - built for release |
---|
69 | |
---|
70 | * Sun Mar 02 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.1.1-0vl0.1 |
---|
71 | - test package for VineSeed |
---|
72 | - new upstream release |
---|
73 | - add Vendor/Distribution tag |
---|
74 | |
---|
75 | * Thu Jul 05 2007 Guillaume Rousse <guillomovitch@mandriva.org> 3.01-1mdv2008.0 |
---|
76 | + Revision: 48726 |
---|
77 | - switch to Module::Build |
---|
78 | |
---|
79 | + Olivier Thauvin <nanardon@mandriva.org> |
---|
80 | - buildrequires |
---|
81 | - 3.01 |
---|
82 | |
---|
83 | |
---|
84 | * Mon Jul 17 2006 Christiaan Welvaart <cjw@daneel.dyndns.org> 1:3.0-2 |
---|
85 | - add BuildRequires: perl-Compress-Zlib |
---|
86 | |
---|
87 | * Fri Jun 16 2006 Guillaume Rousse <guillomovitch@mandriva.org> 1:3.0-1mdv2007.0 |
---|
88 | - new version |
---|
89 | - rpmbuildupdate aware |
---|
90 | - spec cleanup |
---|
91 | - better summary |
---|
92 | |
---|
93 | * Tue Jan 18 2005 Abel Cheung <deaddog@mandrake.org> 2.992-3mdk |
---|
94 | - rebuild |
---|
95 | |
---|
96 | * Tue Aug 12 2003 Per リyvind Karlsen <peroyvind@linux-mandrake.com> 2.992-2mdk |
---|
97 | - rebuild for new perl |
---|
98 | - use %%makeinstall_std macro |
---|
99 | |
---|
100 | * Mon Jul 21 2003 Fran輟is Pons <fpons@mandrakesoft.com> 2.992-1mdk |
---|
101 | - 2.992. |
---|
102 | |
---|