add build conditions to control installing systemtap
This commit is contained in:
parent
6793c10dfd
commit
d6eb680e60
25
perl.spec
25
perl.spec
@ -18,11 +18,13 @@
|
||||
|
||||
%global perl_compat perl(:MODULE_COMPAT_5.34.0)
|
||||
|
||||
%bcond_without systemtap
|
||||
|
||||
Name: perl
|
||||
License: (GPL+ or Artistic) and (GPLv2+ or Artistic) and MIT and UCD and Public Domain and BSD
|
||||
Epoch: 4
|
||||
Version: %{perl_version}
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: A highly capable, feature-rich programming language
|
||||
Url: https://www.perl.org/
|
||||
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
|
||||
|
||||
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-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}
|
||||
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_compat
|
||||
|
||||
@ -133,7 +141,10 @@ sed -i '/\(bzip2\|zlib\)-src/d' MANIFEST
|
||||
-Dvendorarch="%{perl_vendor_libdir}" -Darchname="%{_arch}-%{_os}-thread-multi" \
|
||||
-Dlibpth="/usr/local/lib64 /lib64 %{_prefix}/lib64" \
|
||||
-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 \
|
||||
-Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio -Dscriptdir='%{_bindir}' \
|
||||
-Dinstallusrbinperl=n -Uversiononly -Dpager='/usr/bin/less -isr' \
|
||||
@ -488,6 +499,12 @@ make test_harness
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%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
|
||||
- Type:bugfix
|
||||
- ID:NA
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user