Make BerkeleyDB support optional
This commit is contained in:
parent
dee564d443
commit
917c041e8e
25
perl.spec
25
perl.spec
@ -23,6 +23,8 @@
|
|||||||
# Optional features
|
# Optional features
|
||||||
# Run C++ tests
|
# Run C++ tests
|
||||||
%bcond_without perl_enables_cplusplus_test
|
%bcond_without perl_enables_cplusplus_test
|
||||||
|
# We can build without libdb (BerkeleyDB)
|
||||||
|
%bcond_without bdb
|
||||||
# We can bootstrap without gdbm
|
# We can bootstrap without gdbm
|
||||||
%bcond_without gdbm
|
%bcond_without gdbm
|
||||||
# Support for groff, bug #135101
|
# Support for groff, bug #135101
|
||||||
@ -108,7 +110,7 @@ License: GPL-1.0-or-later OR Artistic-1.0-Perl
|
|||||||
Epoch: %{perl_epoch}
|
Epoch: %{perl_epoch}
|
||||||
Version: %{perl_version}
|
Version: %{perl_version}
|
||||||
# release number must be even higher, because dual-lived modules will be broken otherwise
|
# release number must be even higher, because dual-lived modules will be broken otherwise
|
||||||
Release: 501%{?dist}
|
Release: 502%{?dist}
|
||||||
Summary: Practical Extraction and Report Language
|
Summary: Practical Extraction and Report Language
|
||||||
Url: https://www.perl.org/
|
Url: https://www.perl.org/
|
||||||
Source0: https://www.cpan.org/src/5.0/perl-%{perl_version}.tar.xz
|
Source0: https://www.cpan.org/src/5.0/perl-%{perl_version}.tar.xz
|
||||||
@ -204,7 +206,9 @@ BuildRequires: glibc-common
|
|||||||
# Build-require groff tools for populating %%Config correctly, bug #135101
|
# Build-require groff tools for populating %%Config correctly, bug #135101
|
||||||
BuildRequires: groff-base
|
BuildRequires: groff-base
|
||||||
%endif
|
%endif
|
||||||
|
%if %{with bdb}
|
||||||
BuildRequires: libdb-devel
|
BuildRequires: libdb-devel
|
||||||
|
%endif
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
%if !%{defined perl_bootstrap}
|
%if !%{defined perl_bootstrap}
|
||||||
BuildRequires: perl-interpreter
|
BuildRequires: perl-interpreter
|
||||||
@ -257,9 +261,11 @@ Requires: perl-Carp, perl-Class-Struct,
|
|||||||
Requires: perl-Compress-Raw-Bzip2, perl-Compress-Raw-Zlib,
|
Requires: perl-Compress-Raw-Bzip2, perl-Compress-Raw-Zlib,
|
||||||
Requires: perl-Config-Extensions, perl-Config-Perl-V, perl-constant,
|
Requires: perl-Config-Extensions, perl-Config-Perl-V, perl-constant,
|
||||||
Requires: perl-CPAN, perl-CPAN-Meta, perl-CPAN-Meta-Requirements,
|
Requires: perl-CPAN, perl-CPAN-Meta, perl-CPAN-Meta-Requirements,
|
||||||
Requires: perl-CPAN-Meta-YAML,
|
Requires: perl-CPAN-Meta-YAML, perl-Data-Dumper,
|
||||||
Requires: perl-Data-Dumper, perl-DB_File, perl-DBM_Filter,
|
%if %{with bdb}
|
||||||
Requires: perl-debugger, perl-deprecate,
|
Requires: perl-DB_File,
|
||||||
|
%endif
|
||||||
|
Requires: perl-DBM_Filter, perl-debugger, perl-deprecate,
|
||||||
Requires: perl-Devel-Peek, perl-Devel-PPPort, perl-Devel-SelfStubber,
|
Requires: perl-Devel-Peek, perl-Devel-PPPort, perl-Devel-SelfStubber,
|
||||||
Requires: perl-diagnostics, perl-Digest, perl-Digest-MD5, perl-Digest-SHA,
|
Requires: perl-diagnostics, perl-Digest, perl-Digest-MD5, perl-Digest-SHA,
|
||||||
Requires: perl-DirHandle,
|
Requires: perl-DirHandle,
|
||||||
@ -439,7 +445,9 @@ Provides: perl(unicore::Name)
|
|||||||
Provides: perl(utf8_heavy.pl)
|
Provides: perl(utf8_heavy.pl)
|
||||||
# utf8 and utf8_heavy.pl require Carp, re, strict, warnings, XSLoader
|
# utf8 and utf8_heavy.pl require Carp, re, strict, warnings, XSLoader
|
||||||
# For AnyDBM_File
|
# For AnyDBM_File
|
||||||
|
%if %{with bdb}
|
||||||
Suggests: perl(DB_File)
|
Suggests: perl(DB_File)
|
||||||
|
%endif
|
||||||
# XSLoader requires DynaLoder
|
# XSLoader requires DynaLoder
|
||||||
Requires: perl(DynaLoader)
|
Requires: perl(DynaLoader)
|
||||||
# Encode is loaded in BOOT section of PerlIO::encoding
|
# Encode is loaded in BOOT section of PerlIO::encoding
|
||||||
@ -1076,6 +1084,7 @@ structures correctly.
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{dual_life} || %{rebuild_from_scratch}
|
%if %{dual_life} || %{rebuild_from_scratch}
|
||||||
|
%if %{with bdb}
|
||||||
%package DB_File
|
%package DB_File
|
||||||
Summary: Perl5 access to Berkeley DB version 1.x
|
Summary: Perl5 access to Berkeley DB version 1.x
|
||||||
License: GPL-1.0-or-later OR Artistic-1.0-Perl
|
License: GPL-1.0-or-later OR Artistic-1.0-Perl
|
||||||
@ -1095,6 +1104,7 @@ provided by Berkeley DB version 1.x (if you have a newer version of DB, you
|
|||||||
will be limited to functionality provided by interface of version 1.x). The
|
will be limited to functionality provided by interface of version 1.x). The
|
||||||
interface defined here mirrors the Berkeley DB interface closely.
|
interface defined here mirrors the Berkeley DB interface closely.
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
%package DBM_Filter
|
%package DBM_Filter
|
||||||
Summary: Filter DBM keys and values
|
Summary: Filter DBM keys and values
|
||||||
@ -4348,7 +4358,9 @@ echo "RPM Build arch: %{_arch}"
|
|||||||
%endif
|
%endif
|
||||||
-Duselargefiles \
|
-Duselargefiles \
|
||||||
-Dd_semctl_semun \
|
-Dd_semctl_semun \
|
||||||
|
%if %{with bdb}
|
||||||
-Di_db \
|
-Di_db \
|
||||||
|
%endif
|
||||||
%if %{with gdbm}
|
%if %{with gdbm}
|
||||||
-Ui_ndbm \
|
-Ui_ndbm \
|
||||||
-Di_gdbm \
|
-Di_gdbm \
|
||||||
@ -5528,12 +5540,14 @@ popd
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{dual_life} || %{rebuild_from_scratch}
|
%if %{dual_life} || %{rebuild_from_scratch}
|
||||||
|
%if %{with bdb}
|
||||||
%files DB_File
|
%files DB_File
|
||||||
%{archlib}/DB_File.pm
|
%{archlib}/DB_File.pm
|
||||||
%dir %{archlib}/auto/DB_File
|
%dir %{archlib}/auto/DB_File
|
||||||
%{archlib}/auto/DB_File/DB_File.so
|
%{archlib}/auto/DB_File/DB_File.so
|
||||||
%{_mandir}/man3/DB_File*
|
%{_mandir}/man3/DB_File*
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
%files DBM_Filter
|
%files DBM_Filter
|
||||||
%{privlib}/DBM_Filter
|
%{privlib}/DBM_Filter
|
||||||
@ -7024,6 +7038,9 @@ popd
|
|||||||
|
|
||||||
# Old changelog entries are preserved in CVS.
|
# Old changelog entries are preserved in CVS.
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Oct 10 2023 Jitka Plesnikova <jplesnik@redhat.com> - 4:5.38.0-502
|
||||||
|
- Make BerkeleyDB support optional
|
||||||
|
|
||||||
* Wed Sep 27 2023 Jitka Plesnikova <jplesnik@redhat.com> - 4:5.38.0-501
|
* Wed Sep 27 2023 Jitka Plesnikova <jplesnik@redhat.com> - 4:5.38.0-501
|
||||||
- Fix locale when use embedding Perl in C (bug #2240458)
|
- Fix locale when use embedding Perl in C (bug #2240458)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user