Compare commits

...

No commits in common. 'c10-beta' and 'c9' have entirely different histories.
c10-beta ... c9

2
.gitignore vendored

@ -1 +1 @@
SOURCES/DBD-Pg-3.18.0.tar.gz
SOURCES/DBD-Pg-3.14.2.tar.gz

@ -1 +1 @@
c75f0667769ac7921c59ef4b4d44a249a3881e05 SOURCES/DBD-Pg-3.18.0.tar.gz
fa4a3107df9fffa984383502b6bed3b129e0f6c2 SOURCES/DBD-Pg-3.14.2.tar.gz

@ -3,11 +3,11 @@
Name: perl-DBD-Pg
Summary: A PostgreSQL interface for Perl
Version: 3.18.0
Version: 3.14.2
Release: 5%{?dist}
# Pg.pm, README: Points to directory which contains GPL-2.0-or-later and Artistic-1.0-Perl
# other files: Same as Perl (GPL-1.0-or-later OR Artistic-1.0-Perl)
License: GPL-2.0-or-later OR Artistic-1.0-Perl
# Pg.pm, README: Points to directory which contains GPLv2+ and Artistic
# other files: Same as Perl (GPL+ or Artistic)
License: GPLv2+ or Artistic
Source0: https://cpan.metacpan.org/authors/id/T/TU/TURNSTEP/DBD-Pg-%{version}.tar.gz
URL: https://metacpan.org/release/DBD-Pg
@ -25,23 +25,21 @@ BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(File::Spec)
BuildRequires: perl(lib)
BuildRequires: perl(strict)
BuildRequires: perl(vars)
BuildRequires: perl(warnings)
BuildRequires: libpq-devel
# Run-time:
BuildRequires: perl(constant)
# Prevent bug #443495
BuildRequires: perl(DBI) >= 1.614
BuildRequires: perl(DynaLoader)
BuildRequires: perl(Exporter)
BuildRequires: perl(if)
BuildRequires: perl(version)
BuildRequires: perl(XSLoader)
# Tests:
BuildRequires: perl(charnames)
BuildRequires: perl(Cwd)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Encode)
BuildRequires: perl(Fcntl)
BuildRequires: perl(File::Temp)
BuildRequires: perl(open)
BuildRequires: perl(POSIX)
BuildRequires: perl(Test::More) >= 0.88
@ -51,84 +49,35 @@ BuildRequires: perl(utf8)
BuildRequires: postgresql-server
%if %{with perl_DBD_Pg_enables_optional_test}
# Optional tests:
BuildRequires: perl(Encode)
BuildRequires: perl(File::Temp)
BuildRequires: perl(Time::Piece)
%endif
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(DBI) >= 1.614
%{?perl_default_filter}
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(DBD::Pg\\)$
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(DBI\\)$
# Filter modules bundled for tests
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_libexecdir}
%global __requires_exclude %{__requires_exclude}|^perl\\(App::Info.*\\)
%global __requires_exclude %{__requires_exclude}|^perl\\(dbdpg_test_setup.pl\\)
%description
DBD::Pg is a Perl module that works with the DBI module to provide access
to PostgreSQL databases.
%package tests
Summary: Tests for %{name}
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: perl-Test-Harness
Requires: perl(Test::Simple)
Requires: postgresql-server
%if %{with perl_DBD_Pg_enables_optional_test}
# Optional tests:
Requires: perl(Time::Piece)
%endif
%description tests
Tests from %{name}. Execute them
with "%{_libexecdir}/%{name}/test".
%prep
%setup -q -n DBD-Pg-%{version}
# Help generators to recognize Perl scripts
for F in t/*.t t/*.pl; do
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
chmod +x "$F"
done
%build
unset AUTOMATED_TESTING DBDPG_GCCDEBUG PERL_MM_USE_DEFAULT \
POSTGRES_HOME POSTGRES_INCLUDE POSTGRES_LIB
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PACKLIST=1 NO_PERLLOCAL=1
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}
%install
%{make_install}
find %{buildroot} -type f -name '*.bs' -empty -delete
%{_fixperms} %{buildroot}/*
# Install tests
mkdir -p %{buildroot}%{_libexecdir}/%{name}
cp -a t %{buildroot}%{_libexecdir}/%{name}
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
#!/bin/bash
set -e
# If variables undefined, package test will create it's own database.
unset DBI_DSN DBI_USER DBI_PASS
unset DBDPG_DEBUG DBDPG_INITDB DBDPG_NOCLEANUP DBDPG_TEST_ALWAYS_ENV \
DBDPG_TESTINITDB PGDATABASE PGINITDB POSTGRES_HOME POSTGRES_LIB \
TEST_OUTPUT TEST_SIGNATURE
# The tests write to temporary database which is placed in $DIR
DIR=$(mktemp -d)
pushd "$DIR"
cp -a %{_libexecdir}/%{name}/* ./
# When tests are run by root, 'postgres' is used as DBI_USER
# DBI_USER has to be able to write to the $DIR
if [ `id -u` -eq 0 ]; then
chown -hR postgres:postgres $DIR
fi
# Jobs can't be run in parallel
prove -I .
popd
rm -rf "$DIR"
EOF
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -delete
%{_fixperms} $RPM_BUILD_ROOT/*
%check
# Full test coverage requires a live PostgreSQL database (see the README file)
@ -148,74 +97,15 @@ make test
%{perl_vendorarch}/DBD/
%{perl_vendorarch}/auto/DBD/
%{perl_vendorarch}/Bundle/DBD/Pg.pm
%{_mandir}/man3/*DBD*.3*
%files tests
%{_libexecdir}/%{name}
%{_mandir}/man3/*.3*
%changelog
* Thu Aug 08 2024 Troy Dawson <tdawson@redhat.com> - 3.18.0-5
- Bump release for Aug 2024 java mass rebuild
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 3.18.0-4
- Bump release for June 2024 mass rebuild
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.18.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.18.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Thu Dec 07 2023 Jitka Plesnikova <jplesnik@redhat.com> - 3.18.0-1
- 3.18.0 bump (rhbz#2253383)
* Wed Oct 25 2023 Jitka Plesnikova <jplesnik@redhat.com> - 3.17.0-2
- Package tests
* Thu Aug 24 2023 Jitka Plesnikova <jplesnik@redhat.com> - 3.17.0-1
- 3.17.0 bump (rhbz#2234337)
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.16.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Tue Jul 11 2023 Jitka Plesnikova <jplesnik@redhat.com> - 3.16.3-2
- Perl 5.38 rebuild
* Wed Apr 05 2023 Jitka Plesnikova <jplesnik@redhat.com> - 3.16.3-1
- 3.16.3 bump
* Mon Mar 06 2023 Jitka Plesnikova <jplesnik@redhat.com> - 3.16.1-1
- 3.16.1 bump
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.16.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Wed Nov 16 2022 Ondřej Sloup <osloup@redhat.com> - 3.16.0-2
- Rebuild for new PostgreSQL 15
* Mon Aug 08 2022 Jitka Plesnikova <jplesnik@redhat.com> - 3.16.0-1
- 3.16.0 bump
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.15.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Tue May 31 2022 Jitka Plesnikova <jplesnik@redhat.com> - 3.15.1-2
- Perl 5.36 rebuild
* Mon Feb 21 2022 Jitka Plesnikova <jplesnik@redhat.com> - 3.15.1-1
- 3.15.1 bump
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.15.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.15.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Tue May 25 2021 Jitka Plesnikova <jplesnik@redhat.com> - 3.15.0-1
- 3.15.0 bump
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 3.14.2-5
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 3.14.2-4
- Perl 5.34 rebuild
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 3.14.2-4
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Mon Feb 08 2021 Pavel Raiskup <praiskup@redhat.com> - 3.14.2-3
- rebuild for libpq ABI fix rhbz#1908268

Loading…
Cancel
Save