diff --git a/perl-DBI.spec b/perl-DBI.spec index c22f8a2921107a4e331cc5f0102180c7848fc86a..b11cdf87b68312bf325e3619dcbb556eb6c85195 100644 --- a/perl-DBI.spec +++ b/perl-DBI.spec @@ -1,13 +1,4 @@ -%define anolis_release 2 -# According to documentation, module using Coro is just: -# A PROOF-OF-CONCEPT IMPLEMENTATION FOR EXPERIMENTATION. -# Omit Coro support on bootsrap bacause perl-DBI is pulled in by core -# perl-CPANPLUS. -%if %{defined perl_bootstrap} -%bcond_with perl_DBI_enables_coro -%else -%bcond_without perl_DBI_enables_coro -%endif +%define anolis_release 3 # Test with and suggest Clone Perl module for better multithreading %bcond_with perl_DBI_enables_Clone @@ -17,20 +8,12 @@ %bcond_with perl_DBI_enables_MLDBM # Run optional tests %bcond_with perl_DBI_enables_optional_test -# Test with and suggest SQL::Statement Perl module for more serialization -# formats -# SQL::Statement is optional, and it is in build-cycle with DBI -%if %{defined perl_bootstrap} -%bcond_with perl_DBI_enables_SQL_Statement -%else -%bcond_without perl_DBI_enables_SQL_Statement -%endif Name: perl-DBI Version: 1.643 Release: %{anolis_release}%{?dist} Summary: A database access API for perl -License: GPL+ or Artistic +License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: http://dbi.perl.org/ Source0: https://cpan.metacpan.org/authors/id/T/TI/TIMB/DBI-%{version}.tar.gz BuildRequires: coreutils @@ -50,11 +33,6 @@ BuildRequires: perl(base) BuildRequires: perl(constant) BuildRequires: perl(Carp) BuildRequires: perl(Config) -%if %{with perl_DBI_enables_coro} -# Coro Not needed by tests -# Coro::Handle not needed by tests -# Coro::Select not needed by tests -%endif BuildRequires: perl(Cwd) BuildRequires: perl(Data::Dumper) BuildRequires: perl(DynaLoader) @@ -89,10 +67,6 @@ BuildRequires: perl(DB_File) %if %{with perl_DBI_enables_MLDBM} BuildRequires: perl(MLDBM) %endif -# Do not build-require optional Params::Util to test the fall-back code -%if %{with perl_DBI_enables_SQL_Statement} -BuildRequires: perl(SQL::Statement) >= 1.402 -%endif # Tests BuildRequires: perl(blib) BuildRequires: perl(B) @@ -109,7 +83,6 @@ BuildRequires: perl(Test::Simple) >= 0.90 BuildRequires: perl(Test::Pod) >= 1.00 BuildRequires: perl(Test::Pod::Coverage) >= 1.04 %endif -Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %if %{with perl_DBI_enables_Clone} Suggests: perl(Clone) >= 0.34 %endif @@ -121,9 +94,6 @@ Requires: perl(Math::BigInt) %if %{with perl_DBI_enables_MLDBM} Suggests: perl(MLDBM) %endif -%if %{with perl_DBI_enables_SQL_Statement} -Suggests: perl(SQL::Statement) >= 1.402 -%endif # Filter unwanted dependencies %{?perl_default_filter} @@ -143,17 +113,6 @@ BuildArch: noarch %description doc The %{name}-doc package contains documentation files for %{name}. -%if %{with perl_DBI_enables_coro} -%package Coro -Summary: Asynchronous DBD::Gofer stream transport using Coro -Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) - -%description Coro -This is an experimental asynchronous DBD::Gofer stream transport for DBI -implemented on top of Coro. The BIG WIN from using Coro is that it enables -the use of existing DBI frameworks like DBIx::Class. -%endif - %prep %setup -q -n DBI-%{version} for F in lib/DBD/Gofer.pm; do @@ -167,10 +126,8 @@ for F in dbixs_rev.pl ex/corogofer.pl; do done chmod 0644 ex/* chmod 0755 dbixs_rev.pl -%if %{without perl_DBI_enables_coro} rm lib/DBD/Gofer/Transport/corostream.pm sed -i -e '/^lib\/DBD\/Gofer\/Transport\/corostream.pm$/d' MANIFEST -%endif # Remove RPC::Pl* reverse dependencies due to security concerns, # CVE-2013-7284, bug #1051110 for F in lib/Bundle/DBI.pm lib/DBD/Proxy.pm lib/DBI/ProxyServer.pm \ @@ -205,9 +162,6 @@ make test %{_bindir}/dbilogstrip %{perl_vendorarch}/*.p* %{perl_vendorarch}/DBD/ -%if %{with perl_DBI_enables_coro} -%exclude %{perl_vendorarch}/DBD/Gofer/Transport/corostream.pm -%endif %{perl_vendorarch}/DBI/ %{perl_vendorarch}/auto/DBI/ %{_mandir}/man1/*.1* @@ -216,13 +170,10 @@ make test %files doc %doc README.md -%if %{with perl_DBI_enables_coro} -%files Coro -%doc ex/corogofer.pl -%{perl_vendorarch}/DBD/Gofer/Transport/corostream.pm -%endif - %changelog +* Tue Feb 07 2023 Chunmei Xu - 1.643-3 +- rebuild with perl_bootstrap disabled + * Mon Jan 30 2023 Chunmei Xu - 1.643-2 - rebuild with perl 5.36.0