Accepting request 36640 from devel:languages:perl
checked in (request 36640) OBS-URL: https://build.opensuse.org/request/show/36640 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl?expand=0&rev=28
This commit is contained in:
committed by
Git OBS Bridge
parent
2c58adaba8
commit
9307a41d8d
199
perl.spec
199
perl.spec
@@ -20,24 +20,24 @@
|
||||
|
||||
Name: perl
|
||||
Summary: The Perl interpreter
|
||||
Version: 5.11.99.RC1
|
||||
%define pversion 5.12.0
|
||||
Version: 5.10.1
|
||||
Release: 5
|
||||
License: Artistic License .. ; GPLv2+
|
||||
Group: Development/Languages/Perl
|
||||
AutoReqProv: on
|
||||
Url: http://www.perl.org/
|
||||
Source: perl-5.12.0-RC1.tar.bz2
|
||||
Source: perl-%{version}.tar.bz2
|
||||
Source1: %name-rpmlintrc
|
||||
Source2: macros.perl
|
||||
Source3: README.macros
|
||||
Source4: baselibs.conf
|
||||
Patch0: perl-%{pversion}.dif
|
||||
Patch0: perl-%{version}.dif
|
||||
Patch1: perl-gracefull-net-ftp.diff
|
||||
Patch2: perl-fix_dbmclose_call.patch
|
||||
Patch3: perl-regexp-refoverflow.diff
|
||||
Patch4: perl-nroff.diff
|
||||
Patch5: perl-netcmdutf8.diff
|
||||
Patch6: perl-threads.diff
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
PreReq: perl-base = %version
|
||||
#PreReq: %fillup_prereq
|
||||
@@ -45,10 +45,6 @@ BuildRequires: db-devel gdbm-devel libbz2-devel ncurses-devel zlib-devel
|
||||
#Requires: gzip # needed in SuSEconfig.perl
|
||||
Recommends: perl-doc = %version
|
||||
#
|
||||
%if "%version" != "%pversion"
|
||||
Provides: perl = %pversion-%release
|
||||
%endif
|
||||
Provides: perl(:MODULE_COMPAT_%pversion)
|
||||
Provides: perl-500
|
||||
Provides: perl-macros
|
||||
Obsoletes: perl-macros
|
||||
@@ -137,7 +133,7 @@ Authors:
|
||||
Larry Wall, Louis J. LaBash, Jr. <llabash@siue.edu>
|
||||
|
||||
%prep
|
||||
%setup -q -n perl-5.12.0-RC1
|
||||
%setup -q -n perl-5.10.1
|
||||
cp -p %{S:3} .
|
||||
%patch0
|
||||
%patch1
|
||||
@@ -145,9 +141,9 @@ cp -p %{S:3} .
|
||||
%patch3
|
||||
%patch4
|
||||
%patch5
|
||||
%patch6
|
||||
|
||||
%build
|
||||
cp -a lib savelib
|
||||
export SUSE_ASNEEDED=0
|
||||
export BZIP2_LIB=%{_libdir}
|
||||
export BZIP2_INCLUDE=%{_includedir}
|
||||
@@ -165,19 +161,20 @@ options="$options -Accflags='-DPERL_USE_SAFE_PUTENV'"
|
||||
chmod 755 ./configure.gnu
|
||||
./configure.gnu --prefix=/usr -Dvendorprefix=/usr -Dinstallusrbinperl -Dusethreads -Di_db -Di_dbm -Di_ndbm -Di_gdbm -Duseshrplib=\'true\' $options
|
||||
make %{?jobs:-j%jobs};
|
||||
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
|
||||
mv libperl.so savelibperl.so
|
||||
mv lib/Config.pm saveConfig.pm
|
||||
mv lib/Config_heavy.pl saveConfig_heavy.pl
|
||||
make clobber
|
||||
rm -rf lib
|
||||
mv savelib lib
|
||||
./configure.gnu --prefix=/usr -Dvendorprefix=/usr -Dinstallusrbinperl -Dusethreads -Di_db -Di_dbm -Di_ndbm -Di_gdbm $options
|
||||
make %{?jobs:-j%jobs};
|
||||
%ifnarch %arm
|
||||
|
||||
%check
|
||||
%ifnarch %arm
|
||||
export SUSE_ASNEEDED=0
|
||||
# delete broken File::Find test
|
||||
rm -f lib/File/Find/t/find.t
|
||||
# delete racy test
|
||||
rm -f t/op/getppid.t
|
||||
make test
|
||||
%endif
|
||||
|
||||
@@ -221,7 +218,7 @@ rm $RPM_BUILD_ROOT/usr/lib/perl5/*/*/CORE/libperl.a
|
||||
$RPM_BUILD_ROOT/usr/bin/perl -e '$r=chr(128)."\\x{100}";/$r/'
|
||||
# test perl-regexp-refoverflow.diff
|
||||
$RPM_BUILD_ROOT/usr/bin/perl -e '/\6666666666/'
|
||||
%if 0
|
||||
%if 1
|
||||
# remove unrelated target/os manpages
|
||||
rm $RPM_BUILD_ROOT/usr/share/man/man1/perlaix.1*
|
||||
rm $RPM_BUILD_ROOT/usr/share/man/man1/perlamiga.1*
|
||||
@@ -256,81 +253,81 @@ rm $RPM_BUILD_ROOT/usr/share/man/man1/perlvos.1*
|
||||
rm $RPM_BUILD_ROOT/usr/share/man/man1/perlwin32.1*
|
||||
%endif
|
||||
cat << EOF > perl-base-filelist
|
||||
/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/
|
||||
/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
|
||||
/usr/lib/perl5/%pversion/strict.pm
|
||||
/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/DynaLoader/
|
||||
/usr/lib/perl5/%pversion/*-linux-thread-multi*/auto/Socket/
|
||||
/usr/lib/perl5/%pversion/*-linux-thread-multi*/auto/POSIX/POSIX.bs
|
||||
/usr/lib/perl5/%pversion/*-linux-thread-multi*/auto/POSIX/POSIX.so
|
||||
/usr/lib/perl5/%pversion/*-linux-thread-multi*/auto/POSIX/autosplit.ix
|
||||
/usr/lib/perl5/%pversion/*-linux-thread-multi*/auto/POSIX/load_imports.al
|
||||
/usr/lib/perl5/%pversion/*-linux-thread-multi*/lib.pm
|
||||
/usr/lib/perl5/%pversion/*-linux-thread-multi*/re.pm
|
||||
/usr/lib/perl5/%version/Carp.pm
|
||||
/usr/lib/perl5/%version/Carp/
|
||||
/usr/lib/perl5/%version/Class/
|
||||
/usr/lib/perl5/%version/Config/
|
||||
/usr/lib/perl5/%version/Digest.pm
|
||||
/usr/lib/perl5/%version/Digest/
|
||||
/usr/lib/perl5/%version/Exporter.pm
|
||||
/usr/lib/perl5/%version/Exporter/
|
||||
/usr/lib/perl5/%version/File/
|
||||
/usr/lib/perl5/%version/Getopt/
|
||||
/usr/lib/perl5/%version/IPC/
|
||||
/usr/lib/perl5/%version/Text/
|
||||
/usr/lib/perl5/%version/Tie/Hash.pm
|
||||
/usr/lib/perl5/%version/warnings.pm
|
||||
/usr/lib/perl5/%version/warnings/
|
||||
/usr/lib/perl5/%version/AutoLoader.pm
|
||||
/usr/lib/perl5/%version/FileHandle.pm
|
||||
/usr/lib/perl5/%version/SelectSaver.pm
|
||||
/usr/lib/perl5/%version/Symbol.pm
|
||||
/usr/lib/perl5/%version/attributes.pm
|
||||
/usr/lib/perl5/%version/base.pm
|
||||
/usr/lib/perl5/%version/bytes.pm
|
||||
/usr/lib/perl5/%version/bytes_heavy.pl
|
||||
/usr/lib/perl5/%version/constant.pm
|
||||
/usr/lib/perl5/%version/fields.pm
|
||||
/usr/lib/perl5/%version/feature.pm
|
||||
/usr/lib/perl5/%version/integer.pm
|
||||
/usr/lib/perl5/%version/locale.pm
|
||||
/usr/lib/perl5/%version/overload.pm
|
||||
/usr/lib/perl5/%version/strict.pm
|
||||
/usr/lib/perl5/%version/utf8.pm
|
||||
/usr/lib/perl5/%version/utf8_heavy.pl
|
||||
/usr/lib/perl5/%version/vars.pm
|
||||
/usr/lib/perl5/%version/version.pm
|
||||
/usr/lib/perl5/%version/*-linux-thread-multi*/Data/
|
||||
/usr/lib/perl5/%version/*-linux-thread-multi*/Digest/
|
||||
/usr/lib/perl5/%version/*-linux-thread-multi*/File/
|
||||
/usr/lib/perl5/%version/*-linux-thread-multi*/List/
|
||||
/usr/lib/perl5/%version/*-linux-thread-multi*/Scalar/
|
||||
/usr/lib/perl5/%version/*-linux-thread-multi*/IO.pm
|
||||
/usr/lib/perl5/%version/*-linux-thread-multi*/IO/Dir.pm
|
||||
/usr/lib/perl5/%version/*-linux-thread-multi*/IO/File.pm
|
||||
/usr/lib/perl5/%version/*-linux-thread-multi*/IO/Handle.pm
|
||||
/usr/lib/perl5/%version/*-linux-thread-multi*/IO/Pipe.pm
|
||||
/usr/lib/perl5/%version/*-linux-thread-multi*/IO/Poll.pm
|
||||
/usr/lib/perl5/%version/*-linux-thread-multi*/IO/Seekable.pm
|
||||
/usr/lib/perl5/%version/*-linux-thread-multi*/IO/Select.pm
|
||||
/usr/lib/perl5/%version/*-linux-thread-multi*/IO/Socket.pm
|
||||
/usr/lib/perl5/%version/*-linux-thread-multi*/IO/Socket/
|
||||
/usr/lib/perl5/%version/*-linux-thread-multi*/B.pm
|
||||
/usr/lib/perl5/%version/*-linux-thread-multi*/B/Deparse.pm
|
||||
/usr/lib/perl5/%version/*-linux-thread-multi*/Config.pm
|
||||
/usr/lib/perl5/%version/*-linux-thread-multi*/Config_heavy.pl
|
||||
/usr/lib/perl5/%version/*-linux-thread-multi*/Cwd.pm
|
||||
/usr/lib/perl5/%version/*-linux-thread-multi*/DynaLoader.pm
|
||||
/usr/lib/perl5/%version/*-linux-thread-multi*/Errno.pm
|
||||
/usr/lib/perl5/%version/*-linux-thread-multi*/Fcntl.pm
|
||||
/usr/lib/perl5/%version/*-linux-thread-multi*/POSIX.pm
|
||||
/usr/lib/perl5/%version/*-linux-thread-multi*/Socket.pm
|
||||
/usr/lib/perl5/%version/*-linux-thread-multi*/XSLoader.pm
|
||||
/usr/lib/perl5/%version/*-linux-thread-multi*/auto/Data/
|
||||
/usr/lib/perl5/%version/*-linux-thread-multi*/auto/Digest/
|
||||
/usr/lib/perl5/%version/*-linux-thread-multi*/auto/Fcntl/
|
||||
/usr/lib/perl5/%version/*-linux-thread-multi*/auto/File/
|
||||
/usr/lib/perl5/%version/*-linux-thread-multi*/auto/IO/
|
||||
/usr/lib/perl5/%version/*-linux-thread-multi*/auto/List/
|
||||
/usr/lib/perl5/%version/*-linux-thread-multi*/auto/Cwd/
|
||||
/usr/lib/perl5/%version/*-linux-thread-multi*/auto/DynaLoader/
|
||||
/usr/lib/perl5/%version/*-linux-thread-multi*/auto/Socket/
|
||||
/usr/lib/perl5/%version/*-linux-thread-multi*/auto/POSIX/POSIX.bs
|
||||
/usr/lib/perl5/%version/*-linux-thread-multi*/auto/POSIX/POSIX.so
|
||||
/usr/lib/perl5/%version/*-linux-thread-multi*/auto/POSIX/autosplit.ix
|
||||
/usr/lib/perl5/%version/*-linux-thread-multi*/auto/POSIX/load_imports.al
|
||||
/usr/lib/perl5/%version/*-linux-thread-multi*/lib.pm
|
||||
/usr/lib/perl5/%version/*-linux-thread-multi*/re.pm
|
||||
EOF
|
||||
{
|
||||
sed -e 's/^/%%exclude /' perl-base-filelist
|
||||
@@ -347,19 +344,21 @@ EOF
|
||||
%files base -f perl-base-filelist
|
||||
%defattr(-,root,root)
|
||||
%dir /usr/lib/perl5
|
||||
%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
|
||||
%dir /usr/lib/perl5/%version
|
||||
%dir /usr/lib/perl5/%version/*-linux-thread-multi*
|
||||
%dir /usr/lib/perl5/%version/*-linux-thread-multi*/auto
|
||||
%dir /usr/lib/perl5/%version/*-linux-thread-multi*/B
|
||||
%dir /usr/lib/perl5/%version/*-linux-thread-multi*/auto/POSIX
|
||||
/usr/bin/perl
|
||||
/usr/bin/perl%pversion
|
||||
/usr/bin/perl%version
|
||||
/usr/bin/suidperl
|
||||
%doc /usr/share/man/man1/perl.1.gz
|
||||
|
||||
%files -f perl-base-excludes
|
||||
%defattr(-,root,root)
|
||||
%exclude /usr/bin/perl
|
||||
%exclude /usr/bin/perl%pversion
|
||||
%exclude /usr/bin/perl%version
|
||||
%exclude /usr/bin/suidperl
|
||||
%exclude /usr/lib/perl5/*/Unicode/*/*.txt
|
||||
%exclude /usr/lib/perl5/*/unicore/*.txt
|
||||
/usr/bin/*
|
||||
|
Reference in New Issue
Block a user