1 |
jquelin |
12127 |
%define upstream_name Imager |
2 |
|
|
%define upstream_version 0.79 |
3 |
|
|
|
4 |
|
|
Name: perl-%{upstream_name} |
5 |
|
|
Version: %perl_convert_version %{upstream_version} |
6 |
|
|
Release: %mkrel 1 |
7 |
|
|
|
8 |
|
|
Summary: Perl extension for generating 24 bit images |
9 |
|
|
License: GPL+ or Artistic |
10 |
|
|
Group: Development/Perl |
11 |
|
|
Url: http://search.cpan.org/dist/%{upstream_name} |
12 |
|
|
Source0: http://www.cpan.org/modules/by-module/Imager/%{upstream_name}-%{upstream_version}.tar.gz |
13 |
|
|
|
14 |
|
|
BuildRequires: fontconfig-devel |
15 |
|
|
BuildRequires: libjpeg-devel |
16 |
|
|
BuildRequires: libpng-devel |
17 |
|
|
BuildRequires: libtiff-devel |
18 |
|
|
BuildRequires: perl-devel |
19 |
|
|
BuildRequires: t1lib-devel |
20 |
|
|
BuildRequires: ungif-devel |
21 |
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} |
22 |
|
|
|
23 |
|
|
%description |
24 |
|
|
Imager is a module for creating and altering images. It can read and write |
25 |
|
|
various image formats, draw primitive shapes like lines,and polygons, blend |
26 |
|
|
multiple images together in various ways, scale, crop, render text and more. |
27 |
|
|
|
28 |
|
|
%prep |
29 |
|
|
%setup -q -n %{upstream_name}-%{upstream_version} |
30 |
|
|
|
31 |
|
|
%build |
32 |
|
|
IM_SUPPRESS_PROMPT=1 %{__perl} Makefile.PL INSTALLDIRS=vendor |
33 |
|
|
%make "CFLAGS=%{optflags}" |
34 |
|
|
|
35 |
|
|
%check |
36 |
|
|
%{__make} test |
37 |
|
|
|
38 |
|
|
%install |
39 |
|
|
rm -rf %{buildroot} |
40 |
|
|
%makeinstall_std |
41 |
|
|
|
42 |
|
|
%clean |
43 |
|
|
rm -rf %{buildroot} |
44 |
|
|
|
45 |
|
|
%files |
46 |
|
|
%defattr(-,root,root) |
47 |
|
|
%doc README Changes |
48 |
|
|
%{perl_vendorarch}/Imager.pm |
49 |
|
|
%{perl_vendorarch}/Imager |
50 |
|
|
%{perl_vendorarch}/auto/Imager |
51 |
|
|
%{_mandir}/*/* |
52 |
|
|
|
53 |
|
|
|