2007-01-15 23:30:18 +00:00
|
|
|
#
|
2011-11-11 11:15:17 +00:00
|
|
|
# spec file for package perl-DBD-Pg
|
2007-01-15 23:30:18 +00:00
|
|
|
#
|
2025-04-28 14:37:28 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2007-01-15 23:30:18 +00:00
|
|
|
#
|
2008-09-12 16:09:17 +00:00
|
|
|
# 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.
|
|
|
|
|
2019-02-26 18:21:54 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 23:30:18 +00:00
|
|
|
#
|
|
|
|
|
2011-11-11 11:15:17 +00:00
|
|
|
|
2021-08-23 14:09:36 +00:00
|
|
|
%define cpan_name DBD-Pg
|
2007-01-15 23:30:18 +00:00
|
|
|
Name: perl-DBD-Pg
|
2024-01-04 15:09:10 +00:00
|
|
|
Version: 3.18.0
|
2017-08-30 05:48:34 +00:00
|
|
|
Release: 0
|
2019-02-26 18:21:54 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2022-08-12 06:19:47 +00:00
|
|
|
Summary: DBI PostgreSQL interface
|
2020-03-09 13:32:22 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2017-08-30 05:48:34 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/T/TU/TURNSTEP/%{cpan_name}-%{version}.tar.gz
|
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:13:19 +02:00
|
|
|
Source100: README.md
|
2010-04-06 20:55:32 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2017-08-30 05:48:34 +00:00
|
|
|
BuildRequires: perl(DBI) >= 1.614
|
|
|
|
BuildRequires: perl(Test::More) >= 0.88
|
|
|
|
BuildRequires: perl(version)
|
|
|
|
Requires: perl(DBI) >= 1.614
|
|
|
|
Requires: perl(version)
|
|
|
|
Recommends: perl(Module::Signature) >= 0.50
|
|
|
|
%{perl_requires}
|
|
|
|
# MANUAL BEGIN
|
2017-08-30 10:43:20 +00:00
|
|
|
BuildRequires: openssl-devel
|
2019-02-26 18:38:05 +00:00
|
|
|
BuildRequires: postgresql-devel >= 8.1
|
2020-03-09 13:33:00 +00:00
|
|
|
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150200
|
2019-02-26 18:38:05 +00:00
|
|
|
BuildRequires: postgresql-server-devel
|
|
|
|
%endif
|
2014-01-23 15:28:35 +00:00
|
|
|
# For the Testsuite
|
|
|
|
BuildRequires: postgresql-server
|
2017-08-30 05:48:34 +00:00
|
|
|
# MANUAL END
|
2007-01-15 23:30:18 +00:00
|
|
|
|
|
|
|
%description
|
2010-12-02 08:38:42 +00:00
|
|
|
DBD::Pg is a Perl module that works with the DBI module to provide access
|
|
|
|
to PostgreSQL databases.
|
2007-01-15 23:30:18 +00:00
|
|
|
|
|
|
|
%prep
|
2025-04-28 14:37:28 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{version} -p1
|
2007-01-15 23:30:18 +00:00
|
|
|
|
|
|
|
%build
|
2025-06-05 08:49:41 +00:00
|
|
|
# https://github.com/bucardo/dbdpg/issues/135
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags} -std=gnu11"
|
2021-08-23 14:09:36 +00:00
|
|
|
%make_build
|
2010-04-06 20:55:32 +00:00
|
|
|
|
|
|
|
%check
|
2025-06-05 08:49:41 +00:00
|
|
|
# https://github.com/bucardo/dbdpg/issues/143
|
|
|
|
rm t/09arrays.t
|
2025-04-28 14:37:28 +00:00
|
|
|
DBDPG_TEMPDIR=/tmp HARNESS_TIMER=1 HARNESS_VERBOSE=1 make test
|
2007-01-15 23:30:18 +00:00
|
|
|
|
|
|
|
%install
|
2010-04-06 20:55:32 +00:00
|
|
|
%perl_make_install
|
2007-01-15 23:30:18 +00:00
|
|
|
%perl_process_packlist
|
2010-04-06 20:55:32 +00:00
|
|
|
%perl_gen_filelist
|
2007-01-15 23:30:18 +00:00
|
|
|
|
2010-12-02 08:38:42 +00:00
|
|
|
%files -f %{name}.files
|
2020-05-11 14:10:29 +00:00
|
|
|
%doc Changes CONTRIBUTING.md README README.dev README.win32 TODO win32.mak
|
2007-01-15 23:30:18 +00:00
|
|
|
|
2008-04-21 00:01:18 +00:00
|
|
|
%changelog
|