f4d17450 |
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\((VMS|Win32|BSD::|DB\\)$)
# unicore::Name - it's needed by perl, maybe problem of rpm
# FCGI is external dependency after install of perl-CGI, remove it during RC releases
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((VMS|BSD::|Win32|Tk|Mac::|Your::Module::Here|unicore::Name|FCGI) |
66b1679b |
# Filter dependencies on private modules. Generator:
# for F in $(find lib -type f); do perl -e '$/ = undef; $_ = <>; if (/^package #\R([\w:]*);/m) { print qq{|^perl\\\\($1\\\\)} }' "$F"; done
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Locale::Codes::Country_Retired\\)|^perl\\(Locale::Codes::LangFam_Retired\\)|^perl\\(Locale::Codes::Script_Retired\\)|^perl\\(Locale::Codes::LangExt_Codes\\)|^perl\\(Locale::Codes::LangFam_Codes\\)|^perl\\(Locale::Codes::Script_Codes\\)|^perl\\(Locale::Codes::Language_Codes\\)|^perl\\(Locale::Codes::LangExt_Retired\\)|^perl\\(Locale::Codes::Currency_Codes\\)|^perl\\(Locale::Codes::LangVar_Retired\\)|^perl\\(Locale::Codes::Language_Retired\\)|^perl\\(Locale::Codes::Country_Codes\\)|^perl\\(Locale::Codes::LangVar_Codes\\)|^perl\\(Locale::Codes::Currency_Retired\\) |
f4d17450 |
|
a572532b |
Summary: Practical Extraction and Report Language
Name: perl |
78a75439 |
Version: 5.24.1 |
cdd26197 |
Release: 3%{?dist} |
a572532b |
License: GPLv1+
URL: http://www.perl.org/
Group: Development/Languages
Vendor: VMware, Inc.
Distribution: Photon
Source0: http://www.cpan.org/src/5.0/%{name}-%{version}.tar.bz2 |
78a75439 |
%define sha1 perl=d43ac3d39686462f86eed35b3c298ace74f1ffa0 |
a572532b |
Provides: perl >= 0:5.003000
Provides: perl(getopts.pl)
Provides: /bin/perl |
cdd26197 |
BuildRequires: zlib-devel
BuildRequires: bzip2-devel
BuildRequires: gdbm-devel |
a572532b |
Requires: zlib
Requires: gdbm
Requires: glibc
Requires: libgcc |
f4d17450 |
%description
The Perl package contains the Practical Extraction and
Report Language.
%prep
%setup -q
sed -i 's/-fstack-protector/&-all/' Configure
%build |
66b1679b |
export BUILD_ZLIB=False
export BUILD_BZIP2=0 |
f4d17450 |
CFLAGS="%{_optflags}"
sh Configure -des \ |
a572532b |
-Dprefix=%{_prefix} \
-Dvendorprefix=%{_prefix} \
-Dman1dir=%{_mandir}/man1 \
-Dman3dir=%{_mandir}/man3 \
-Dpager=%{_bindir}"/less -isR" \
-Duseshrplib \
-Dusethreads \ |
f4d17450 |
-DPERL_RANDOM_DEVICE="/dev/erandom"
make VERBOSE=1 %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install |
66b1679b |
unset BUILD_ZLIB BUILD_BZIP2 |
821d89bf |
%check |
9ca25dd4 |
sed -i '/02zlib.t/d' MANIFEST
sed -i '/cz-03zlib-v1.t/d' MANIFEST
sed -i '/cz-06gzsetp.t/d' MANIFEST
sed -i '/porting\/podcheck.t/d' MANIFEST
make test TEST_SKIP_VERSION_CHECK=1 |
a572532b |
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig |
f4d17450 |
%files
%defattr(-,root,root)
%{_bindir}/*
%dir %{_libdir}/perl5
%dir %{_libdir}/perl5/%{version}
%{_libdir}/perl5/%{version}/*
%{_mandir}/*/*
%changelog |
cdd26197 |
* Wed Jul 05 2017 Xiaolin Li <xiaolinl@vmware.com> 5.24.1-3
- Rebuild perl after adding gdbm-devel package. |
9ca25dd4 |
* Thu Jun 15 2017 Chang Lee <changlee@vmware.com> 5.24.1-2
- Updated %check |
78a75439 |
* Mon Apr 3 2017 Robert Qi <qij@vmware.com> 5.24.1-1
- Update to 5.24.1. |
a572532b |
* Thu Oct 20 2016 Xiaolin Li <xiaolinl@vmware.com> 5.22.1-5
- CVE-2016-1238 patch from http://perl5.git.perl.org/perl.git/commit/cee96d52c39b1e7b36e1c62d38bcd8d86e9a41ab.
* Mon Oct 10 2016 ChangLee <changlee@vmware.com> 5.22.1-4
- Modified %check
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 5.22.1-3
- GA - Bump release of all rpms
* Thu Jan 26 2016 Anish Swaminathan <anishs@vmware.com> 5.22.1-2
- Enable threads
* Tue Jan 12 2016 Anish Swaminathan <anishs@vmware.com> 5.22.1-1
- Update version
* Thu Jun 4 2015 Touseef Liaqat <tliaqat@vmware.com> 5.18.2-2
- Provide /bin/perl.
* Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 5.18.2-1
- Initial build. First version |