%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) Name: perl-Chart Version: 2.400.5 Release: 1mamba Summary: Chart - A perl library that generates on-the-fly charts Group: Development/Libraries/Perl Vendor: openmamba Distribution: openmamba Packager: Aleph0 URL: https://www.cpan.org/ Source: http://www.cpan.org/modules/by-module/Chart/Chart-%{version}.tar.gz License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: libperl BuildRequires: perl-GD BuildRequires: perl-devel ## AUTOBUILDREQ-END BuildRequires: perl-devel >= %perl_major_ver BuildRequires: libgd-devel BuildRequires: perl-GD Requires: perl >= %perl_major_ver BuildArch: noarch %description A perl library that generates on-the-fly charts. %prep %setup -q -n Chart-%{version} %build perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor \ "-options=JPEG,FT,XPM" "-lib_gd_path=%{_libdir}" %make #% make test %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall_perl packlist=`find %{buildroot} -name .packlist` [ -z "$packlist" ] && exit 1 || cat $packlist | \ sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \ sort -u > .packlist && rm $packlist strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'` for dir in `find %{buildroot} -type d | grep $strid`; do echo "%dir ${dir#%buildroot}" >> .packlist done %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" rm -f .packlist %files -f .packlist %defattr(-,root,root) %changelog * Fri Apr 01 2022 Automatic Build System 2.400.5-1mamba - automatic version update by autodist * Sun Aug 18 2019 Silvan Calarco 2.4.10-1mamba - update to 2.4.10 * Thu Oct 11 2012 Automatic Build System 2.4.6-1mamba - automatic version update by autodist * Wed Aug 08 2012 Automatic Build System 2.4.5-1mamba - automatic version update by autodist * Fri Dec 16 2011 Automatic Build System 2.4.3-1mamba - automatic version update by autodist * Wed Mar 16 2011 Automatic Build System 2.4.2-1mamba - automatic update by autodist * Wed Nov 05 2008 Silvan Calarco 2.4.1-2mamba - automatic rebuild by autodist * Mon Nov 26 2007 Aleph0 2.4.1-1mamba - update to 2.4.1 * Fri Oct 22 2004 Alessandro Ramazzina 2.3-1qilnx - package created by autospec (rebuilt after SRPM loss) * Tue Sep 09 2003 Silvan Calarco 2.2-1qilnx - First build