%define perl_modversion() %([ -f %{SOURCE3} ] && awk -vp=%1 '$1 == p{m=$1; gsub(/::/, "-", m); printf("perl-%s = %s\\n", m, $3)}END{if (!m) printf("# Error looking up [%s]\\n", p)}' %{SOURCE3} || echo ERROR)
%define ver 5.18.0
-%define rel 5
+%define rel 9
Summary: Practical Extraction and Report Language (Perl)
Summary(cs.UTF-8): Programovací jazyk Perl
Summary(da.UTF-8): Programmeringssproget Perl
Patch6: %{name}-write-permissions.patch
Patch7: %{name}-t-syslog.patch
Patch8: %{name}-fix-pointer-arithmetic.patch
+Patch9: %{name}-switch.patch
+Patch10: %{name}-invalid-void-use.patch
URL: http://dev.perl.org/perl5/
%ifarch ppc
# gcc 3.3.x miscompiles pp_hot.c
Summary: GDBM_File - Perl5 access to the gdbm library
Summary(pl.UTF-8): GDBM_File - dostęp do biblioteki gdbm w Perlu
Version: %perl_modver GDBM_File
-Epoch: 2
+Release: %{ver}.%{rel}
+Epoch: 3
Group: Libraries
-Requires: %{name}-base = 1:%{ver}-%{release}
+Requires: %{name}-base = 1:%{ver}-%{rel}
%description GDBM_File
GDBM_File is a module which allows Perl programs to make use of the
%patch6 -p1
%patch7 -p1
%patch8 -p1
+%patch9 -p1
+%patch10 -p1
cat > runperl <<'EOF'
#!/bin/sh
echo '# Module versions from Perl %{ver} distribution.' > perl-modules
for m in $(awk '!/^#/ && !/^$/{print $1}' %{SOURCE3}); do
case $m in
- Devel::DProf)
-# + perl -ilib -MDevel::DProf -e print 'Devel-DProf = ',$Devel::DProf::VERSION
-# DProf: run perl with -d to use DProf.
-# Compilation failed in require.
-# BEGIN failed--compilation aborted.
- v=$(%{__perl} -e 'do "Devel/DProf.pm"; print $Devel::DProf::VERSION')
- ;;
libnet)
v=$(awk '/^libnet /{print $2; exit}' cpan/libnet/Changes)
;;
echo "$m = $v" >> perl-modules
done
-egrep -v '^([ ]*$|[;#])' %{SOURCE3} > .mods1
-egrep -v '^([ ]*$|[;#])' perl-modules > .mods2
+# ExtUtils::CBuilder Compress::Raw::Bzip2 Compress::Raw::Zlib ignored due to VERSION from the loop above
+# is missing ending '0'
+egrep -v '^([ ]*$|[;#])' %{SOURCE3} | egrep -v 'ExtUtils::CBuilder|Compress::Raw::Bzip2|Compress::Raw::Zlib' > .mods1
+egrep -v '^([ ]*$|[;#])' perl-modules | egrep -v 'ExtUtils::CBuilder|Compress::Raw::Bzip2|Compress::Raw::Zlib' > .mods2
if ! cmp -s .mods1 .mods2; then
: %{SOURCE3} outdated with $(pwd)/perl-modules
exit 1