update macros.perl with missing required definitions [release 5.24.4-6mamba;Mon Mar 08 2021]

This commit is contained in:
Silvan Calarco 2024-01-06 08:30:46 +01:00
parent c61450a176
commit 1a5c160305
2 changed files with 38 additions and 17 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)

View File

@ -28,7 +28,7 @@
Name: perl Name: perl
Version: 5.24.4 Version: 5.24.4
Release: 3mamba Release: 6mamba
Epoch: 2 Epoch: 2
Summary: Practical Extraction and Report Language Summary: Practical Extraction and Report Language
Group: Development/Libraries/Perl Group: Development/Libraries/Perl
@ -37,6 +37,7 @@ Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.perl.com URL: http://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
@ -69,35 +70,35 @@ Provides: perl(timelocal.pl)
Provides: perl(Carp::Heavy) Provides: perl(Carp::Heavy)
Obsoletes: perl-Test-Builder-Tester 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
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 Provides: perl-IO-Socket-IP
Obsoletes: perl-IO-Socket-IP Obsoletes: perl-IO-Socket-IP < 2:5.24
Provides: perl-Test-Tester Provides: perl-Test-Tester
Obsoletes: perl-Test-Tester Obsoletes: perl-Test-Tester < 2:5.24
Provides: perl-Test-Builder-Tester Provides: perl-Test-Builder-Tester
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
@ -134,7 +135,6 @@ This is the devel package for perl.
%prep %prep
%setup -q %setup -q
#-D -T
%global __requires_exclude ^perl\\( %global __requires_exclude ^perl\\(
#:<< _EOF #:<< _EOF
## Warning: don't replace perl with %{name} below ## Warning: don't replace perl with %{name} below
@ -148,7 +148,6 @@ This is the devel package for perl.
#chmod +x perl_requires.sh #chmod +x perl_requires.sh
%build %build
#:<< _EOF
#%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 \
@ -240,6 +239,8 @@ if [ "%{version}" == 5.24.4 ]; then
ln -s perl%{version} %{buildroot}%{_bindir}/perl5.24.0 ln -s perl%{version} %{buildroot}%{_bindir}/perl5.24.0
fi fi
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}
@ -285,6 +286,7 @@ rm %{_tmppath}/{perl-mainpkg,perl-develpkg}
%{_bindir}/zipdetails %{_bindir}/zipdetails
#%{_bindir}/suidperl #%{_bindir}/suidperl
%{_libdir}/libperl.so %{_libdir}/libperl.so
%{_rpmmacrodir}/macros.perl
%dir %{perl_root} %dir %{perl_root}
#% if "%{_host_cpu}" == "%{_build_cpu}" #% if "%{_host_cpu}" == "%{_build_cpu}"
%{_mandir}/man?/* %{_mandir}/man?/*
@ -317,6 +319,15 @@ rm %{_tmppath}/{perl-mainpkg,perl-develpkg}
%doc Changes README %doc Changes README
%changelog %changelog
* Mon Mar 08 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 5.24.4-6mamba
- update macros.perl with missing required definitions
* Mon Mar 08 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 5.24.4-5mamba
- fix macros.perl with rpm 4.16
* Sun Mar 07 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 5.24.4-4mamba
- provide rpm macros.perl removed from rpm 4.16
* Fri Feb 26 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 5.24.4-3mamba * Fri Feb 26 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 5.24.4-3mamba
- remove obsolete for perl-Module-Build - remove obsolete for perl-Module-Build