%define _use_internal_dependency_generator 0 # disable debuginfo package %define debug_package %{nil} Name: perl-GD Version: 2.06 Release: 1.8 Packager: Milan Kerslager Summary: Perl interface for GD graphics library. License: Distributable Group: Development/Libraries URL: http://search.cpan.org/search?mode=module&query=SpeedyCGI BuildRoot: %{_tmppath}/%{name}-root BuildRequires: perl >= 0:5.00503 Source0: GD-%{version}.tar.gz BuildArch: i386 BuildRequires: perl-Digest-HMAC, gd-devel >= 2.0.8 %description GD.pm is a Perl interface to Thomas Boutell's gd graphics library (version 2.01 or higher; see below). GD allows you to create color drawings using a large number of graphics primitives, and emit the drawings as PNG files. %prep %setup -q -n GD-%{version} %build echo | CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT/usr INSTALLDIRS=vendor make make test %clean rm -rf $RPM_BUILD_ROOT %install rm -rf $RPM_BUILD_ROOT eval `perl '-V:installarchlib'` mkdir -p $RPM_BUILD_ROOT/$installarchlib make install [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \; find $RPM_BUILD_ROOT/usr -type f -print | \ sed "s@^$RPM_BUILD_ROOT@@g" | \ grep -v perllocal.pod | \ grep -v "\.packlist" > GD-%{version}-filelist if [ "$(cat GD-%{version}-filelist)X" = "X" ] ; then echo "ERROR: EMPTY FILE LIST" exit -1 fi %files -f GD-%{version}-filelist %defattr(-,root,root) %changelog * Fri May 23 2003 Milan Kerslager 2.06-1.8 - rebuild for RH 8.0 * Mon Apr 28 2003 Milan Kerslager 2.06-1 - initial version - version 2.07 does not compile - this version needs gd library 2.0.8 or later to build succesfully