5 Commits

2 changed files with 147 additions and 56 deletions

10
macros.perl Normal file
View File

@ -0,0 +1,10 @@
# Perl specific macro definitions.
# To make use of these macros insert the following line into your spec file:
# %include %{_rpmconfigdir}/macros.perl
%__perl /usr/bin/perl
%perl_sitelib %(eval "`perl -V:installsitelib`"; echo $installsitelib)
%perl_sitearch %(eval "`perl -V:installsitearch`"; echo $installsitearch)
%perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)
%perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
%perl_archlib %(eval "`perl -V:installarchlib`"; echo $installarchlib)
%perl_privlib %(eval "`perl -V:installprivlib`"; echo $installprivlib)

193
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.36.0
Release: 2mamba Release: 2mamba
Epoch: 2 Epoch: 2
Summary: Practical Extraction and Report Language Summary: Practical Extraction and Report Language
@ -35,8 +35,9 @@ Group: Development/Libraries/Perl
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.perl.com URL: https://www.perl.com/
Source: http://www.cpan.org/src/%{MAJver}.0/perl-%{version}.tar.gz Source: http://www.cpan.org/src/%{MAJver}.0/perl-%{version}.tar.gz
Source1: macros.perl
Patch0: %{name}-5.10.1-norootcheck.patch Patch0: %{name}-5.10.1-norootcheck.patch
Patch1: %{name}-5.8.7-can_2005_0448.patch Patch1: %{name}-5.8.7-can_2005_0448.patch
Patch2: %{name}-5.8.7-can_2005_3962.patch Patch2: %{name}-5.8.7-can_2005_3962.patch
@ -46,8 +47,9 @@ 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
BuildRequires: libnsl-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: sed >= 4.1.4 BuildRequires: sed >= 4.1.4
BuildRequires: man-db BuildRequires: man-db
@ -67,38 +69,43 @@ Provides: perl(timelocal.pl)
#Provides: perl(locale) #Provides: perl(locale)
#Provides: perl(subs) #Provides: perl(subs)
Provides: perl(Carp::Heavy) Provides: perl(Carp::Heavy)
Obsoletes: perl-Test-Builder-Tester
Provides: perl-Archive-Tar Provides: perl-Archive-Tar
Obsoletes: perl-Archive-Tar Obsoletes: perl-Archive-Tar < 2:5.24
Provides: perl-Module-Build #Provides: perl-Module-Build
Obsoletes: perl-Module-Build #Obsoletes: perl-Module-Build < 2:5.24
Provides: perl-Pod-Escapes Provides: perl-Pod-Escapes
Obsoletes: perl-Pod-Escapes Obsoletes: perl-Pod-Escapes < 2:5.24
Provides: perl-Pod-Simple Provides: perl-Pod-Simple
Obsoletes: perl-Pod-Simple Obsoletes: perl-Pod-Simple < 2:5.24
Provides: perl-version Provides: perl-version
Obsoletes: perl-version Obsoletes: perl-version < 2:5.24
Provides: perl-ExtUtils-CBuilder Provides: perl-ExtUtils-CBuilder
Obsoletes: perl-ExtUtils-CBuilder Obsoletes: perl-ExtUtils-CBuilder < 2:5.24
Provides: perl-IO-Compress-Base Provides: perl-IO-Compress-Base
Obsoletes: perl-IO-Compress-Base Obsoletes: perl-IO-Compress-Base < 2:5.24
Provides: perl-Compress-Raw-Zlib Provides: perl-Compress-Raw-Zlib
Obsoletes: perl-Compress-Raw-Zlib Obsoletes: perl-Compress-Raw-Zlib < 2:5.24
Provides: perl-IO-Compress-Zlib Provides: perl-IO-Compress-Zlib
Obsoletes: perl-IO-Compress-Zlib Obsoletes: perl-IO-Compress-Zlib < 2:5.24
Provides: perl-Compress-Zlib Provides: perl-Compress-Zlib
Obsoletes: perl-Compress-Zlib Obsoletes: perl-Compress-Zlib < 2:5.24
Provides: perl-IO-Compress-Bzip2 Provides: perl-IO-Compress-Bzip2
Obsoletes: perl-IO-Compress-Bzip2 Obsoletes: perl-IO-Compress-Bzip2 < 2:5.24
Provides: perl-Compress-Raw-Bzip2 Provides: perl-Compress-Raw-Bzip2
Obsoletes: perl-Compress-Raw-Bzip2 Obsoletes: perl-Compress-Raw-Bzip2 < 2:5.24
Provides: perl-IO-Zlib Provides: perl-IO-Zlib
Obsoletes: perl-IO-Zlib Obsoletes: perl-IO-Zlib < 2:5.24
Provides: perl-IO-Socket-IP
Obsoletes: perl-IO-Socket-IP < 2:5.24
Provides: perl-Test-Tester
Obsoletes: perl-Test-Tester < 2:5.24
Provides: perl-Test-Builder-Tester Provides: perl-Test-Builder-Tester
Provides: perl-CGI Obsoletes: perl-Test-Builder-Tester < 2:5.24
Obsoletes: perl-CGI Provides: perl-ExtUtils-PL2Bat
Obsoletes: perl-ExtUtils-PL2Bat <= 0.005-1mamba
Provides: perl-Test-Simple
Obsoletes: perl-Test-Simple <= 1.302194-1mamba
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/perl-root
%description %description
Perl is a high-level programming language with roots in C, sed, awk and shell scripting. Perl is a high-level programming language with roots in C, sed, awk and shell scripting.
@ -130,29 +137,16 @@ 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 #:<< ___EOF
#%patch0 -p1 %global __requires_exclude ^perl\\(
#%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
%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 +190,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 +216,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}
@ -240,6 +233,8 @@ for f in Config.pm Config_heavy.pl CORE/config.h; do
%{buildroot}/usr/lib/perl5/%{version}/%{perl_host}-%{_os}-thread-multi/$f %{buildroot}/usr/lib/perl5/%{version}/%{perl_host}-%{_os}-thread-multi/$f
done done
install -D -m0644 %{SOURCE1} %{buildroot}%{_rpmmacrodir}/macros.perl
%clean %clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot} [ "%{buildroot}" != / ] && rm -rf %{buildroot}
rm %{_tmppath}/{perl-mainpkg,perl-develpkg} rm %{_tmppath}/{perl-mainpkg,perl-develpkg}
@ -249,14 +244,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,26 +263,28 @@ 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?/*
#% endif #% endif
%exclude %{_prefix}/lib/perl5/%{version}/%{perl_host}-%{_os}-thread-multi %exclude %{_prefix}/lib/perl5/%{version}/%{perl_host}-%{_os}-thread-multi
%exclude %{_prefix}/lib/perl5/%{version}/%{perl_host}-%{_os}-thread-multi/CORE
%files -n libperl %files -n libperl
%defattr(-,root,root) %defattr(-,root,root)
@ -297,7 +295,7 @@ rm %{_tmppath}/{perl-mainpkg,perl-develpkg}
%files -n perl-devel -f %{_tmppath}/perl-develpkg %files -n perl-devel -f %{_tmppath}/perl-develpkg
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/c2ph #%{_bindir}/c2ph
#%{_bindir}/dprofpp #%{_bindir}/dprofpp
%{_bindir}/enc2xs %{_bindir}/enc2xs
%{_bindir}/h2ph %{_bindir}/h2ph
@ -308,14 +306,97 @@ rm %{_tmppath}/{perl-mainpkg,perl-develpkg}
%{_bindir}/pl2pm %{_bindir}/pl2pm
%{_bindir}/pod2usage %{_bindir}/pod2usage
%{_bindir}/podchecker %{_bindir}/podchecker
%{_bindir}/podselect #%{_bindir}/podselect
%{_bindir}/pstruct #%{_bindir}/pstruct
%{_bindir}/streamzip
%{_bindir}/xsubpp %{_bindir}/xsubpp
%{_rpmmacrodir}/macros.perl
%doc Changes README %doc Changes README
%changelog %changelog
* Sat Apr 12 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 5.16.3-2mamba * Sat Apr 15 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 5.36.0-2mamba
- move libperl.so and %{perl_vendorarm} modules under libperl package - remove obsolete perl-Module-Build
* Sat May 28 2022 Automatic Build System <autodist@mambasoft.it> 5.36.0-1mamba
- automatic version update by autodist
* Sun Mar 13 2022 Automatic Build System <autodist@mambasoft.it> 5.34.1-1mamba
- automatic version update by autodist
* Mon Jan 10 2022 Automatic Build System <autodist@mambasoft.it> 5.34.0-1mamba
- automatic version update by autodist
* Sun Jan 24 2021 Automatic Build System <autodist@mambasoft.it> 5.32.1-1mamba
- automatic version update by autodist
* Fri Jun 26 2020 Automatic Build System <autodist@mambasoft.it> 5.32.0-1mamba
- automatic version update by autodist
* Wed Jun 03 2020 Automatic Build System <autodist@mambasoft.it> 5.30.3-1mamba
- automatic version update by autodist
* Sun Mar 15 2020 Automatic Build System <autodist@mambasoft.it> 5.30.2-1mamba
- automatic version update by autodist
* Fri Nov 22 2019 Automatic Build System <autodist@mambasoft.it> 5.30.1-1mamba
- automatic version update by autodist
* Thu May 23 2019 Automatic Build System <autodist@mambasoft.it> 5.30.0-1mamba
- automatic version update by autodist
* Sat Apr 20 2019 Automatic Build System <autodist@mambasoft.it> 5.28.2-1mamba
- automatic version update by autodist
* Fri Dec 07 2018 Automatic Build System <autodist@mambasoft.it> 5.28.1-1mamba
- automatic version update by autodist
* Mon Jun 25 2018 Automatic Build System <autodist@mambasoft.it> 5.28.0-1mamba
- automatic version update by autodist
* Sat Apr 21 2018 Automatic Build System <autodist@mambasoft.it> 5.26.2-1mamba
- automatic version update by autodist
* Wed Sep 27 2017 Automatic Build System <autodist@mambasoft.it> 5.26.1-1mamba
- automatic version update by autodist
* Tue Aug 08 2017 Automatic Build System <autodist@mambasoft.it> 5.26.0-1mamba
- automatic version update by autodist
* Wed Jan 25 2017 Automatic Build System <autodist@mambasoft.it> 5.24.1-1mamba
- automatic version update by autodist
* Sat Nov 05 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 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 <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 +520,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>