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]

This commit is contained in:
Silvan Calarco 2024-01-06 08:30:46 +01:00
parent a5496dd23d
commit e9e88e0f1c

101
perl.spec
View File

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