package created using the webbuild interface [release 1.13-1mamba;Tue Nov 04 2014]

This commit is contained in:
Silvan Calarco 2024-01-06 08:35:57 +01:00
parent 782533d002
commit cb9708d775
2 changed files with 24 additions and 26 deletions

View File

@ -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.

View File

@ -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 <puntogil@libero.it>
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
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 <autodist@mambasoft.it> 1.11-1mamba
- automatic version update by autodist
* Fri Feb 18 2011 gil <puntogil@libero.it> 1.10-1mamba
- package created by autospec
* Tue Nov 04 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.13-1mamba
- package created using the webbuild interface