2007-01-15 23:30:39 +00:00
|
|
|
#
|
2010-07-19 18:51:59 +00:00
|
|
|
# spec file for package perl-GD (Version 2.45)
|
2007-01-15 23:30:39 +00:00
|
|
|
#
|
2010-01-14 17:13:24 +00:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-15 23:30:39 +00:00
|
|
|
#
|
2008-09-12 16:10:44 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-15 23:30:39 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-06-23 22:48:32 +00:00
|
|
|
|
2007-01-15 23:30:39 +00:00
|
|
|
Name: perl-GD
|
2009-07-27 20:46:37 +00:00
|
|
|
%define cpan_name GD
|
|
|
|
Summary: Interface to Gd Graphics Library
|
2010-07-19 18:51:59 +00:00
|
|
|
Version: 2.45
|
|
|
|
Release: 1
|
2009-07-27 20:46:37 +00:00
|
|
|
License: MIT License (or similar)
|
2007-01-15 23:30:39 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2009-07-27 20:46:37 +00:00
|
|
|
Url: http://search.cpan.org/dist/GD
|
|
|
|
AutoReqProv: on
|
|
|
|
Source: %{cpan_name}-%{version}.tar.bz2
|
2010-04-06 20:23:54 +00:00
|
|
|
Source1: test10.png
|
2007-01-15 23:30:39 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2009-07-27 20:46:37 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: freetype2-devel
|
|
|
|
BuildRequires: gd-devel >= 2.0.28
|
|
|
|
BuildRequires: libjpeg-devel libpng-devel xorg-x11-devel
|
|
|
|
Requires: perl = %{perl_version}
|
|
|
|
Provides: %{cpan_name}
|
2007-01-15 23:30:39 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This is an autoloadable interface module for libgd, a popular library
|
|
|
|
for creating and manipulating PNG files. With this library you can
|
|
|
|
create PNG images on the fly or modify existing files.
|
|
|
|
|
|
|
|
This version of GD no longer supports GIF output because of threats
|
|
|
|
from the legal department at Unisys. Source code that calls
|
|
|
|
$image->gif will have to be changed to call either $image->jpg or
|
|
|
|
$image->png to output in JPEG or PNG formats. The last version of GD
|
|
|
|
that supported GIF output was version 1.19.
|
|
|
|
|
|
|
|
%prep
|
2010-04-06 20:23:54 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
cp %{S:1} t/test.out.10.png
|
2007-01-15 23:30:39 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
# replace /usr/local/perl with /usr/bin/perl
|
|
|
|
for ii in `grep -rl "/usr/local/bin/perl" *` ; do
|
2009-07-27 20:46:37 +00:00
|
|
|
sed -i -e "s@/usr/local/bin/perl@/usr/bin/perl@" $ii
|
2007-01-15 23:30:39 +00:00
|
|
|
done
|
2009-07-27 20:46:37 +00:00
|
|
|
#perl -pi -e 's#X11R6/lib#X11R6/%{_lib}#g;' Makefile.PL
|
2007-01-15 23:30:39 +00:00
|
|
|
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
2010-01-14 17:13:24 +00:00
|
|
|
%{__make} %{?_smp_mflags}
|
2009-07-27 20:46:37 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
%{__make} html
|
|
|
|
%{__make} test
|
2007-01-15 23:30:39 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2009-07-27 20:46:37 +00:00
|
|
|
%perl_gen_filelist
|
2007-01-15 23:30:39 +00:00
|
|
|
|
|
|
|
%clean
|
2009-07-27 20:46:37 +00:00
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
2007-01-15 23:30:39 +00:00
|
|
|
|
2009-07-27 20:46:37 +00:00
|
|
|
%files -f %{name}.files
|
2007-01-15 23:30:39 +00:00
|
|
|
%defattr(-, root, root)
|
2009-07-27 20:46:37 +00:00
|
|
|
%doc ChangeLog README* demos
|
2007-01-15 23:30:39 +00:00
|
|
|
|
2008-06-23 22:48:32 +00:00
|
|
|
%changelog
|