%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) Name: perl-GD-Graph3d Version: 0.63 Release: 4mamba Summary: GD::Graph3d - This is the GD::Graph3d extensions module. It provides 3D graphs for the GD Group: Development/Libraries/Perl Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.cpan.org Source: http://www.cpan.org/authors/id/W/WA/WADG/GD-Graph3d-%{version}.tar.gz License: GPL Requires: perl >= %perl_major_ver ## AUTOBUILDREQ-BEGIN BuildRequires: perl-devel BuildRequires: perl-GD BuildRequires: perl-GD-Graph ## AUTOBUILDREQ-END BuildRoot: %{_tmppath}/perl-root %description This is the GD::Graph3d extensions module. It provides 3D graphs for the GD %prep %setup -q -n GD-Graph3d-%{version} %build perl Makefile.PL make %{?_smp_mflags} 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 -f $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} %files -f .packlist %defattr(-,root,root) %changelog * Thu Aug 29 2013 Automatic Build System 0.63-4mamba - automatic rebuild by autodist * Wed Nov 05 2008 Silvan Calarco 0.63-3mamba - automatic rebuild by autodist * Sat Jul 12 2008 Silvan Calarco 0.63-2mamba - specfile updated - updated maintainer * Wed Oct 27 2004 Alessandro Ramazzina 0.63-1qilnx - package created by autospec