2020-08-07 06:17:52 +03:00
|
|
|
Summary: PostgreSQL database engine
|
|
|
|
Name: postgresql
|
2024-08-16 18:00:49 +03:00
|
|
|
Version: 14.13
|
2022-09-13 02:10:37 +03:00
|
|
|
Release: 1%{?dist}
|
2020-08-07 06:17:52 +03:00
|
|
|
License: PostgreSQL
|
|
|
|
Vendor: Microsoft Corporation
|
|
|
|
Distribution: Mariner
|
2020-11-04 03:14:02 +03:00
|
|
|
Group: Applications/Databases
|
|
|
|
URL: https://www.postgresql.org
|
2020-08-07 06:17:52 +03:00
|
|
|
Source0: https://ftp.postgresql.org/pub/source/v%{version}/%{name}-%{version}.tar.bz2
|
2020-11-04 03:14:02 +03:00
|
|
|
|
2020-08-07 06:17:52 +03:00
|
|
|
# Common libraries needed
|
|
|
|
BuildRequires: krb5-devel
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
BuildRequires: openldap
|
2020-11-04 03:14:02 +03:00
|
|
|
BuildRequires: openssl-devel
|
2020-08-07 06:17:52 +03:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: readline-devel
|
|
|
|
BuildRequires: tzdata
|
2020-11-04 03:14:02 +03:00
|
|
|
BuildRequires: zlib-devel
|
|
|
|
|
2020-12-11 06:42:17 +03:00
|
|
|
%if %{with_check}
|
|
|
|
BuildRequires: sudo
|
|
|
|
%endif
|
|
|
|
|
2020-11-04 03:14:02 +03:00
|
|
|
Requires: %{name}-libs = %{version}-%{release}
|
2020-08-07 06:17:52 +03:00
|
|
|
Requires: krb5
|
|
|
|
Requires: libxml2
|
|
|
|
Requires: openldap
|
|
|
|
Requires: openssl
|
|
|
|
Requires: readline
|
|
|
|
Requires: tzdata
|
2020-11-04 03:14:02 +03:00
|
|
|
Requires: zlib
|
2020-08-07 06:17:52 +03:00
|
|
|
|
|
|
|
%description
|
|
|
|
PostgreSQL is an object-relational database management system.
|
|
|
|
|
2024-02-29 01:02:31 +03:00
|
|
|
%package docs
|
|
|
|
Summary: Extra documentation for PostgreSQL
|
|
|
|
|
|
|
|
%description docs
|
|
|
|
The postgresql-docs package includes the documentation.
|
|
|
|
|
2020-08-07 06:17:52 +03:00
|
|
|
%package libs
|
2020-11-04 03:14:02 +03:00
|
|
|
Summary: Libraries for use with PostgreSQL
|
|
|
|
Group: Applications/Databases
|
2022-05-05 23:04:09 +03:00
|
|
|
# Mariner used to have libpq and libpq-devel as separate packages, following Fedora's packaging scheme,
|
|
|
|
# but this isn't needed for our use case and overcomplicates our packaging. So, let's ensure that
|
|
|
|
# (a) the names are provided for compatibility, and
|
|
|
|
# (b) we obsolete all versions published in Mariner 2.0's repositories (only libpq{,-devel}-12.2-3.cm2)
|
|
|
|
Provides: libpq = %{version}-%{release}
|
|
|
|
Obsoletes: libpq < 13
|
2020-08-07 06:17:52 +03:00
|
|
|
|
|
|
|
%description libs
|
|
|
|
The postgresql-libs package provides the essential shared libraries for any
|
|
|
|
PostgreSQL client program or interface. You will need to install this package
|
|
|
|
to use any other PostgreSQL package or any clients that need to connect to a
|
|
|
|
PostgreSQL server.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for postgresql.
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: postgresql = %{version}-%{release}
|
2022-05-05 23:04:09 +03:00
|
|
|
# See libs subpackage for explanation of the libpq-devel provides/obsoletes
|
|
|
|
Provides: libpq-devel = %{version}-%{release}
|
|
|
|
Obsoletes: libpq-devel < 13
|
2020-08-07 06:17:52 +03:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
The postgresql-devel package contains libraries and header files for
|
|
|
|
developing applications that use postgresql.
|
|
|
|
|
|
|
|
%prep
|
2024-02-29 01:02:31 +03:00
|
|
|
%autosetup -p1
|
2020-11-04 03:14:02 +03:00
|
|
|
|
2020-08-07 06:17:52 +03:00
|
|
|
%build
|
2024-02-29 01:02:31 +03:00
|
|
|
sed -i '/DEFAULT_PGSOCKET_DIR/s@/tmp@/run/postgresql@' src/include/pg_config_manual.h
|
|
|
|
|
2020-08-07 06:17:52 +03:00
|
|
|
./configure \
|
|
|
|
--enable-thread-safety \
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--with-ldap \
|
|
|
|
--with-libxml \
|
|
|
|
--with-openssl \
|
|
|
|
--with-gssapi \
|
|
|
|
--with-readline \
|
|
|
|
--with-system-tzdata=%{_datadir}/zoneinfo \
|
|
|
|
--docdir=%{_docdir}/postgresql
|
2024-02-29 01:02:31 +03:00
|
|
|
|
|
|
|
%make_build world
|
2020-08-07 06:17:52 +03:00
|
|
|
|
|
|
|
%install
|
2024-02-29 01:02:31 +03:00
|
|
|
%make_install install-world
|
2020-08-07 06:17:52 +03:00
|
|
|
|
|
|
|
# For postgresql 10+, commands are renamed
|
|
|
|
# Ref: https://wiki.postgresql.org/wiki/New_in_postgres_10
|
|
|
|
ln -sf pg_receivewal %{buildroot}%{_bindir}/pg_receivexlog
|
|
|
|
ln -sf pg_resetwal %{buildroot}%{_bindir}/pg_resetxlog
|
|
|
|
ln -sf pg_waldump %{buildroot}%{_bindir}/pg_xlogdump
|
|
|
|
%{_fixperms} %{buildroot}/*
|
|
|
|
|
2024-02-29 01:02:31 +03:00
|
|
|
# Remove anything related to Python 2. These have no need to be
|
|
|
|
# around as only Python 3 is supported.
|
|
|
|
rm -f %{buildroot}%{_pgdatadir}/extension/*plpython2u* \
|
|
|
|
%{buildroot}%{_pgdatadir}/extension/*plpythonu-* \
|
|
|
|
%{buildroot}%{_pgdatadir}/extension/*_plpythonu.control
|
|
|
|
|
|
|
|
# Remove currently unnecessary man pages.
|
|
|
|
rm -f %{buildroot}%{_mandir}/man1/* \
|
|
|
|
%{buildroot}%{_mandir}/man3/* \
|
|
|
|
%{buildroot}%{_mandir}/man7/*
|
|
|
|
|
2020-08-07 06:17:52 +03:00
|
|
|
%check
|
2024-02-29 01:02:31 +03:00
|
|
|
chown -Rv nobody:nogroup .
|
2020-08-07 06:17:52 +03:00
|
|
|
sudo -u nobody -s /bin/bash -c "PATH=$PATH make -k check"
|
|
|
|
|
2022-05-05 23:04:09 +03:00
|
|
|
%ldconfig_scriptlets
|
2020-11-04 03:14:02 +03:00
|
|
|
|
2020-08-07 06:17:52 +03:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%license COPYRIGHT
|
|
|
|
%{_bindir}/initdb
|
|
|
|
%{_bindir}/oid2name
|
2022-04-15 00:56:26 +03:00
|
|
|
%{_bindir}/pg_amcheck
|
2020-08-07 06:17:52 +03:00
|
|
|
%{_bindir}/pg_archivecleanup
|
|
|
|
%{_bindir}/pg_basebackup
|
|
|
|
%{_bindir}/pg_checksums
|
|
|
|
%{_bindir}/pg_controldata
|
|
|
|
%{_bindir}/pg_ctl
|
|
|
|
%{_bindir}/pg_receivewal
|
|
|
|
%{_bindir}/pg_receivexlog
|
|
|
|
%{_bindir}/pg_recvlogical
|
|
|
|
%{_bindir}/pg_resetwal
|
|
|
|
%{_bindir}/pg_resetxlog
|
|
|
|
%{_bindir}/pg_rewind
|
|
|
|
%{_bindir}/pg_test_fsync
|
|
|
|
%{_bindir}/pg_test_timing
|
|
|
|
%{_bindir}/pg_upgrade
|
2022-04-15 00:56:26 +03:00
|
|
|
%{_bindir}/pg_verifybackup
|
2020-08-07 06:17:52 +03:00
|
|
|
%{_bindir}/pg_waldump
|
|
|
|
%{_bindir}/pg_xlogdump
|
|
|
|
%{_bindir}/pgbench
|
|
|
|
%{_bindir}/postgres
|
|
|
|
%{_bindir}/postmaster
|
|
|
|
%{_bindir}/vacuumlo
|
|
|
|
%{_datadir}/postgresql/*
|
|
|
|
%{_libdir}/postgresql/*
|
|
|
|
%{_docdir}/postgresql/extension/*.example
|
|
|
|
%exclude %{_datadir}/postgresql/pg_service.conf.sample
|
|
|
|
%exclude %{_datadir}/postgresql/psqlrc.sample
|
|
|
|
|
2024-02-29 01:02:31 +03:00
|
|
|
%files docs
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_docdir}/postgresql/*
|
|
|
|
|
2020-08-07 06:17:52 +03:00
|
|
|
%files libs
|
|
|
|
%{_bindir}/clusterdb
|
|
|
|
%{_bindir}/createdb
|
|
|
|
%{_bindir}/createuser
|
|
|
|
%{_bindir}/dropdb
|
|
|
|
%{_bindir}/dropuser
|
|
|
|
%{_bindir}/ecpg
|
|
|
|
%{_bindir}/pg_config
|
|
|
|
%{_bindir}/pg_dump
|
|
|
|
%{_bindir}/pg_dumpall
|
|
|
|
%{_bindir}/pg_isready
|
|
|
|
%{_bindir}/pg_restore
|
|
|
|
%{_bindir}/psql
|
|
|
|
%{_bindir}/reindexdb
|
|
|
|
%{_bindir}/vacuumdb
|
|
|
|
%{_libdir}/libecpg*.so.*
|
|
|
|
%{_libdir}/libpgtypes*.so.*
|
|
|
|
%{_libdir}/libpq*.so.*
|
|
|
|
%{_libdir}/libpgcommon_shlib.a
|
|
|
|
%{_libdir}/libpgport_shlib.a
|
|
|
|
%{_datadir}/postgresql/pg_service.conf.sample
|
|
|
|
%{_datadir}/postgresql/psqlrc.sample
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/pkgconfig/*
|
|
|
|
%{_libdir}/libecpg*.so
|
|
|
|
%{_libdir}/libpgtypes*.so
|
|
|
|
%{_libdir}/libpq*.so
|
|
|
|
%{_libdir}/libpgcommon.a
|
|
|
|
%{_libdir}/libpgfeutils.a
|
|
|
|
%{_libdir}/libpgport.a
|
|
|
|
%{_libdir}/libpq.a
|
|
|
|
%{_libdir}/libecpg.a
|
|
|
|
%{_libdir}/libecpg_compat.a
|
|
|
|
%{_libdir}/libpgtypes.a
|
|
|
|
|
|
|
|
%changelog
|
2024-08-16 18:00:49 +03:00
|
|
|
* Mon Aug 12 2024 CBL-Mariner Servicing Account <cblmargh@microsoft.com> - 14.13-1
|
|
|
|
- Auto-upgrade to 14.13 - CVE-2024-7348
|
|
|
|
|
2024-05-20 09:20:24 +03:00
|
|
|
* Thu May 16 2024 CBL-Mariner Servicing Account <cblmargh@microsoft.com> - 14.12-1
|
|
|
|
- Auto-upgrade to 14.12 - CVE-2024-4317
|
|
|
|
|
2024-02-29 01:02:31 +03:00
|
|
|
* Tue Feb 27 2024 Thien Trung Vuong <cblmargh@microsoft.com> - 14.11-1
|
|
|
|
- Update to version 14.11 to fix CVE-2024-0985
|
|
|
|
- Added the 'docs' subpackage.
|
|
|
|
|
2023-12-30 00:11:23 +03:00
|
|
|
* Fri Dec 29 2023 Neha Agarwal <nehaagarwal@microsoft.com> - 14.10-1
|
|
|
|
- Upgrade to 14.10 to fix CVE-2023-5868, CVE-2023-5869 and CVE-2023-5870
|
|
|
|
|
2023-06-21 07:58:20 +03:00
|
|
|
* Tue Jun 20 2023 Bala <balakumaran.kannan@microsoft.com> - 14.8-1
|
|
|
|
- Upgrade to 14.8 to fix CVE-2023-2454, CVE-2023-2455 and CVE-2022-41862
|
|
|
|
|
2022-09-13 02:10:37 +03:00
|
|
|
* Wed Sep 07 2022 CBL-Mariner Servicing Account <cblmargh@microsoft.com> - 14.5-1
|
|
|
|
- Upgrade to 14.5
|
|
|
|
|
2022-05-05 23:04:09 +03:00
|
|
|
* Fri Apr 29 2022 Olivia Crain <oliviacrain@microsoft.com> - 14.2-2
|
|
|
|
- Add provides, obsoletes for libpq and libpq-devel packages
|
|
|
|
|
2022-04-15 00:56:26 +03:00
|
|
|
* Wed Apr 13 2022 Henry Beberman <henry.beberman@microsoft.com> - 14.2-1
|
|
|
|
- Update package version to resolve CVE-2021-23214 and CVE-2021-23222
|
|
|
|
- Add pg_verifybackup and pg_amcheck, remove pg_standby
|
|
|
|
|
2021-12-17 20:46:27 +03:00
|
|
|
* Thu Dec 16 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 12.7-2
|
|
|
|
- Removing the explicit %%clean stage.
|
|
|
|
|
2021-08-19 23:46:51 +03:00
|
|
|
* Fri Jun 11 2021 Henry Beberman <henry.beberman@microsoft.com> - 12.7-1
|
|
|
|
- Update to version 12.7 to resolve CVE-2021-32027.
|
|
|
|
|
2021-03-05 00:35:05 +03:00
|
|
|
* Tue Mar 02 2021 Neha Agarwal <nehaagarwal@microsoft.com> - 12.6-1
|
|
|
|
- Update package version to resolve CVE-2021-20229 and CVE-2021-3393.
|
|
|
|
|
2020-12-11 06:42:17 +03:00
|
|
|
* Wed Dec 09 2020 Andrew Phelps <anphel@microsoft.com> - 12.5-2
|
|
|
|
- Add sudo package to resolve test issue.
|
|
|
|
|
2020-11-24 03:48:59 +03:00
|
|
|
* Mon Nov 23 2020 Henry Beberman <henry.beberman@microsoft.com> - 12.5-1
|
|
|
|
- Upgrading to 12.5 to fix CVE-2020-25695 and CVE-2020-25694.
|
|
|
|
|
2020-11-04 03:14:02 +03:00
|
|
|
* Tue Nov 03 2020 Pawel Winogrodzki <pawelwi@microsoft.com> - 12.4-1
|
|
|
|
- Upgrading to 12.4 to fix CVE-2020-14349 and CVE-2020-14350.
|
|
|
|
|
|
|
|
* Sat May 09 2020 Nick Samson <nisamson@microsoft.com> - 12.1-3
|
2020-08-07 06:17:52 +03:00
|
|
|
- Added %%license line automatically
|
|
|
|
|
2020-11-04 03:14:02 +03:00
|
|
|
* Thu Mar 26 2020 Henry Beberman <henry.beberman@microsoft.com> - 12.1-2
|
|
|
|
- Manually run header generation.
|
|
|
|
|
|
|
|
* Fri Mar 13 2020 Paul Monson <paulmon@microsoft.com> - 12.1-1
|
|
|
|
- Update to version 12.1. License verified.
|
|
|
|
|
|
|
|
* Tue Sep 03 2019 Mateusz Malisz <mamalisz@microsoft.com> - 10.5-2
|
|
|
|
- Initial CBL-Mariner import from Photon (license: Apache2).
|
|
|
|
|
|
|
|
* Fri Sep 21 2018 Dweep Advani <dadvani@vmware.com> - 10.5-1
|
|
|
|
- Updated to version 10.5
|
|
|
|
|
|
|
|
* Tue Mar 27 2018 Dheeraj Shetty <dheerajs@vmware.com> - 9.6.8-1
|
|
|
|
- Updated to version 9.6.8 to fix CVE-2018-1058
|
|
|
|
|
|
|
|
* Mon Feb 12 2018 Dheeraj Shetty <dheerajs@vmware.com> - 9.6.7-1
|
|
|
|
- Updated to version 9.6.7
|
|
|
|
|
|
|
|
* Mon Nov 27 2017 Xiaolin Li <xiaolinl@vmware.com> - 9.6.6-1
|
|
|
|
- Updated to version 9.6.6
|
|
|
|
|
|
|
|
* Fri Sep 08 2017 Xiaolin Li <xiaolinl@vmware.com> - 9.6.5-1
|
|
|
|
- Updated to version 9.6.5
|
|
|
|
|
|
|
|
* Tue Aug 15 2017 Xiaolin Li <xiaolinl@vmware.com> - 9.6.4-1
|
|
|
|
- Updated to version 9.6.4
|
|
|
|
|
|
|
|
* Thu Aug 10 2017 Rongrong Qiu <rqiu@vmware.com> - 9.6.3-3
|
|
|
|
- add sleep 5 when initdb in make check for bug 1900371
|
|
|
|
|
|
|
|
* Wed Jul 05 2017 Divya Thaluru <dthaluru@vmware.com> - 9.6.3-2
|
|
|
|
- Added postgresql-devel
|
|
|
|
|
|
|
|
* Tue Jun 06 2017 Divya Thaluru <dthaluru@vmware.com> - 9.6.3-1
|
|
|
|
- Upgraded to 9.6.3
|
|
|
|
|
|
|
|
* Mon Apr 03 2017 Rongrong Qiu <rqiu@vmware.com> - 9.6.2-1
|
|
|
|
- Upgrade to 9.6.2 for Photon upgrade bump
|
|
|
|
|
|
|
|
* Thu Dec 15 2016 Xiaolin Li <xiaolinl@vmware.com> - 9.5.3-6
|
|
|
|
- Applied CVE-2016-5423.patch
|
|
|
|
|
|
|
|
* Thu Nov 24 2016 Alexey Makhalov <amakhalov@vmware.com> - 9.5.3-5
|
|
|
|
- Required krb5-devel.
|
|
|
|
|
|
|
|
* Mon Oct 03 2016 ChangLee <changLee@vmware.com> - 9.5.3-4
|
|
|
|
- Modified %check
|
|
|
|
|
|
|
|
* Thu May 26 2016 Xiaolin Li <xiaolinl@vmware.com> - 9.5.3-3
|
|
|
|
- Add tzdata to buildrequires and requires.
|
|
|
|
|
|
|
|
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> - 9.5.3-2
|
|
|
|
- GA - Bump release of all rpms
|
|
|
|
|
|
|
|
* Fri May 20 2016 Divya Thaluru <dthaluru@vmware.com> - 9.5.3-1
|
|
|
|
- Updated to version 9.5.3
|
|
|
|
|
|
|
|
* Wed Apr 13 2016 Michael Paquier <mpaquier@vmware.com> - 9.5.2-1
|
|
|
|
- Updated to version 9.5.2
|
|
|
|
|
|
|
|
* Tue Feb 23 2016 Xiaolin Li <xiaolinl@vmware.com> - 9.5.1-1
|
|
|
|
- Updated to version 9.5.1
|
|
|
|
|
|
|
|
* Thu Jan 21 2016 Xiaolin Li <xiaolinl@vmware.com> - 9.5.0-1
|
|
|
|
- Updated to version 9.5.0
|
|
|
|
|
|
|
|
* Thu Aug 13 2015 Divya Thaluru <dthaluru@vmware.com> - 9.4.4-1
|
|
|
|
- Update to version 9.4.4.
|
|
|
|
|
|
|
|
* Mon Jul 13 2015 Alexey Makhalov <amakhalov@vmware.com> - 9.4.1-2
|
|
|
|
- Exclude /usr/lib/debug
|
|
|
|
|
|
|
|
* Fri May 15 2015 Sharath George <sharathg@vmware.com> - 9.4.1-1
|
|
|
|
- Initial build. First version
|