%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) Name: perl-Tie-DBI Version: 1.08 Release: 1mamba Summary: Tie::DBI - Implements a fully general binding between the hash and the table Group: Development/Libraries/Perl Vendor: openmamba Distribution: openmamba Packager: Tiziana Ferro URL: https://www.cpan.org Source: https://cpan.metacpan.org/modules/by-module/Tie/Tie-DBI-%{version}.tar.gz License: GPL Requires: perl >= %perl_major_ver BuildRequires: perl-devel >= %perl_major_ver BuildRequires: perl-DBD-mysql >= 2.1028 %description Tie-DBI is a module that allow you to tie associative arrays to relational databases using the DBI library. %prep %setup -q -n Tie-DBI-%{version} %build perl Makefile.PL %make # make test %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" make pure_install DESTDIR=%{buildroot} 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 * Wed Feb 24 2021 Automatic Build System 1.08-1mamba - automatic version update by autodist * Fri Aug 30 2013 Automatic Build System 1.02-3mamba - automatic rebuild by autodist * Sun Nov 09 2008 Silvan Calarco 1.02-2mamba - automatic rebuild by autodist * Mon Jun 23 2008 Tiziana Ferro 1.02-1mamba - update to 1.02 * Wed Oct 27 2004 Mirko Cortillaro 0.93-1qilnx - package created by autospec