2006-12-19 00:17:26 +01:00
|
|
|
#
|
2011-01-15 02:24:29 +01:00
|
|
|
# spec file for package perl
|
2006-12-19 00:17:26 +01:00
|
|
|
#
|
2015-02-11 17:53:14 +01:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2006-12-19 00:17:26 +01:00
|
|
|
#
|
2008-08-21 18:46:31 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2006-12-19 00:17:26 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
# icecream 0
|
|
|
|
|
2008-02-25 17:35:30 +01:00
|
|
|
|
2006-12-19 00:17:26 +01:00
|
|
|
Name: perl
|
2007-05-17 00:31:32 +02:00
|
|
|
Summary: The Perl interpreter
|
2012-04-02 13:09:27 +02:00
|
|
|
License: Artistic-1.0 or GPL-2.0+
|
2006-12-19 00:17:26 +01:00
|
|
|
Group: Development/Languages/Perl
|
2014-09-17 14:37:18 +02:00
|
|
|
Version: 5.20.1
|
2012-01-13 14:51:12 +01:00
|
|
|
Release: 0
|
2014-09-17 14:37:18 +02:00
|
|
|
%define pversion 5.20.1
|
2009-07-03 16:07:28 +02:00
|
|
|
Url: http://www.perl.org/
|
2014-06-02 17:21:22 +02:00
|
|
|
Source: http://www.cpan.org/src/5.0/perl-%{version}.tar.bz2
|
2007-10-31 21:54:06 +01:00
|
|
|
Source1: %name-rpmlintrc
|
2009-07-03 16:07:28 +02:00
|
|
|
Source2: macros.perl
|
|
|
|
Source3: README.macros
|
2010-01-14 16:56:23 +01:00
|
|
|
Source4: baselibs.conf
|
2014-06-02 17:21:22 +02:00
|
|
|
Patch0: perl-5.20.0.dif
|
2011-05-16 16:18:55 +02:00
|
|
|
Patch2: perl-regexp-refoverflow.diff
|
|
|
|
Patch3: perl-nroff.diff
|
|
|
|
Patch4: perl-netcmdutf8.diff
|
|
|
|
Patch5: perl-HiRes.t-timeout.diff
|
|
|
|
Patch6: perl-saverecontext.diff
|
2013-08-08 17:39:00 +02:00
|
|
|
Patch8: skip_time_hires.patch
|
2014-01-08 15:13:37 +01:00
|
|
|
Patch9: perl-incfix.diff
|
2014-03-25 13:21:43 +01:00
|
|
|
Patch11: perl-5.18.2-overflow.diff
|
2014-09-17 14:37:18 +02:00
|
|
|
Patch12: DataDumper-no-infinite-recursion.diff
|
2006-12-19 00:17:26 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2009-07-03 16:07:28 +02:00
|
|
|
PreReq: perl-base = %version
|
|
|
|
#PreReq: %fillup_prereq
|
2012-01-13 14:51:12 +01:00
|
|
|
BuildRequires: db-devel
|
|
|
|
BuildRequires: gdbm-devel
|
|
|
|
BuildRequires: libbz2-devel
|
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
BuildRequires: zlib-devel
|
2009-07-03 16:07:28 +02:00
|
|
|
#Requires: gzip # needed in SuSEconfig.perl
|
2011-01-28 12:38:54 +01:00
|
|
|
Suggests: perl-doc = %version
|
2009-07-03 16:07:28 +02:00
|
|
|
#
|
2010-04-01 18:16:33 +02:00
|
|
|
%if "%version" != "%pversion"
|
|
|
|
Provides: perl = %pversion-%release
|
|
|
|
%endif
|
2009-07-03 16:07:28 +02:00
|
|
|
Provides: perl-500
|
2013-06-11 15:10:30 +02:00
|
|
|
Provides: perl(:MODULE_COMPAT_%pversion)
|
2014-09-17 14:37:18 +02:00
|
|
|
%global versionlist 5.20.0
|
2014-06-08 14:15:24 +02:00
|
|
|
Provides: perl-Filter-Simple = 0.91
|
2014-09-17 14:37:18 +02:00
|
|
|
Provides: perl(:MODULE_COMPAT_5.20.0)
|
2014-06-08 14:15:24 +02:00
|
|
|
Obsoletes: perl-Filter-Simple < 0.91
|
|
|
|
Provides: perl-I18N-LangTags = 0.40
|
|
|
|
Obsoletes: perl-I18N-LangTags < 0.40
|
|
|
|
Provides: perl-MIME-Base64 = 3.14
|
|
|
|
Obsoletes: perl-MIME-Base64 < 3.14
|
|
|
|
Provides: perl-Storable = 2.49
|
|
|
|
Obsoletes: perl-Storable < 2.49
|
2014-06-02 17:21:22 +02:00
|
|
|
Provides: perl-Test-Simple = 1.001003
|
|
|
|
Obsoletes: perl-Test-Simple < 1.001003
|
2014-06-08 14:15:24 +02:00
|
|
|
Provides: perl-Text-Balanced = 2.02
|
|
|
|
Obsoletes: perl-Text-Balanced < 2.02
|
2012-11-16 09:47:08 +01:00
|
|
|
Provides: perl-Time-HiRes
|
2012-04-02 13:09:27 +02:00
|
|
|
Obsoletes: perl-Time-HiRes
|
2012-11-16 09:47:08 +01:00
|
|
|
Provides: perl-libnet
|
2012-04-02 13:09:27 +02:00
|
|
|
Obsoletes: perl-libnet
|
|
|
|
Provides: perl-Compress-Raw-Zlib
|
|
|
|
Obsoletes: perl-Compress-Raw-Zlib
|
2012-11-16 09:47:08 +01:00
|
|
|
Provides: perl-Compress-Zlib
|
2012-04-02 13:09:27 +02:00
|
|
|
Obsoletes: perl-Compress-Zlib
|
|
|
|
Provides: perl-IO-Compress-Base
|
|
|
|
Obsoletes: perl-IO-Compress-Base
|
2012-11-16 09:47:08 +01:00
|
|
|
Provides: perl-IO-Compress-Zlib
|
2012-04-02 13:09:27 +02:00
|
|
|
Obsoletes: perl-IO-Compress-Zlib
|
2012-11-16 09:47:08 +01:00
|
|
|
Provides: perl-IO-Zlib
|
2012-04-02 13:09:27 +02:00
|
|
|
Obsoletes: perl-IO-Zlib
|
|
|
|
Provides: perl-Archive-Tar
|
2012-11-15 17:39:22 +01:00
|
|
|
Obsoletes: perl-Archive-Tar
|
2013-06-11 09:27:52 +02:00
|
|
|
Obsoletes: perl-Module-Build <= 0.4003
|
2012-11-16 09:47:08 +01:00
|
|
|
Provides: perl-Locale-Maketext-Simple = 0.21
|
|
|
|
Obsoletes: perl-Locale-Maketext-Simple < 0.21
|
2014-06-02 17:21:22 +02:00
|
|
|
Provides: perl-Pod-Escapes = 1.06
|
|
|
|
Obsoletes: perl-Pod-Escapes < 1.06
|
|
|
|
Provides: perl-Pod-Simple = 3.28
|
|
|
|
Obsoletes: perl-Pod-Simple < 3.28
|
2014-06-08 14:15:24 +02:00
|
|
|
Provides: perl-ExtUtils-ParseXS = 3.24
|
2014-06-02 17:21:22 +02:00
|
|
|
Obsoletes: perl-CPAN-Meta <= 2.140640
|
|
|
|
Obsoletes: perl-CPAN-Meta-YAML <= 0.012
|
2014-09-17 14:37:18 +02:00
|
|
|
Obsoletes: perl-ExtUtils-CBuilder <= 0.280217
|
2014-06-23 14:35:21 +02:00
|
|
|
Obsoletes: perl-ExtUtils-ParseXS < 3.24
|
2014-06-03 14:05:08 +02:00
|
|
|
Obsoletes: perl-IO-Socket-IP <= 0.29
|
2014-06-02 17:21:22 +02:00
|
|
|
Obsoletes: perl-Parse-CPAN-Meta <= 1.4414
|
2014-09-17 14:37:18 +02:00
|
|
|
Obsoletes: perl-PathTools <= 3.48
|
2014-06-03 14:05:08 +02:00
|
|
|
Obsoletes: perl-autodie <= 2.23
|
2014-06-23 14:35:21 +02:00
|
|
|
Provides: perl-Test-Harness = 3.30
|
|
|
|
Obsoletes: perl-Test-Harness < 3.30
|
2014-09-17 14:37:18 +02:00
|
|
|
Provides: perl-version = 0.9909
|
|
|
|
Obsoletes: perl-version < 0.9909
|
2006-12-19 00:17:26 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
perl - Practical Extraction and Report Language
|
|
|
|
|
|
|
|
Perl is optimized for scanning arbitrary text files, extracting
|
|
|
|
information from those text files, and printing reports based on that
|
|
|
|
information. It is also good for many system management tasks. Perl is
|
|
|
|
intended to be practical (easy to use, efficient, and complete) rather
|
|
|
|
than beautiful (tiny, elegant, and minimal).
|
|
|
|
|
|
|
|
Some of the modules available on CPAN can be found in the "perl"
|
|
|
|
series.
|
|
|
|
|
2007-05-17 00:31:32 +02:00
|
|
|
%package base
|
|
|
|
Summary: The Perl interpreter
|
2012-05-30 14:21:16 +02:00
|
|
|
Group: Development/Languages/Perl
|
2012-04-02 13:09:27 +02:00
|
|
|
Provides: perl-Digest
|
|
|
|
Provides: perl-Digest-MD5
|
2010-04-04 11:54:04 +02:00
|
|
|
%if "%version" != "%pversion"
|
|
|
|
Provides: perl-base = %pversion-%release
|
|
|
|
%endif
|
2009-01-08 14:35:08 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: perl-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2007-05-17 00:31:32 +02:00
|
|
|
|
|
|
|
%description base
|
|
|
|
perl - Practical Extraction and Report Language
|
|
|
|
|
|
|
|
Perl is optimized for scanning arbitrary text files, extracting
|
|
|
|
information from those text files, and printing reports based on that
|
2007-05-25 17:20:59 +02:00
|
|
|
information. It is also good for many system management tasks.
|
2007-05-17 00:31:32 +02:00
|
|
|
|
2007-05-25 17:20:59 +02:00
|
|
|
Perl is intended to be practical (easy to use, efficient, and complete)
|
|
|
|
rather than beautiful (tiny, elegant, and minimal).
|
|
|
|
|
|
|
|
This package contains only some basic modules and the perl binary
|
|
|
|
itself.
|
2007-05-17 00:31:32 +02:00
|
|
|
|
2008-03-14 17:55:08 +01:00
|
|
|
%package doc
|
|
|
|
Summary: Perl Documentation
|
2012-05-30 14:21:16 +02:00
|
|
|
Group: Development/Languages/Perl
|
2008-03-14 17:55:08 +01:00
|
|
|
Requires: perl = %{version}
|
|
|
|
Provides: perl:/usr/share/man/man3/CORE.3pm.gz
|
2009-12-20 21:11:48 +01:00
|
|
|
%if 0%{?suse_version} >= 1120
|
2010-01-14 16:56:23 +01:00
|
|
|
BuildArch: noarch
|
2009-12-20 21:11:48 +01:00
|
|
|
%endif
|
2013-06-11 15:10:30 +02:00
|
|
|
Provides: perl-macros = 2.0
|
|
|
|
Obsoletes: perl-macros < 2.0
|
2008-03-14 17:55:08 +01:00
|
|
|
|
|
|
|
%description doc
|
|
|
|
Perl man pages and pod files.
|
|
|
|
|
2006-12-19 00:17:26 +01:00
|
|
|
%prep
|
2012-11-16 09:47:08 +01:00
|
|
|
%setup -q -n perl-%{pversion}
|
2009-07-03 16:07:28 +02:00
|
|
|
cp -p %{S:3} .
|
2009-09-06 12:05:41 +02:00
|
|
|
%patch0
|
2011-05-16 16:18:55 +02:00
|
|
|
%patch2
|
2008-03-11 18:05:46 +01:00
|
|
|
%patch3
|
2008-05-07 21:53:03 +02:00
|
|
|
%patch4
|
2008-08-21 18:46:31 +02:00
|
|
|
%patch5
|
2010-06-02 18:06:44 +02:00
|
|
|
%patch6
|
2013-08-08 17:39:00 +02:00
|
|
|
%ifarch ppc ppc64
|
|
|
|
%patch8 -p1
|
|
|
|
%endif
|
2013-09-03 18:08:31 +02:00
|
|
|
%patch9
|
2014-03-25 13:21:43 +01:00
|
|
|
%patch11
|
2014-09-17 14:37:18 +02:00
|
|
|
%patch12
|
2006-12-19 00:17:26 +01:00
|
|
|
|
|
|
|
%build
|
2010-04-01 18:16:33 +02:00
|
|
|
cp -a lib savelib
|
2009-07-08 17:54:34 +02:00
|
|
|
export SUSE_ASNEEDED=0
|
2009-09-06 12:05:41 +02:00
|
|
|
export BZIP2_LIB=%{_libdir}
|
|
|
|
export BZIP2_INCLUDE=%{_includedir}
|
|
|
|
export BUILD_BZIP2=0
|
2006-12-19 00:17:26 +01:00
|
|
|
options="-Doptimize='$RPM_OPT_FLAGS -Wall -pipe'"
|
|
|
|
%ifarch alpha
|
|
|
|
# -mieee needed for bad alpha gcc optimization
|
|
|
|
options="-Doptimize='$RPM_OPT_FLAGS -Wall -pipe -mieee'"
|
|
|
|
%endif
|
|
|
|
%ifarch ppc ppc64
|
|
|
|
options="$options -Duse64bitint"
|
|
|
|
%endif
|
2013-09-03 18:08:31 +02:00
|
|
|
# this needs an installed perl, sorry
|
|
|
|
archname=%(perl -V:archname | sed "s!.*='!!;s!'.*!!")
|
|
|
|
test -n "$archname"
|
|
|
|
versionlist=
|
|
|
|
for v in %{?versionlist} ; do
|
|
|
|
test "$v" == none || versionlist="$versionlist $v/$archname $v"
|
|
|
|
done
|
|
|
|
test -n "$versionlist" || versionlist=none
|
|
|
|
versionlist=${versionlist# }
|
2008-04-12 20:11:59 +02:00
|
|
|
# always use glibc's setenv
|
|
|
|
options="$options -Accflags='-DPERL_USE_SAFE_PUTENV'"
|
2013-09-03 18:08:31 +02:00
|
|
|
options="$options -Dotherlibdirs=/usr/lib/perl5/site_perl -Dinc_version_list='$versionlist'"
|
2006-12-19 00:17:26 +01:00
|
|
|
chmod 755 ./configure.gnu
|
2012-01-13 14:51:12 +01:00
|
|
|
./configure.gnu --prefix=/usr -Dvendorprefix=/usr -Dinstallusrbinperl -Dusethreads -Di_db -Di_dbm -Di_ndbm -Di_gdbm -Dd_dbm_open -Duseshrplib=\'true\' $options
|
2010-07-30 12:31:05 +02:00
|
|
|
make %{?_smp_mflags}
|
2010-04-01 18:16:33 +02:00
|
|
|
cp -p libperl.so savelibperl.so
|
|
|
|
cp -p lib/Config.pm saveConfig.pm
|
|
|
|
cp -p lib/Config_heavy.pl saveConfig_heavy.pl
|
|
|
|
make clean > /dev/null
|
2006-12-19 00:17:26 +01:00
|
|
|
make clobber
|
2010-04-01 18:16:33 +02:00
|
|
|
rm -rf lib
|
|
|
|
mv savelib lib
|
2012-01-13 14:51:12 +01:00
|
|
|
./configure.gnu --prefix=/usr -Dvendorprefix=/usr -Dinstallusrbinperl -Dusethreads -Di_db -Di_dbm -Di_ndbm -Di_gdbm -Dd_dbm_open $options
|
2010-07-30 12:31:05 +02:00
|
|
|
make %{?_smp_mflags}
|
2008-03-11 18:05:46 +01:00
|
|
|
|
|
|
|
%check
|
2013-05-27 11:09:59 +02:00
|
|
|
%if !0%{?qemu_user_space_build}
|
2009-07-08 17:54:34 +02:00
|
|
|
export SUSE_ASNEEDED=0
|
2006-12-19 00:17:26 +01:00
|
|
|
make test
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
cp -a $RPM_BUILD_ROOT/usr/lib/perl5/site_perl $RPM_BUILD_ROOT/usr/lib/perl5/vendor_perl
|
|
|
|
cpa=`echo $RPM_BUILD_ROOT/usr/lib/perl5/*/*/CORE | sed -e 's@/CORE$@@'`
|
|
|
|
cp=`echo "$cpa" | sed -e 's@/[^/]*$@@'`
|
|
|
|
vpa=`echo $cpa | sed -e 's@/perl5/@/perl5/vendor_perl/@'`
|
|
|
|
vp=`echo "$vpa" | sed -e 's@/[^/]*$@@'`
|
|
|
|
install -d $vp/auto
|
|
|
|
install -d $vpa/auto
|
|
|
|
install -m 555 savelibperl.so $cpa/CORE/libperl.so
|
|
|
|
install -m 444 saveConfig.pm $cpa/Config.pm
|
|
|
|
install -m 444 saveConfig_heavy.pl $cpa/Config_heavy.pl
|
2008-01-12 02:01:53 +01:00
|
|
|
#install -d $RPM_BUILD_ROOT/var/adm/SuSEconfig/bin
|
|
|
|
#install -d $RPM_BUILD_ROOT/sbin/conf.d
|
|
|
|
#install -d $RPM_BUILD_ROOT/var/adm/fillup-templates
|
|
|
|
#install -m 755 SuSE/perllocal.SuSE $RPM_BUILD_ROOT/usr/lib/perl5
|
|
|
|
#install -m 755 SuSE/SuSEconfig.perl $RPM_BUILD_ROOT/sbin/conf.d
|
|
|
|
#install -m 755 SuSE/sysconfig.suseconfig-perl $RPM_BUILD_ROOT/var/adm/fillup-templates
|
2009-07-03 16:07:28 +02:00
|
|
|
# install macros.perl file
|
|
|
|
install -D -m 644 %{S:2} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.perl
|
2008-03-21 02:20:15 +01:00
|
|
|
pushd /usr/include
|
2008-03-14 17:55:08 +01:00
|
|
|
( rpm -ql glibc-devel | fgrep '.h'
|
2008-11-21 15:08:48 +01:00
|
|
|
find /usr/include/asm/ -name \*.h
|
|
|
|
find /usr/include/asm-generic -name \*.h
|
2010-05-25 10:16:22 +02:00
|
|
|
find /usr/include/linux -name \*.h
|
2008-03-14 17:55:08 +01:00
|
|
|
) | while read f; do
|
2008-03-21 02:20:15 +01:00
|
|
|
$RPM_BUILD_ROOT/usr/bin/perl -I$cp -I$cpa $RPM_BUILD_ROOT/usr/bin/h2ph -d $vpa ${f/\/usr\/include\//} || :
|
2006-12-19 00:17:26 +01:00
|
|
|
done
|
2008-03-21 02:20:15 +01:00
|
|
|
popd
|
2006-12-19 00:17:26 +01:00
|
|
|
d="`gcc -print-file-name=include`"
|
|
|
|
test -f "$d/stdarg.h" && (cd $d ; $RPM_BUILD_ROOT/usr/bin/perl -I$cp -I$cpa $RPM_BUILD_ROOT/usr/bin/h2ph -d $vpa stdarg.h stddef.h float.h)
|
2008-03-14 17:55:08 +01:00
|
|
|
# remove broken pm - we don't have the module
|
2015-02-11 17:53:14 +01:00
|
|
|
rm -f $RPM_BUILD_ROOT/usr/lib/perl5/*/Pod/Perldoc/ToTk.pm
|
2008-03-14 17:55:08 +01:00
|
|
|
# we don't need this in here
|
2015-02-11 17:53:14 +01:00
|
|
|
rm -f $RPM_BUILD_ROOT/usr/lib/perl5/*/*/CORE/libperl.a
|
2008-01-12 02:01:53 +01:00
|
|
|
#touch $RPM_BUILD_ROOT/usr/share/man/man3/perllocal.3pm
|
|
|
|
#touch $cpa/perllocal.pod
|
2007-11-12 18:41:25 +01:00
|
|
|
# test CVE-2007-5116
|
|
|
|
$RPM_BUILD_ROOT/usr/bin/perl -e '$r=chr(128)."\\x{100}";/$r/'
|
2013-09-03 18:08:31 +02:00
|
|
|
# test perl-regexp-refoverflow.diff, should not crash or hang
|
|
|
|
$RPM_BUILD_ROOT/usr/bin/perl -e 'eval "/\\6666666666/"'
|
2010-04-01 18:16:33 +02:00
|
|
|
%if 0
|
2007-05-17 00:31:32 +02:00
|
|
|
# remove unrelated target/os manpages
|
2015-02-11 17:53:14 +01:00
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/perlaix.1*
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/perlamiga.1*
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/perlapollo.1*
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/perlbeos.1*
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/perlbs2000.1*
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/perlcygwin.1*
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/perldgux.1*
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/perldos.1*
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/perlepoc.1*
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/perlfreebsd.1*
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/perlhpux.1*
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/perlhurd.1*
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/perlirix.1*
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/perlmachten.1*
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/perlmacos.1*
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/perlmacosx.1*
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/perlmint.1*
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/perlnetware.1*
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/perlopenbsd.1*
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/perlos2.1*
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/perlos390.1*
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/perlos400.1*
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/perlplan9.1*
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/perlqnx.1*
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/perlsolaris.1*
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/perltru64.1*
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/perluts.1*
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/perlvmesa.1*
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/perlvms.1*
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/perlvos.1*
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/perlwin32.1*
|
2007-05-17 00:31:32 +02:00
|
|
|
%endif
|
|
|
|
cat << EOF > perl-base-filelist
|
2010-04-01 18:16:33 +02:00
|
|
|
/usr/lib/perl5/%pversion/B/Deparse.pm
|
|
|
|
/usr/lib/perl5/%pversion/Carp.pm
|
|
|
|
/usr/lib/perl5/%pversion/Carp/
|
|
|
|
/usr/lib/perl5/%pversion/Class/
|
|
|
|
/usr/lib/perl5/%pversion/Config/
|
|
|
|
/usr/lib/perl5/%pversion/Digest.pm
|
|
|
|
/usr/lib/perl5/%pversion/Digest/
|
2014-04-10 12:55:48 +02:00
|
|
|
/usr/lib/perl5/%pversion/English.pm
|
2010-04-01 18:16:33 +02:00
|
|
|
/usr/lib/perl5/%pversion/Exporter.pm
|
|
|
|
/usr/lib/perl5/%pversion/Exporter/
|
|
|
|
/usr/lib/perl5/%pversion/File/
|
|
|
|
/usr/lib/perl5/%pversion/Getopt/
|
|
|
|
/usr/lib/perl5/%pversion/IPC/
|
|
|
|
/usr/lib/perl5/%pversion/Text/
|
|
|
|
/usr/lib/perl5/%pversion/Tie/Hash.pm
|
|
|
|
/usr/lib/perl5/%pversion/XSLoader.pm
|
|
|
|
/usr/lib/perl5/%pversion/warnings.pm
|
|
|
|
/usr/lib/perl5/%pversion/warnings/
|
|
|
|
/usr/lib/perl5/%pversion/AutoLoader.pm
|
|
|
|
/usr/lib/perl5/%pversion/FileHandle.pm
|
|
|
|
/usr/lib/perl5/%pversion/SelectSaver.pm
|
|
|
|
/usr/lib/perl5/%pversion/Symbol.pm
|
|
|
|
/usr/lib/perl5/%pversion/base.pm
|
|
|
|
/usr/lib/perl5/%pversion/bytes.pm
|
|
|
|
/usr/lib/perl5/%pversion/bytes_heavy.pl
|
|
|
|
/usr/lib/perl5/%pversion/constant.pm
|
|
|
|
/usr/lib/perl5/%pversion/fields.pm
|
|
|
|
/usr/lib/perl5/%pversion/feature.pm
|
|
|
|
/usr/lib/perl5/%pversion/integer.pm
|
|
|
|
/usr/lib/perl5/%pversion/locale.pm
|
|
|
|
/usr/lib/perl5/%pversion/overload.pm
|
2012-06-14 16:59:05 +02:00
|
|
|
/usr/lib/perl5/%pversion/overloading.pm
|
2010-04-01 18:16:33 +02:00
|
|
|
/usr/lib/perl5/%pversion/strict.pm
|
2012-06-14 16:59:05 +02:00
|
|
|
/usr/lib/perl5/%pversion/unicore/Heavy.pl
|
2010-04-01 18:16:33 +02:00
|
|
|
/usr/lib/perl5/%pversion/utf8.pm
|
|
|
|
/usr/lib/perl5/%pversion/utf8_heavy.pl
|
|
|
|
/usr/lib/perl5/%pversion/vars.pm
|
|
|
|
/usr/lib/perl5/%pversion/version.pm
|
|
|
|
/usr/lib/perl5/%pversion/*-linux-thread-multi*/Data/
|
|
|
|
/usr/lib/perl5/%pversion/*-linux-thread-multi*/Digest/
|
|
|
|
/usr/lib/perl5/%pversion/*-linux-thread-multi*/File/
|
|
|
|
/usr/lib/perl5/%pversion/*-linux-thread-multi*/List/
|
|
|
|
/usr/lib/perl5/%pversion/*-linux-thread-multi*/Scalar/
|
|
|
|
/usr/lib/perl5/%pversion/*-linux-thread-multi*/IO.pm
|
|
|
|
/usr/lib/perl5/%pversion/*-linux-thread-multi*/IO/Dir.pm
|
|
|
|
/usr/lib/perl5/%pversion/*-linux-thread-multi*/IO/File.pm
|
|
|
|
/usr/lib/perl5/%pversion/*-linux-thread-multi*/IO/Handle.pm
|
|
|
|
/usr/lib/perl5/%pversion/*-linux-thread-multi*/IO/Pipe.pm
|
|
|
|
/usr/lib/perl5/%pversion/*-linux-thread-multi*/IO/Poll.pm
|
|
|
|
/usr/lib/perl5/%pversion/*-linux-thread-multi*/IO/Seekable.pm
|
|
|
|
/usr/lib/perl5/%pversion/*-linux-thread-multi*/IO/Select.pm
|
|
|
|
/usr/lib/perl5/%pversion/*-linux-thread-multi*/IO/Socket.pm
|
|
|
|
/usr/lib/perl5/%pversion/*-linux-thread-multi*/IO/Socket/
|
|
|
|
/usr/lib/perl5/%pversion/*-linux-thread-multi*/B.pm
|
|
|
|
/usr/lib/perl5/%pversion/*-linux-thread-multi*/Config.pm
|
|
|
|
/usr/lib/perl5/%pversion/*-linux-thread-multi*/Config_heavy.pl
|
|
|
|
/usr/lib/perl5/%pversion/*-linux-thread-multi*/Cwd.pm
|
|
|
|
/usr/lib/perl5/%pversion/*-linux-thread-multi*/DynaLoader.pm
|
|
|
|
/usr/lib/perl5/%pversion/*-linux-thread-multi*/Errno.pm
|
|
|
|
/usr/lib/perl5/%pversion/*-linux-thread-multi*/Fcntl.pm
|
|
|
|
/usr/lib/perl5/%pversion/*-linux-thread-multi*/POSIX.pm
|
|
|
|
/usr/lib/perl5/%pversion/*-linux-thread-multi*/Socket.pm
|
|
|
|
/usr/lib/perl5/%pversion/*-linux-thread-multi*/attributes.pm
|
|
|
|
/usr/lib/perl5/%pversion/*-linux-thread-multi*/auto/Data/
|
|
|
|
/usr/lib/perl5/%pversion/*-linux-thread-multi*/auto/Digest/
|
|
|
|
/usr/lib/perl5/%pversion/*-linux-thread-multi*/auto/Fcntl/
|
|
|
|
/usr/lib/perl5/%pversion/*-linux-thread-multi*/auto/File/
|
|
|
|
/usr/lib/perl5/%pversion/*-linux-thread-multi*/auto/IO/
|
|
|
|
/usr/lib/perl5/%pversion/*-linux-thread-multi*/auto/List/
|
|
|
|
/usr/lib/perl5/%pversion/*-linux-thread-multi*/auto/Cwd/
|
|
|
|
/usr/lib/perl5/%pversion/*-linux-thread-multi*/auto/Socket/
|
|
|
|
/usr/lib/perl5/%pversion/*-linux-thread-multi*/auto/POSIX/POSIX.so
|
|
|
|
/usr/lib/perl5/%pversion/*-linux-thread-multi*/lib.pm
|
|
|
|
/usr/lib/perl5/%pversion/*-linux-thread-multi*/re.pm
|
2007-05-17 00:31:32 +02:00
|
|
|
EOF
|
2008-08-21 18:46:31 +02:00
|
|
|
{
|
|
|
|
sed -e 's/^/%%exclude /' perl-base-filelist
|
|
|
|
(cd $RPM_BUILD_ROOT
|
|
|
|
for i in usr/lib/perl5/*/pod/*; do
|
|
|
|
case $i in */perldiag.pod) ;;
|
|
|
|
*) echo "%%exclude /$i" ;;
|
|
|
|
esac
|
|
|
|
done)
|
|
|
|
} > perl-base-excludes
|
|
|
|
#%%post
|
|
|
|
#%%{fillup_only -an suseconfig}
|
2006-12-19 00:17:26 +01:00
|
|
|
|
2007-05-17 00:31:32 +02:00
|
|
|
%files base -f perl-base-filelist
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir /usr/lib/perl5
|
2010-04-01 18:16:33 +02:00
|
|
|
%dir /usr/lib/perl5/%pversion
|
|
|
|
%dir /usr/lib/perl5/%pversion/B
|
|
|
|
%dir /usr/lib/perl5/%pversion/*-linux-thread-multi*
|
|
|
|
%dir /usr/lib/perl5/%pversion/*-linux-thread-multi*/auto
|
|
|
|
%dir /usr/lib/perl5/%pversion/*-linux-thread-multi*/auto/POSIX
|
2007-05-17 00:31:32 +02:00
|
|
|
/usr/bin/perl
|
2010-04-01 18:16:33 +02:00
|
|
|
/usr/bin/perl%pversion
|
2007-05-17 00:31:32 +02:00
|
|
|
%doc /usr/share/man/man1/perl.1.gz
|
|
|
|
|
2008-03-15 12:01:54 +01:00
|
|
|
%files -f perl-base-excludes
|
2006-12-19 00:17:26 +01:00
|
|
|
%defattr(-,root,root)
|
2007-05-17 00:31:32 +02:00
|
|
|
%exclude /usr/bin/perl
|
2010-04-01 18:16:33 +02:00
|
|
|
%exclude /usr/bin/perl%pversion
|
2006-12-19 00:17:26 +01:00
|
|
|
/usr/bin/*
|
2007-05-17 00:31:32 +02:00
|
|
|
/usr/lib/perl5/*
|
2009-07-03 16:07:28 +02:00
|
|
|
%config %{_sysconfdir}/rpm/macros.perl
|
2008-01-12 02:01:53 +01:00
|
|
|
#/sbin/conf.d/SuSEconfig.perl
|
|
|
|
#/var/adm/fillup-templates/sysconfig.suseconfig-perl
|
|
|
|
#%ghost /usr/lib/perl*/*/*/perllocal.pod
|
|
|
|
#%ghost %doc /usr/share/man/man3/perllocal.3pm.gz
|
|
|
|
|
2008-03-14 17:55:08 +01:00
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root)
|
2009-07-03 16:07:28 +02:00
|
|
|
%doc README.macros
|
2008-03-14 17:55:08 +01:00
|
|
|
%exclude /usr/share/man/man1/perl.1.gz
|
2008-03-15 12:01:54 +01:00
|
|
|
%exclude /usr/lib/perl5/*/pod/perldiag.pod
|
2008-03-14 17:55:08 +01:00
|
|
|
%doc /usr/share/man/man1/*
|
|
|
|
%doc /usr/share/man/man3/*
|
|
|
|
%doc /usr/lib/perl5/*/pod
|
|
|
|
|
2007-03-29 00:57:43 +02:00
|
|
|
%changelog
|