|
|
@ -28,27 +28,56 @@
|
|
|
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Configuration for rpmbuild, might be specified by options
|
|
|
|
|
|
|
|
# like e.g. 'rpmbuild --define "runselftest 0"'.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# =============================================================================
|
|
|
|
|
|
|
|
# IMPORTANT NOTE: This spec file is maintained on two places -- in native
|
|
|
|
|
|
|
|
# Fedora repo [1] and in pgjdbc upstream [2]. Please, keep that in sync
|
|
|
|
|
|
|
|
# (manual effort!) so both Fedora and Upstream can benefit from automatic
|
|
|
|
|
|
|
|
# packaging CI, this is now done in [3] Copr project.
|
|
|
|
|
|
|
|
# [1] https://src.fedoraproject.org/rpms/postgresql-jdbc
|
|
|
|
|
|
|
|
# [2] https://github.com/pgjdbc/pgjdbc/tree/master/packaging/rpm
|
|
|
|
|
|
|
|
# [3] https://copr.fedorainfracloud.org/coprs/g/pgjdbc/pgjdbc-travis/
|
|
|
|
|
|
|
|
# ============================================================================
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%{!?runselftest:%global runselftest 1}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%global section devel
|
|
|
|
|
|
|
|
%global source_path pgjdbc/src/main/java/org/postgresql
|
|
|
|
|
|
|
|
|
|
|
|
Summary: JDBC driver for PostgreSQL
|
|
|
|
Summary: JDBC driver for PostgreSQL
|
|
|
|
Name: postgresql-jdbc
|
|
|
|
Name: postgresql-jdbc
|
|
|
|
Version: 42.2.14
|
|
|
|
Version: 42.2.28
|
|
|
|
Release: 3%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
License: BSD
|
|
|
|
License: BSD
|
|
|
|
URL: http://jdbc.postgresql.org/
|
|
|
|
URL: http://jdbc.postgresql.org/
|
|
|
|
|
|
|
|
|
|
|
|
Source0: https://repo1.maven.org/maven2/org/postgresql/postgresql/%{version}/postgresql-%{version}-src.tar.gz
|
|
|
|
Source0: https://repo1.maven.org/maven2/org/postgresql/postgresql/%{version}/postgresql-%{version}-jdbc-src.tar.gz
|
|
|
|
Patch0: postgresql-jdbc-CVE-2022-41946.patch
|
|
|
|
|
|
|
|
Patch1: postgresql-jdbc-CVE-2024-1597.patch
|
|
|
|
|
|
|
|
Provides: pgjdbc = %version-%release
|
|
|
|
Provides: pgjdbc = %version-%release
|
|
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
BuildRequires: java-devel >= 1.8
|
|
|
|
BuildRequires: maven-local
|
|
|
|
BuildRequires: maven-local
|
|
|
|
BuildRequires: java-comment-preprocessor
|
|
|
|
|
|
|
|
BuildRequires: properties-maven-plugin
|
|
|
|
|
|
|
|
BuildRequires: maven-enforcer-plugin
|
|
|
|
BuildRequires: maven-enforcer-plugin
|
|
|
|
BuildRequires: maven-plugin-bundle
|
|
|
|
BuildRequires: maven-plugin-bundle
|
|
|
|
BuildRequires: maven-plugin-build-helper
|
|
|
|
BuildRequires: classloader-leak-test-framework
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: mvn(com.ongres.scram:client)
|
|
|
|
BuildRequires: mvn(com.ongres.scram:client)
|
|
|
|
|
|
|
|
BuildRequires: mvn(org.apache.maven.surefire:surefire-junit-platform)
|
|
|
|
|
|
|
|
BuildRequires: mvn(org.junit.jupiter:junit-jupiter-api)
|
|
|
|
|
|
|
|
BuildRequires: mvn(org.junit.jupiter:junit-jupiter-engine)
|
|
|
|
|
|
|
|
BuildRequires: mvn(org.junit.jupiter:junit-jupiter-params)
|
|
|
|
|
|
|
|
BuildRequires: mvn(org.junit.vintage:junit-vintage-engine)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %runselftest
|
|
|
|
|
|
|
|
BuildRequires: postgresql-contrib
|
|
|
|
|
|
|
|
BuildRequires: postgresql-test-rpm-macros
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# gettext is only needed if we try to update translations
|
|
|
|
|
|
|
|
#BuildRequires: gettext
|
|
|
|
|
|
|
|
|
|
|
|
Obsoletes: %{name}-parent-poms < 42.2.2-2
|
|
|
|
Obsoletes: %{name}-parent-poms < 42.2.2-2
|
|
|
|
|
|
|
|
|
|
|
@ -67,13 +96,16 @@ This package contains the API Documentation for %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -c -q
|
|
|
|
%setup -c -q
|
|
|
|
%patch -P 0 -p1
|
|
|
|
|
|
|
|
%patch -P 1 -p2
|
|
|
|
mv postgresql-%{version}-jdbc-src/* .
|
|
|
|
|
|
|
|
|
|
|
|
# remove any binary libs
|
|
|
|
# remove any binary libs
|
|
|
|
find -type f \( -name "*.jar" -or -name "*.class" \) | xargs rm -f
|
|
|
|
find -type f \( -name "*.jar" -or -name "*.class" \) | xargs rm -f
|
|
|
|
|
|
|
|
|
|
|
|
%pom_xpath_remove "pom:plugin[pom:artifactId = 'maven-javadoc-plugin']"
|
|
|
|
# Build parent POMs in the same Maven call.
|
|
|
|
|
|
|
|
%pom_xpath_remove "pom:plugin[pom:artifactId = 'maven-shade-plugin']"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%pom_remove_plugin -r :maven-javadoc-plugin
|
|
|
|
|
|
|
|
|
|
|
|
# compat symlink: requested by dtardon (libreoffice), reverts part of
|
|
|
|
# compat symlink: requested by dtardon (libreoffice), reverts part of
|
|
|
|
# 0af97ce32de877 commit.
|
|
|
|
# 0af97ce32de877 commit.
|
|
|
@ -90,7 +122,33 @@ find -type f \( -name "*.jar" -or -name "*.class" \) | xargs rm -f
|
|
|
|
# different platforms don't build in the same minute. For now, rely on
|
|
|
|
# different platforms don't build in the same minute. For now, rely on
|
|
|
|
# upstream to have updated the translations files before packaging.
|
|
|
|
# upstream to have updated the translations files before packaging.
|
|
|
|
|
|
|
|
|
|
|
|
%mvn_build -f
|
|
|
|
# Include PostgreSQL testing methods and variables.
|
|
|
|
|
|
|
|
%if %runselftest
|
|
|
|
|
|
|
|
%postgresql_tests_init
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PGTESTS_LOCALE=C.UTF-8
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cat <<EOF > build.local.properties
|
|
|
|
|
|
|
|
server=localhost
|
|
|
|
|
|
|
|
port=$PGTESTS_PORT
|
|
|
|
|
|
|
|
database=test
|
|
|
|
|
|
|
|
username=test
|
|
|
|
|
|
|
|
password=test
|
|
|
|
|
|
|
|
privilegedUser=$PGTESTS_ADMIN
|
|
|
|
|
|
|
|
privilegedPassword=$PGTESTS_ADMINPASS
|
|
|
|
|
|
|
|
preparethreshold=5
|
|
|
|
|
|
|
|
loglevel=0
|
|
|
|
|
|
|
|
protocolVersion=0
|
|
|
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Start the local PG cluster.
|
|
|
|
|
|
|
|
%postgresql_tests_start
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
# -f is equal to -Dmaven.test.skip=true
|
|
|
|
|
|
|
|
opts="-f"
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%mvn_build $opts --xmvn-javadoc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
@ -107,42 +165,106 @@ find -type f \( -name "*.jar" -or -name "*.class" \) | xargs rm -f
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Wed Feb 28 2024 Zuzana Miklankova <zmiklank@redhat.com> - 42.2.14-3
|
|
|
|
* Wed Feb 28 2024 Zuzana Miklankova <zmiklank@redhat.com> - 42.2.28-1
|
|
|
|
- Fix CVE-2024-1597
|
|
|
|
- rebase to 42.2.28
|
|
|
|
|
|
|
|
- fix for CVE-2024-1597
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 03 2023 Zuzana Miklankova <zmiklank@redhat.com> - 42.2.27-1
|
|
|
|
|
|
|
|
- rebase to 42.2.27
|
|
|
|
|
|
|
|
- fix for CVE-2022-41946
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Oct 11 2022 Zuzana Miklankova <zmiklank@redhat.com> - 42.2.18-6
|
|
|
|
|
|
|
|
- fix for CVE-2022-31197
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com>
|
|
|
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 26 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 42.2.14-2
|
|
|
|
* Wed Jun 30 2020 Ondrej Dubaj <odubaj@redhat.com> - 42.2.18-4
|
|
|
|
- Rebuilt for MSVSphere 8.8
|
|
|
|
- remove unnecessary maven-plugin-* dependencies (#1976951)
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jan 09 2023 Zuzana Miklankova <zmiklank@redhat.com> - 42.2.14-2
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 42.2.18-3
|
|
|
|
- Fix CVE-2022-41946
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Dec 14 2021 Zuzana Miklankova <zmiklank@redhat.com> - 42.2.14-1
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 42.2.18-2
|
|
|
|
- Rebase on 42.2.14
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 22 2020 Ondrej Dubaj <odubaj@redhat.com> - 42.2.3-3
|
|
|
|
* Tue Oct 20 2020 Ondrej Dubaj <odubaj@redhat.com> - 42.2.18-1
|
|
|
|
- fixed XXE vulnerability unit test
|
|
|
|
- rebase to version 42.2.18
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jul 14 2020 Ondrej Dubaj <odubaj@redhat.com> - 42.2.3-2
|
|
|
|
* Wed Aug 26 2020 Ondrej Dubaj <odubaj@redhat.com> - 42.2.16-1
|
|
|
|
|
|
|
|
- rebased to version 42.2.16
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 24 2020 Ondrej Dubaj <odubaj@redhat.com> - 42.2.15-1
|
|
|
|
|
|
|
|
- rebased to version 42.2.15
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 24 2020 Ondrej Dubaj <odubaj@redhat.com> - 42.2.12-3
|
|
|
|
|
|
|
|
- fixed javadoc build problem + added missing dependencies
|
|
|
|
|
|
|
|
- remove SSPIClient for windows API
|
|
|
|
- fixed XXE vulnerability (CVE-2020-13692)
|
|
|
|
- fixed XXE vulnerability (CVE-2020-13692)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jul 11 2020 Jiri Vanek <jvanek@redhat.com> - 42.2.12-2
|
|
|
|
|
|
|
|
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed May 13 2020 Ondrej Dubaj <odubaj@redhat.com> - 42.2.12-1
|
|
|
|
|
|
|
|
- new upstream release + skip javadoc due to jdk-11
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Mar 16 2020 Ondrej Dubaj <odubaj@redhat.com> - 42.2.11-1
|
|
|
|
|
|
|
|
- new upstream release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Mar 02 2020 Ondrej Dubaj <odubaj@redhat.com> - 42.3.0-1
|
|
|
|
|
|
|
|
- new upstream release (rhbz#1800440)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 42.2.9-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Dec 13 2019 Ondrej Dubaj <odubaj@redhat.com> - 42.2.9-1
|
|
|
|
|
|
|
|
- new upstream release (rhbz#1782277)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Sep 20 2019 Pavel Raiskup <praiskup@redhat.com> - 42.2.8-1
|
|
|
|
|
|
|
|
- new upstream release (rhbz#1750766)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 42.2.6-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jun 25 2019 Jakub Janco <jjanco@redhat.com> - 42.2.6-1
|
|
|
|
|
|
|
|
- new version
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 42.2.5-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Nov 21 2018 Pavel Raiskup <praiskup@redhat.com> - 42.2.5-1
|
|
|
|
|
|
|
|
- new upstream release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Aug 03 2018 Pavel Raiskup <praiskup@redhat.com> - 42.2.4-1
|
|
|
|
|
|
|
|
- new upstream release (rhbz#1601193)
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Pavel Raiskup <praiskup@redhat.com> - 42.2.3-1
|
|
|
|
* Fri Jul 13 2018 Pavel Raiskup <praiskup@redhat.com> - 42.2.3-1
|
|
|
|
- new upstream release (rhbz#1600759)
|
|
|
|
- new upstream release (rhbz#1600759)
|
|
|
|
|
|
|
|
|
|
|
|
* Wed May 30 2018 Mikolaj Izdebski <mizdebsk@redhat.com> - 42.2.2-2
|
|
|
|
* Wed May 30 2018 Mikolaj Izdebski <mizdebsk@redhat.com> - 42.2.2-4
|
|
|
|
- Remove and obsolete parent-poms subpackage
|
|
|
|
- Remove and obsolete parent-poms subpackage
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Apr 20 2018 Pavel Raiskup <praiskup@redhat.com> - 42.2.2-2
|
|
|
|
* Fri Apr 20 2018 Pavel Raiskup <praiskup@redhat.com> - 42.2.2-3
|
|
|
|
- provide postgresql.jar, as that's the upstream's artifactId
|
|
|
|
- provide postgresql.jar, as that's the upstream's artifactId
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Apr 13 2018 Pavel Raiskup <praiskup@redhat.com> - 42.2.2-1
|
|
|
|
* Fri Apr 13 2018 Pavel Raiskup <praiskup@redhat.com> - 42.2.2-2
|
|
|
|
- rebase to latest upstream release
|
|
|
|
- BR postgresql-test-rpm-macros
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Mar 16 2018 Pavel Raiskup <praiskup@redhat.com> - 42.2.2-1
|
|
|
|
|
|
|
|
- new upstream release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 42.2.1-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 26 2018 Pavel Raiskup <praiskup@redhat.com> - 42.2.1-1
|
|
|
|
|
|
|
|
- new upstream release
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Apr 13 2018 Pavel Raiskup <praiskup@redhat.com> - 42.2.0-1
|
|
|
|
* Fri Jan 19 2018 Pavel Raiskup <praiskup@redhat.com> - 42.2.0-1
|
|
|
|
- rebase to the latest upstream release
|
|
|
|
- rebase to the latest upstream release
|
|
|
|
- nicer github source urls
|
|
|
|
- nicer github source urls
|
|
|
|
- sync with upstream spec
|
|
|
|
- sync with upstream spec
|
|
|
|
- use new postgresql testing macros (rawhide only)
|
|
|
|
- use new postgresql testing macros (rawhide only)
|
|
|
|
- depend on postgresql-test-rpm-macros
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Aug 23 2017 Pavel Raiskup <praiskup@redhat.com> - 42.1.4-1
|
|
|
|
* Wed Aug 23 2017 Pavel Raiskup <praiskup@redhat.com> - 42.1.4-1
|
|
|
|
- rebase to latest upstream release
|
|
|
|
- rebase to latest upstream release
|
|
|
|