7
0
Files
perl-DBD-MariaDB/perl-DBD-MariaDB.spec

109 lines
3.5 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package perl-DBD-MariaDB
#
Accepting request 1278741 from devel:languages:perl:autoupdate - Remove perl-DBD-MariaDB-fix_ssl_connection_test.patch: (fixed upstream) - updated to 1.240.0 (1.24) see /usr/share/doc/packages/perl-DBD-MariaDB/Changes 1.24 2025-05-04 - Add a test for large BLOB with parameter - Fix Dave Labley's broken e-mail address - Stop parsing a column named "limits" as the LIMIT keyword (https://github.com/perl5-dbi/DBD-MariaDB/issues/208) - Various test fixes (e.g. no dead loop in t/87async.t, remembering the value of --testauthplugin for repeated Makefile.PL runs, support for the Embedded server, explicit disconnect after testing the connection) - Better handling of the Embedded server (e.g. fix mariadb_hostinfo and SQL_SERVER_NAME, no support for async queries and mariadb_max_allowed_packets, extended documentation of mariadb_embedded_options) - Add new Makefile.PL option --requireembsup (and a corresponding env variable DBD_MARIADB_REQUIREEMBSUP) to ensure the client library's support for the Embedded server - More support and fixes for new MySQL 8 features (mariadb_auto_reconnect for 8.0.24+, SSL options for MySQL 8.3.0+, bind params for 8.3.0+) - Documentation of empty versus undefined password - Stop calling mariadb_db_reconnect when changing $dbh attributes unless it's really needed - On MSWin32, non-socket connections do not use WINAPI HANDLE - Fix type (MEDIMUMBLOB -> MEDIUMBLOB) - Handle new SSL error messages in tests (https://github.com/perl5-dbi/DBD-MariaDB/issues/209) OBS-URL: https://build.opensuse.org/request/show/1278741 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-DBD-MariaDB?expand=0&rev=18
2025-05-23 18:13:26 +00:00
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define cpan_name DBD-MariaDB
Name: perl-DBD-MariaDB
Accepting request 1278741 from devel:languages:perl:autoupdate - Remove perl-DBD-MariaDB-fix_ssl_connection_test.patch: (fixed upstream) - updated to 1.240.0 (1.24) see /usr/share/doc/packages/perl-DBD-MariaDB/Changes 1.24 2025-05-04 - Add a test for large BLOB with parameter - Fix Dave Labley's broken e-mail address - Stop parsing a column named "limits" as the LIMIT keyword (https://github.com/perl5-dbi/DBD-MariaDB/issues/208) - Various test fixes (e.g. no dead loop in t/87async.t, remembering the value of --testauthplugin for repeated Makefile.PL runs, support for the Embedded server, explicit disconnect after testing the connection) - Better handling of the Embedded server (e.g. fix mariadb_hostinfo and SQL_SERVER_NAME, no support for async queries and mariadb_max_allowed_packets, extended documentation of mariadb_embedded_options) - Add new Makefile.PL option --requireembsup (and a corresponding env variable DBD_MARIADB_REQUIREEMBSUP) to ensure the client library's support for the Embedded server - More support and fixes for new MySQL 8 features (mariadb_auto_reconnect for 8.0.24+, SSL options for MySQL 8.3.0+, bind params for 8.3.0+) - Documentation of empty versus undefined password - Stop calling mariadb_db_reconnect when changing $dbh attributes unless it's really needed - On MSWin32, non-socket connections do not use WINAPI HANDLE - Fix type (MEDIMUMBLOB -> MEDIUMBLOB) - Handle new SSL error messages in tests (https://github.com/perl5-dbi/DBD-MariaDB/issues/209) OBS-URL: https://build.opensuse.org/request/show/1278741 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-DBD-MariaDB?expand=0&rev=18
2025-05-23 18:13:26 +00:00
Version: 1.240.0
Release: 0
Accepting request 1278741 from devel:languages:perl:autoupdate - Remove perl-DBD-MariaDB-fix_ssl_connection_test.patch: (fixed upstream) - updated to 1.240.0 (1.24) see /usr/share/doc/packages/perl-DBD-MariaDB/Changes 1.24 2025-05-04 - Add a test for large BLOB with parameter - Fix Dave Labley's broken e-mail address - Stop parsing a column named "limits" as the LIMIT keyword (https://github.com/perl5-dbi/DBD-MariaDB/issues/208) - Various test fixes (e.g. no dead loop in t/87async.t, remembering the value of --testauthplugin for repeated Makefile.PL runs, support for the Embedded server, explicit disconnect after testing the connection) - Better handling of the Embedded server (e.g. fix mariadb_hostinfo and SQL_SERVER_NAME, no support for async queries and mariadb_max_allowed_packets, extended documentation of mariadb_embedded_options) - Add new Makefile.PL option --requireembsup (and a corresponding env variable DBD_MARIADB_REQUIREEMBSUP) to ensure the client library's support for the Embedded server - More support and fixes for new MySQL 8 features (mariadb_auto_reconnect for 8.0.24+, SSL options for MySQL 8.3.0+, bind params for 8.3.0+) - Documentation of empty versus undefined password - Stop calling mariadb_db_reconnect when changing $dbh attributes unless it's really needed - On MSWin32, non-socket connections do not use WINAPI HANDLE - Fix type (MEDIMUMBLOB -> MEDIUMBLOB) - Handle new SSL error messages in tests (https://github.com/perl5-dbi/DBD-MariaDB/issues/209) OBS-URL: https://build.opensuse.org/request/show/1278741 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-DBD-MariaDB?expand=0&rev=18
2025-05-23 18:13:26 +00:00
# 1.24 -> normalize -> 1.240.0
%define cpan_version 1.24
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: MariaDB and MySQL driver for the Perl5 Database Interface (DBI)
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/P/PA/PALI/%{cpan_name}-%{cpan_version}.tar.gz
Source1: test-setup.sh
Source2: test-clean.sh
Source3: cpanspec.yml
2025-08-12 18:13:18 +02:00
Source100: README.md
Patch0: perl-DBD-MariaDB-fix_c_32x_test.patch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(DBI) >= 1.608
BuildRequires: perl(DBI::Const::GetInfoType)
Accepting request 1278741 from devel:languages:perl:autoupdate - Remove perl-DBD-MariaDB-fix_ssl_connection_test.patch: (fixed upstream) - updated to 1.240.0 (1.24) see /usr/share/doc/packages/perl-DBD-MariaDB/Changes 1.24 2025-05-04 - Add a test for large BLOB with parameter - Fix Dave Labley's broken e-mail address - Stop parsing a column named "limits" as the LIMIT keyword (https://github.com/perl5-dbi/DBD-MariaDB/issues/208) - Various test fixes (e.g. no dead loop in t/87async.t, remembering the value of --testauthplugin for repeated Makefile.PL runs, support for the Embedded server, explicit disconnect after testing the connection) - Better handling of the Embedded server (e.g. fix mariadb_hostinfo and SQL_SERVER_NAME, no support for async queries and mariadb_max_allowed_packets, extended documentation of mariadb_embedded_options) - Add new Makefile.PL option --requireembsup (and a corresponding env variable DBD_MARIADB_REQUIREEMBSUP) to ensure the client library's support for the Embedded server - More support and fixes for new MySQL 8 features (mariadb_auto_reconnect for 8.0.24+, SSL options for MySQL 8.3.0+, bind params for 8.3.0+) - Documentation of empty versus undefined password - Stop calling mariadb_db_reconnect when changing $dbh attributes unless it's really needed - On MSWin32, non-socket connections do not use WINAPI HANDLE - Fix type (MEDIMUMBLOB -> MEDIUMBLOB) - Handle new SSL error messages in tests (https://github.com/perl5-dbi/DBD-MariaDB/issues/209) OBS-URL: https://build.opensuse.org/request/show/1278741 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-DBD-MariaDB?expand=0&rev=18
2025-05-23 18:13:26 +00:00
BuildRequires: perl(Devel::CheckLib) >= 1.120
BuildRequires: perl(Test::Deep)
BuildRequires: perl(Test::More) >= 0.90
Requires: perl(DBI) >= 1.608
Provides: perl(DBD::MariaDB) = %{version}
%undefine __perllib_provides
%{perl_requires}
# MANUAL BEGIN
BuildRequires: libmariadb-devel
BuildRequires: mariadb
BuildRequires: zlib-devel
BuildRequires: perl(B)
BuildRequires: perl(CPAN::Meta::YAML)
BuildRequires: perl(Config)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Encode)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Temp)
BuildRequires: perl(FindBin)
BuildRequires: perl(Getopt::Long)
BuildRequires: perl(Net::SSLeay)
BuildRequires: perl(Proc::ProcessTable)
BuildRequires: perl(Storable)
BuildRequires: perl(TAP::Harness)
BuildRequires: perl(Test::Pod) >= 1.41
BuildRequires: perl(Time::HiRes)
BuildRequires: perl(bigint)
BuildRequires: perl(lib)
BuildRequires: perl(strict)
BuildRequires: perl(utf8)
BuildRequires: perl(vars)
BuildRequires: perl(warnings)
Requires: perl(DynaLoader)
Requires: perl(strict)
Requires: perl(warnings)
# MANUAL END
%description
*DBD::MariaDB* is the Perl5 Database Interface driver for MariaDB and MySQL
databases. In other words: DBD::MariaDB is an interface between the Perl
programming language and the MariaDB/MySQL programming API that comes with
the MariaDB/MySQL relational database management system. Most functions
provided by this programming API are supported. Some rarely used functions
are missing, mainly because no-one ever requested them.
%prep
%autosetup -n %{cpan_name}-%{cpan_version} -p1
%build
# fails to detect the paths since perl 5.32
perl Makefile.PL verbose INSTALLDIRS=vendor OPTIMIZE="%{optflags}" --libs="-L%{_libdir} -lmariadb" --cflags="-I%{_includedir}/mysql"
make %{?_smp_mflags}
%check
# Setup environment and start database
. %{SOURCE1}
HARNESS_OPTIONS=j4 make %{?_smp_mflags} test
# Stop database
. %{SOURCE2}
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc Changes Changes.historic
%license LICENSE
%changelog