source: projects/specs/trunk/p/perl-Image-Size/perl-Image-Size-vl.spec @ 5868

Revision 5868, 3.0 KB checked in by shaolin, 12 years ago (diff)
  • perl-Image-Size: update
  • perl-Image-Xbm, perl-Image-Xpm, perl-Image-Base, perl-Image-Info: new packages
Line 
1%define module  Image-Size
2%define name    perl-%{module}
3%define version 3.2
4%define release 1%{_dist_release}
5
6Name:           %{name}
7Version:        %{version}
8Release:        %{release}
9Summary:        Read the dimensions of an image in several popular formats
10License:        Artistic and GPL
11Group:          Development/Libraries
12URL:            http://search.cpan.org/dist/%{module}
13Source0:        http://www.cpan.org/modules/by-module/Image/%{module}-%{version}.tar.gz
14Source1:        Build.PL
15BuildRoot:      %{_tmppath}/%{name}-%{version}-root
16
17BuildArch:      noarch
18BuildRequires:  perl(Module::Build)
19BuildRequires:  perl(Compress::Zlib)
20BuildRequires:  perl(Image::Magick)
21BuildRequires:  perl(Test::Pod)
22BuildRequires:  perl(Test::Pod::Coverage)
23Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
24Requires:       perl(Compress::Zlib)
25Requires:       perl(Image::Magick)
26
27Vendor:         Project Vine
28Distribution:   Vine Linux
29
30%description
31Image::Size is a library based on the image-sizing code in the wwwimagesize
32script, a tool that analyzes HTML files and adds HEIGHT and WIDTH tags to
33IMG directives.
34
35%prep
36%setup -q -n %{module}-%{version}
37# Upstream forgot Build.PL
38cp %{SOURCE1} .
39
40pushd lib/Image/
41iconv -f iso-8859-1 -t utf-8 -o Size.pm{.utf8,}
42mv Size.pm{.utf8,}
43popd
44
45
46%build
47%{__perl} Build.PL installdirs=vendor
48./Build CFLAGS="%{optflags}"
49
50
51%install
52rm -rf %{buildroot}
53./Build install destdir=%{buildroot} create_packlist=0
54
55
56%check
57./Build test
58
59
60%clean
61rm -rf %{buildroot}
62
63
64%files
65%defattr(-,root,root)
66%{_bindir}/*
67%{_mandir}/*/*
68%{perl_vendorlib}/Image
69%{perl_vendorlib}/auto/Image
70
71
72%changelog
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
76* Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.1-3
77- rebuild with perl-5.12.3
78
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
Note: See TracBrowser for help on using the repository browser.