%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) Name: perl-B-Keywords Version: 1.11 Release: 1mamba Summary: B::Keywords - Lists of reserved barewords and symbol names Group: System/Libraries/Perl Vendor: openmamba Distribution: openmamba Packager: gil URL: http://www.cpan.org Source: http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/B-Keywords-%{version}.tar.gz License: GPL, Artistic BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Test::More) BuildRequires: perl(YAML) BuildRequires: perl-devel Requires: perl >= %perl_major_ver BuildRoot: %{_tmppath}/%{name}-%{version}-root %description B::Keywords supplies seven arrays of keywords: @Scalars, @Arrays, @Hashes, @Filehandles, @Symbols, @Functions, and @Barewords. The @Symbols array includes the contents of each of @Scalars, @Arrays, @Hashes, @Functions and @Filehandles. Similarly, @Barewords adds a few non-function keywords and operators to the @Functions array. %prep %setup -q -n B-Keywords-%{version} %build perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor %make %make test %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall_perl find %{buildroot} -type f -name .packlist -exec rm -f {} ';' find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' chmod -R u+w %{buildroot}/* %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %{perl_vendorlib}/B/ %{_mandir}/man3/*.3pm.gz %doc Changes LICENSE README %changelog * Mon Jan 16 2012 Automatic Build System 1.11-1mamba - automatic version update by autodist * Fri Feb 18 2011 gil 1.10-1mamba - package created by autospec