%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) Name: perl-Sub-Uplevel Epoch: 1 Version: 0.2800 Release: 1mamba Summary: Sub::Uplevel - Apparently run a function in a higher stack frame Group: Development/Libraries/Perl Vendor: openmamba Distribution: openmamba Packager: Aleph0 URL: http://www.cpan.org Source: http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/Sub-Uplevel-%{version}.tar.gz License: GPL BuildRequires: perl-devel >= %perl_major_ver Requires: perl >= %perl_major_ver BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Like Tcl's uplevel() function, but not quite so dangerous. The idea is just to fool caller(). All the really naughty bits of Tcl's uplevel() are avoided. %prep %setup -q -n Sub-Uplevel-%{version} %build perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor %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 * Thu Oct 26 2017 Automatic Build System 0.2800-1mamba - automatic update by autodist * Mon Aug 29 2016 Automatic Build System 0.2600-1mamba - automatic update by autodist * Mon Feb 23 2015 Automatic Build System 0.25-1mamba - automatic update by autodist * Sun Apr 28 2013 Automatic Build System 0.24-1mamba - update to 0.24 * Fri Feb 06 2009 Silvan Calarco 0.2002-1mamba - automatic update by autodist * Wed Nov 05 2008 Silvan Calarco 0.18-2mamba - automatic rebuild by autodist * Fri Nov 09 2007 Aleph0 0.18-1mamba - update to 0.18 * Mon Jan 24 2005 Davide Madrisan 0.09-1qilnx - package created by autospec