diff --git a/README.md b/README.md index 86797ef..d684c96 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,4 @@ # perl-B-Keywords -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. +Lists of reserved barewords and symbol names. diff --git a/perl-B-Keywords.spec b/perl-B-Keywords.spec index 89c1b78..75bc4c4 100644 --- a/perl-B-Keywords.spec +++ b/perl-B-Keywords.spec @@ -1,34 +1,31 @@ %define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) Name: perl-B-Keywords -Version: 1.11 +Version: 1.13 Release: 1mamba Summary: B::Keywords - Lists of reserved barewords and symbol names Group: System/Libraries/Perl Vendor: openmamba Distribution: openmamba -Packager: gil +Packager: Silvan Calarco URL: http://www.cpan.org -Source: http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/B-Keywords-%{version}.tar.gz +Source: http://search.cpan.org/CPAN/authors/id/R/RU/RURBAN/B-Keywords-%{version}.tar.gz License: GPL, Artistic -BuildRequires: perl(ExtUtils::MakeMaker) -BuildRequires: perl(Test::More) -BuildRequires: perl(YAML) +## AUTOBUILDREQ-BEGIN BuildRequires: perl-devel +## AUTOBUILDREQ-END 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. +Lists of reserved barewords and symbol names. %prep %setup -q -n B-Keywords-%{version} - %build -perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor +%{__perl} Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor OPTIMIZE="%{optflags}" + %make %make test @@ -36,22 +33,25 @@ perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor [ "%{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}/* +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 +%files -f .packlist %defattr(-,root,root) -%{perl_vendorlib}/B/ -%{_mandir}/man3/*.3pm.gz -%doc Changes LICENSE README +%doc LICENSE +## note: eventually add the remaining documents (if any) +# %doc 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 +* Tue Nov 04 2014 Silvan Calarco 1.13-1mamba +- package created using the webbuild interface