!54 add build conditions to control installing systemtap
From: @zhouwenpei Reviewed-by: @overweight Signed-off-by: @overweight
This commit is contained in:
commit
5ac46102b8
25
perl.spec
25
perl.spec
@ -18,11 +18,13 @@
|
|||||||
|
|
||||||
%global perl_compat perl(:MODULE_COMPAT_5.34.0)
|
%global perl_compat perl(:MODULE_COMPAT_5.34.0)
|
||||||
|
|
||||||
|
%bcond_without systemtap
|
||||||
|
|
||||||
Name: perl
|
Name: perl
|
||||||
License: (GPL+ or Artistic) and (GPLv2+ or Artistic) and MIT and UCD and Public Domain and BSD
|
License: (GPL+ or Artistic) and (GPLv2+ or Artistic) and MIT and UCD and Public Domain and BSD
|
||||||
Epoch: 4
|
Epoch: 4
|
||||||
Version: %{perl_version}
|
Version: %{perl_version}
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: A highly capable, feature-rich programming language
|
Summary: A highly capable, feature-rich programming language
|
||||||
Url: https://www.perl.org/
|
Url: https://www.perl.org/
|
||||||
Source0: https://www.cpan.org/src/5.0/%{name}-%{version}.tar.xz
|
Source0: https://www.cpan.org/src/5.0/%{name}-%{version}.tar.xz
|
||||||
@ -37,7 +39,10 @@ Patch6: perl-5.35.1-Raise-version-number-in-ext-GDBM_File-GDBM_File.pm.patch
|
|||||||
Patch6000: backport-CVE-2021-36770.patch
|
Patch6000: backport-CVE-2021-36770.patch
|
||||||
|
|
||||||
BuildRequires: gcc bash findutils coreutils make tar procps bzip2-devel gdbm-devel perl-File-Compare perl-File-Find
|
BuildRequires: gcc bash findutils coreutils make tar procps bzip2-devel gdbm-devel perl-File-Compare perl-File-Find
|
||||||
BuildRequires: zlib-devel systemtap-sdt-devel perl-interpreter perl-generators
|
BuildRequires: zlib-devel perl-interpreter perl-generators
|
||||||
|
%if %{with systemtap}
|
||||||
|
BuildRequires: systemtap-sdt-devel
|
||||||
|
%endif
|
||||||
|
|
||||||
Requires: perl-libs = %{epoch}:%{version}-%{release}
|
Requires: perl-libs = %{epoch}:%{version}-%{release}
|
||||||
Requires: perl-version perl-threads perl-threads-shared perl-parent
|
Requires: perl-version perl-threads perl-threads-shared perl-parent
|
||||||
@ -92,7 +97,10 @@ This package is the shared library for perl.
|
|||||||
Summary: Development files for %{name}
|
Summary: Development files for %{name}
|
||||||
License: (GPL+ or Artistic) and UCD
|
License: (GPL+ or Artistic) and UCD
|
||||||
|
|
||||||
Requires: perl = %{epoch}:%{version}-%{release} system-rpm-config systemtap-sdt-devel
|
Requires: perl = %{epoch}:%{version}-%{release} system-rpm-config
|
||||||
|
%if %{with systemtap}
|
||||||
|
Requires: systemtap-sdt-devel
|
||||||
|
%endif
|
||||||
Requires: perl(ExtUtils::ParseXS) perl(Devel::PPPort)
|
Requires: perl(ExtUtils::ParseXS) perl(Devel::PPPort)
|
||||||
Requires: %perl_compat
|
Requires: %perl_compat
|
||||||
|
|
||||||
@ -133,7 +141,10 @@ sed -i '/\(bzip2\|zlib\)-src/d' MANIFEST
|
|||||||
-Dvendorarch="%{perl_vendor_libdir}" -Darchname="%{_arch}-%{_os}-thread-multi" \
|
-Dvendorarch="%{perl_vendor_libdir}" -Darchname="%{_arch}-%{_os}-thread-multi" \
|
||||||
-Dlibpth="/usr/local/lib64 /lib64 %{_prefix}/lib64" \
|
-Dlibpth="/usr/local/lib64 /lib64 %{_prefix}/lib64" \
|
||||||
-Duseshrplib -Dusethreads -Duseithreads -Ui_ndbm -Di_gdbm \
|
-Duseshrplib -Dusethreads -Duseithreads -Ui_ndbm -Di_gdbm \
|
||||||
-Dusedtrace='/usr/bin/dtrace' -Ubincompat5005 -Dusesitecustomize \
|
%if %{with systemtap}
|
||||||
|
-Dusedtrace='/usr/bin/dtrace' \
|
||||||
|
%endif
|
||||||
|
-Ubincompat5005 -Dusesitecustomize \
|
||||||
-Duselargefiles -Dd_semctl_semun -Di_db -Duse64bitint \
|
-Duselargefiles -Dd_semctl_semun -Di_db -Duse64bitint \
|
||||||
-Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio -Dscriptdir='%{_bindir}' \
|
-Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio -Dscriptdir='%{_bindir}' \
|
||||||
-Dinstallusrbinperl=n -Uversiononly -Dpager='/usr/bin/less -isr' \
|
-Dinstallusrbinperl=n -Uversiononly -Dpager='/usr/bin/less -isr' \
|
||||||
@ -488,6 +499,12 @@ make test_harness
|
|||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Mar 29 2022 zhouwenpei<zhouwenpei1@h-partners.com> 4:5.34.0-2
|
||||||
|
- Type:NA
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:add build conditions to control installing systemtap
|
||||||
|
|
||||||
* Fri Mar 18 2022 tianwei<tianwei12@h-partners.com> 4:5.34.0-1
|
* Fri Mar 18 2022 tianwei<tianwei12@h-partners.com> 4:5.34.0-1
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user