From e9e88e0f1ce01535b9f042a85955a46db5055b24 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 08:30:46 +0100 Subject: [PATCH] backport from perl 5.16.3 in devel: move libperl.so and %{perl_vendor} modules under libperl package [release 5.24.0-2mamba;Sat Nov 05 2016] --- perl.spec | 103 ++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 66 insertions(+), 37 deletions(-) diff --git a/perl.spec b/perl.spec index 4062a86..dff6c0b 100644 --- a/perl.spec +++ b/perl.spec @@ -27,7 +27,7 @@ # rpm -ba --define='bootstrap 1' perl.spec Name: perl -Version: 5.16.3 +Version: 5.24.0 Release: 2mamba Epoch: 2 Summary: Practical Extraction and Report Language @@ -46,7 +46,7 @@ Patch5: %{name}-5.10.1-cross_compile.patch License: GPL, Artistic ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel -BuildRequires: libdb51-devel +BuildRequires: libdb53-devel BuildRequires: libgdbm-devel ## AUTOBUILDREQ-END BuildRequires: sed >= 4.1.4 @@ -94,9 +94,11 @@ Provides: perl-Compress-Raw-Bzip2 Obsoletes: perl-Compress-Raw-Bzip2 Provides: perl-IO-Zlib Obsoletes: perl-IO-Zlib +Provides: perl-IO-Socket-IP +Obsoletes: perl-IO-Socket-IP +Provides: perl-Test-Tester +Obsoletes: perl-Test-Tester Provides: perl-Test-Builder-Tester -Provides: perl-CGI -Obsoletes: perl-CGI Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} BuildRoot: %{_tmppath}/perl-root @@ -130,29 +132,25 @@ You need the perl package installed on your system so that your system can handl This is the devel package for perl. +%debug_package + %prep %setup -q #-D -T -#:<< ___EOF -#%patch0 -p1 -#%patch1 -p1 -b .can_2005_0448 -%patch2 -p1 -b .can_2005_3962 -#%patch3 -p1 -#%patch4 -p1 -b .can_2007_5116 - -# Warning: don't replace perl with %{name} below -%define __perl_requires %{_builddir}/perl-%{version}/perl_requires.sh -# don't require any perl module -cat > perl_requires.sh << _EOF -#! /bin/sh -%{_prefix}/lib/rpm/find-requires %{buildroot} %{_target_cpu} | grep -v "perl" -_EOF - -chmod +x perl_requires.sh +%global __requires_exclude ^perl\\( +#:<< _EOF +## Warning: don't replace perl with %{name} below +#% define __perl_requires %{_builddir}/perl-%{version}/perl_requires.sh +## don't require any perl module +#cat > perl_requires.sh << _EOF +##! /bin/sh +#%{_prefix}/lib/rpm/find-requires %{buildroot} %{_target_cpu} | grep -v "perl" | grep -v "^$" +#_EOF +# +#chmod +x perl_requires.sh %build -#:<< ___EOF -cd %{_builddir}/%{name}-%{version} +#:<< _EOF #%if "%{_host}" != "%{_build}" ## unrepoducible ugly hacks to cross-compile perl #%{_build}-gcc -DPERL_CORE -c -fexpensive-optimizations -fomit-frame-pointer -O2 -std=c89 -O2 \ @@ -196,7 +194,6 @@ make test %endif %install -cd %{_builddir}/%{name}-%{version} [ "%{buildroot}" != / ] && rm -rf %{buildroot} #mv -f lib/Config.pm lib/Config.pm.orig #mv -f lib/Config.pm.4install lib/Config.pm @@ -223,7 +220,7 @@ find usr/ -type f -name *.h -printf "/%p\n" -or -name *.a -printf "/%p\n" | \ ) # add libperl.so symlink in /usr/lib -%ifarch x86_64 +%ifarch x86_64 aarch64 install -d %{buildroot}%{_libdir} %endif ln -s %{perl_root}/%{version}/%{full_arch}/CORE/libperl.so %{buildroot}%{_libdir} @@ -249,14 +246,15 @@ rm %{_tmppath}/{perl-mainpkg,perl-develpkg} %files -f %{_tmppath}/perl-mainpkg %defattr(-,root,root) -%{_bindir}/a2p -%{_bindir}/config_data +#%{_bindir}/a2p +#%{_bindir}/config_data %{_bindir}/corelist %{_bindir}/cpan -%{_bindir}/cpan2dist -%{_bindir}/cpanp -%{_bindir}/cpanp-run-perl -%{_bindir}/find2perl +#%{_bindir}/cpan2dist +#%{_bindir}/cpanp +#%{_bindir}/cpanp-run-perl +%{_bindir}/encguess +#%{_bindir}/find2perl %{_bindir}/instmodsh %{_bindir}/json_pp %{_bindir}/perl @@ -267,21 +265,22 @@ rm %{_tmppath}/{perl-mainpkg,perl-develpkg} %{_bindir}/perlivp %{_bindir}/perlthanks %{_bindir}/pod2html -%{_bindir}/pod2latex +#%{_bindir}/pod2latex %{_bindir}/pod2man %{_bindir}/pod2text %{_bindir}/prove -%{_bindir}/psed +#%{_bindir}/psed %{_bindir}/ptar %{_bindir}/ptardiff %{_bindir}/ptargrep -%{_bindir}/s2p +#%{_bindir}/s2p %{_bindir}/shasum #%{_bindir}/sperl #%attr(4711,root,root) %{_bindir}/sperl%{version} %{_bindir}/splain %{_bindir}/zipdetails #%{_bindir}/suidperl +%{_libdir}/libperl.so %dir %{perl_root} #% if "%{_host_cpu}" == "%{_build_cpu}" %{_mandir}/man?/* @@ -312,10 +311,40 @@ rm %{_tmppath}/{perl-mainpkg,perl-develpkg} %{_bindir}/pstruct %{_bindir}/xsubpp %doc Changes README - + %changelog -* Sat Apr 12 2014 Silvan Calarco 5.16.3-2mamba -- move libperl.so and %{perl_vendorarm} modules under libperl package +* Sat Nov 05 2016 Silvan Calarco 5.24.0-2mamba +- backport from perl 5.16.3 in devel: move libperl.so and %{perl_vendor} modules under libperl package + +* Tue May 10 2016 Automatic Build System 5.24.0-1mamba +- automatic version update by autodist + +* Sun May 01 2016 Automatic Build System 5.22.2-1mamba +- automatic version update by autodist + +* Mon Dec 14 2015 Automatic Build System 5.22.1-1mamba +- automatic version update by autodist + +* Wed Jul 01 2015 Automatic Build System 5.22.0-1mamba +- automatic version update by autodist + +* Sun Feb 15 2015 Automatic Build System 5.20.2-1mamba +- automatic version update by autodist + +* Mon Sep 15 2014 Automatic Build System 5.20.1-1mamba +- automatic version update by autodist + +* Sat Jun 07 2014 Automatic Build System 5.20.0-1mamba +- automatic version update by autodist + +* Tue Jan 14 2014 Automatic Build System 5.18.2-1mamba +- automatic version update by autodist + +* Tue Aug 13 2013 Automatic Build System 5.18.1-1mamba +- automatic version update by autodist + +* Sun May 19 2013 Automatic Build System 5.18.0-1mamba +- automatic version update by autodist * Mon Mar 18 2013 Automatic Build System 5.16.3-1mamba - update to 5.16.3 @@ -439,7 +468,7 @@ rm %{_tmppath}/{perl-mainpkg,perl-develpkg} * Mon Apr 28 2003 Mirko Cortillaro - added perl-base provide -* Wed Apr 17 2003 Mirko Cortillaro +* Thu Apr 17 2003 Mirko Cortillaro - removed Prefix definition * Wed Apr 16 2003 Mirko Cortillaro