pgaudit16: new addition
repmgr16: new addition
Change-Id: I4bd865efe7617337323c366a7075bb41f6242ad1
Signed-off-by: Shreenidhi Shedi <sshedi@vmware.com>
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/c/photon/+/22356
Reviewed-by: Shreenidhi Shedi <shreenidhi.shedi@broadcom.com>
Reviewed-by: Tapas Kundu <tkundu@vmware.com>
Tested-by: Shreenidhi Shedi <shreenidhi.shedi@broadcom.com>
| ... | ... |
@@ -3,7 +3,7 @@ |
| 3 | 3 |
Summary: The Apache Portable Runtime Utility Library |
| 4 | 4 |
Name: apr-util |
| 5 | 5 |
Version: 1.6.3 |
| 6 |
-Release: 2%{?dist}
|
|
| 6 |
+Release: 3%{?dist}
|
|
| 7 | 7 |
License: Apache License 2.0 |
| 8 | 8 |
URL: https://apr.apache.org |
| 9 | 9 |
Group: System Environment/Libraries |
| ... | ... |
@@ -19,7 +19,7 @@ BuildRequires: openssl-devel |
| 19 | 19 |
BuildRequires: nss-devel |
| 20 | 20 |
BuildRequires: expat-devel |
| 21 | 21 |
BuildRequires: openldap-devel |
| 22 |
-BuildRequires: postgresql15-devel |
|
| 22 |
+BuildRequires: postgresql16-devel |
|
| 23 | 23 |
|
| 24 | 24 |
Requires: apr |
| 25 | 25 |
Requires: openssl |
| ... | ... |
@@ -55,7 +55,7 @@ This package provides the LDAP support for the %{name}.
|
| 55 | 55 |
Group: Development/Libraries |
| 56 | 56 |
Summary: APR utility library PostgreSQL DBD driver |
| 57 | 57 |
Requires: %{name} = %{version}-%{release}
|
| 58 |
-Requires: (postgresql15 or postgresql14 or postgresql13) |
|
| 58 |
+Requires: (postgresql16 or postgresql15 or postgresql14 or postgresql13) |
|
| 59 | 59 |
|
| 60 | 60 |
%description pgsql |
| 61 | 61 |
This package provides the PostgreSQL driver for the %{name} DBD (database abstraction) interface.
|
| ... | ... |
@@ -127,6 +127,8 @@ rm -rf %{buildroot}
|
| 127 | 127 |
%{_libdir}/%{name}-%{apuver}/apr_dbd_sqlite*
|
| 128 | 128 |
|
| 129 | 129 |
%changelog |
| 130 |
+* Thu Dec 07 2023 Shreenidhi Shedi <sshedi@vmware.com> 1.6.3-3 |
|
| 131 |
+- Build with pgsql16 |
|
| 130 | 132 |
* Sun Nov 19 2023 Shreenidhi Shedi <sshedi@vmware.com> 1.6.3-2 |
| 131 | 133 |
- Bump version as a part of openssl upgrade |
| 132 | 134 |
* Fri Sep 29 2023 Nitesh Kumar <kunitesh@vmware.com> 1.6.3-1 |
| 133 | 135 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,64 @@ |
| 0 |
+%define srcname pgaudit |
|
| 1 |
+%global pgmajorversion 16 |
|
| 2 |
+%global _pgbaseinstdir %{_usr}/pgsql/%{pgmajorversion}
|
|
| 3 |
+%global _pglibdir %{_pgbaseinstdir}/lib/postgresql
|
|
| 4 |
+%global _pgdatadir %{_pgbaseinstdir}/share/postgresql
|
|
| 5 |
+ |
|
| 6 |
+Name: pgaudit16 |
|
| 7 |
+Version: 16.0 |
|
| 8 |
+Release: 1%{?dist}
|
|
| 9 |
+Summary: PostgreSQL Audit Extension |
|
| 10 |
+License: PostgreSQL |
|
| 11 |
+URL: http://pgaudit.org |
|
| 12 |
+Group: Applications/Databases |
|
| 13 |
+Vendor: VMware, Inc. |
|
| 14 |
+Distribution: Photon |
|
| 15 |
+ |
|
| 16 |
+Source0: https://github.com/pgaudit/pgaudit/archive/refs/tags/%{srcname}-%{version}.tar.gz
|
|
| 17 |
+%define sha512 %{srcname}=65a6dffdc648255424fc44d6dd361938ebc6f9520770be2a1acd78d791cb4fc6caaa2f01865ef3e747bac50efa720e8817f9427eadec75fdfdf192c2705e44e2
|
|
| 18 |
+ |
|
| 19 |
+BuildRequires: build-essential |
|
| 20 |
+BuildRequires: postgresql%{pgmajorversion}-devel
|
|
| 21 |
+BuildRequires: openssl-devel |
|
| 22 |
+BuildRequires: krb5-devel |
|
| 23 |
+ |
|
| 24 |
+Requires: openssl |
|
| 25 |
+Requires: postgresql%{pgmajorversion}-libs
|
|
| 26 |
+ |
|
| 27 |
+%description |
|
| 28 |
+The PostgreSQL Audit extension (pgaudit) provides detailed session |
|
| 29 |
+and/or object audit logging via the standard PostgreSQL logging |
|
| 30 |
+facility. |
|
| 31 |
+ |
|
| 32 |
+The goal of the PostgreSQL Audit extension (pgaudit) is to provide |
|
| 33 |
+PostgreSQL users with capability to produce audit logs often required to |
|
| 34 |
+comply with government, financial, or ISO certifications. |
|
| 35 |
+ |
|
| 36 |
+An audit is an official inspection of an individual's or organization's |
|
| 37 |
+accounts, typically by an independent body. The information gathered by |
|
| 38 |
+the PostgreSQL Audit extension (pgaudit) is properly called an audit |
|
| 39 |
+trail or audit log. The term audit log is used in this documentation. |
|
| 40 |
+ |
|
| 41 |
+%prep |
|
| 42 |
+%autosetup -p1 -n %{srcname}-%{version}
|
|
| 43 |
+ |
|
| 44 |
+%build |
|
| 45 |
+%make_build USE_PGXS=1 |
|
| 46 |
+ |
|
| 47 |
+%install |
|
| 48 |
+%make_install USE_PGXS=1 |
|
| 49 |
+ |
|
| 50 |
+%clean |
|
| 51 |
+rm -rf %{buildroot}/*
|
|
| 52 |
+ |
|
| 53 |
+%files |
|
| 54 |
+%defattr(-,root,root) |
|
| 55 |
+%{_pglibdir}/%{srcname}.so
|
|
| 56 |
+%{_pgdatadir}/extension/*.sql
|
|
| 57 |
+%{_pgdatadir}/extension/*.control
|
|
| 58 |
+%{_pglibdir}/bitcode/%{srcname}.index.bc
|
|
| 59 |
+%{_pglibdir}/bitcode/%{srcname}/%{srcname}.bc
|
|
| 60 |
+ |
|
| 61 |
+%changelog |
|
| 62 |
+* Thu Dec 07 2023 Shreenidhi Shedi <sshedi@vmware.com> 16.0-1 |
|
| 63 |
+- pgAudit for pgsql16 |
| ... | ... |
@@ -1,7 +1,7 @@ |
| 1 | 1 |
Summary: Reliable PostgreSQL Backup & Restore |
| 2 | 2 |
Name: pgbackrest |
| 3 | 3 |
Version: 2.48 |
| 4 |
-Release: 2%{?dist}
|
|
| 4 |
+Release: 3%{?dist}
|
|
| 5 | 5 |
Url: https://pgbackrest.org |
| 6 | 6 |
License: MIT |
| 7 | 7 |
Group: Development/Languages/Python |
| ... | ... |
@@ -16,7 +16,7 @@ Source1: %{name}.conf
|
| 16 | 16 |
BuildRequires: openssl-devel |
| 17 | 17 |
BuildRequires: libxml2-devel |
| 18 | 18 |
BuildRequires: lz4-devel |
| 19 |
-BuildRequires: postgresql14-devel |
|
| 19 |
+BuildRequires: postgresql16-devel |
|
| 20 | 20 |
BuildRequires: cmake |
| 21 | 21 |
BuildRequires: libyaml-devel |
| 22 | 22 |
|
| ... | ... |
@@ -26,7 +26,7 @@ Requires: zstd-libs |
| 26 | 26 |
Requires: bzip2-libs |
| 27 | 27 |
Requires: lz4 |
| 28 | 28 |
Requires: libxml2 |
| 29 |
-Requires: (postgresql14-libs or postgresql13-libs) |
|
| 29 |
+Requires: (postgresql16-libs or postgresql15-libs or postgresql14-libs or postgresql13-libs) |
|
| 30 | 30 |
|
| 31 | 31 |
%description |
| 32 | 32 |
pgBackRest aims to be a reliable, easy-to-use backup and restore solution |
| ... | ... |
@@ -61,6 +61,8 @@ cp %{SOURCE1} %{buildroot}%{_sysconfdir}/%{name}
|
| 61 | 61 |
%config(noreplace) %attr(0640,root,root) %{_sysconfdir}/%{name}/%{name}.conf
|
| 62 | 62 |
|
| 63 | 63 |
%changelog |
| 64 |
+* Thu Dec 07 2023 Shreenidhi Shedi <sshedi@vmware.com> 2.48-3 |
|
| 65 |
+- Build with pgsql16 |
|
| 64 | 66 |
* Sun Nov 19 2023 Shreenidhi Shedi <sshedi@vmware.com> 2.48-2 |
| 65 | 67 |
- Bump version as a part of openssl upgrade |
| 66 | 68 |
* Thu Nov 02 2023 Shreenidhi Shedi <sshedi@vmware.com> 2.48-1 |
| ... | ... |
@@ -1,21 +1,24 @@ |
| 1 | 1 |
Summary: Connection pooler for PostgreSQL. |
| 2 | 2 |
Name: pgbouncer |
| 3 | 3 |
Version: 1.17.0 |
| 4 |
-Release: 4%{?dist}
|
|
| 4 |
+Release: 5%{?dist}
|
|
| 5 | 5 |
License: BSD |
| 6 | 6 |
URL: https://wiki.postgresql.org/wiki/PgBouncer |
| 7 |
-Source0: https://%{name}.github.io/downloads/files/%{version}/%{name}-%{version}.tar.gz
|
|
| 8 |
-%define sha512 pgbouncer=5913ce542f0f694f114db8a2f339e536fb2b5887efb160b7ce3c708ae3d638bee95943104eafb9fbc4fc225649bd5625da2ccf1b56489afe33ebf8aacac48863 |
|
| 9 |
-Source1: pgbouncer.service |
|
| 10 |
-Source2: %{name}.sysusers
|
|
| 11 | 7 |
Group: Application/Databases. |
| 12 | 8 |
Vendor: VMware, Inc. |
| 13 | 9 |
Distribution: Photon |
| 10 |
+ |
|
| 11 |
+Source0: https://%{name}.github.io/downloads/files/%{version}/%{name}-%{version}.tar.gz
|
|
| 12 |
+%define sha512 %{name}=5913ce542f0f694f114db8a2f339e536fb2b5887efb160b7ce3c708ae3d638bee95943104eafb9fbc4fc225649bd5625da2ccf1b56489afe33ebf8aacac48863
|
|
| 13 |
+ |
|
| 14 |
+Source1: %{name}.service
|
|
| 15 |
+Source2: %{name}.sysusers
|
|
| 16 |
+ |
|
| 14 | 17 |
BuildRequires: libevent-devel |
| 15 | 18 |
BuildRequires: openssl-devel |
| 16 |
-BuildRequires: systemd |
|
| 17 | 19 |
BuildRequires: systemd-devel |
| 18 | 20 |
BuildRequires: pkg-config |
| 21 |
+ |
|
| 19 | 22 |
Requires: libevent |
| 20 | 23 |
Requires: openssl |
| 21 | 24 |
Requires(pre): systemd-rpm-macros |
| ... | ... |
@@ -25,55 +28,55 @@ Requires(pre): /usr/sbin/useradd /usr/sbin/groupadd |
| 25 | 25 |
Pgbouncer is a light-weight, robust connection pooler for PostgreSQL. |
| 26 | 26 |
|
| 27 | 27 |
%prep |
| 28 |
-%autosetup |
|
| 28 |
+%autosetup -p1 |
|
| 29 | 29 |
|
| 30 | 30 |
%build |
| 31 | 31 |
%configure |
| 32 |
-make %{?_smp_mflags} V=1
|
|
| 32 |
+%make_build |
|
| 33 | 33 |
|
| 34 | 34 |
%install |
| 35 |
-[ %{buildroot} != "/" ] && rm -rf %{buildroot}/*
|
|
| 36 |
-make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
|
| 37 |
-install -vdm 744 %{buildroot}/var/log/pgbouncer
|
|
| 38 |
-install -vdm 755 %{buildroot}/var/run/pgbouncer
|
|
| 35 |
+%make_install %{?_smp_mflags}
|
|
| 36 |
+install -vdm 744 %{buildroot}%{_var}/log/pgbouncer
|
|
| 37 |
+install -vdm 755 %{buildroot}%{_sharedstatedir}/pgbouncer
|
|
| 39 | 38 |
install -p -d %{buildroot}%{_sysconfdir}/
|
| 40 | 39 |
install -p -d %{buildroot}%{_sysconfdir}/sysconfig
|
| 41 | 40 |
install -p -m 644 etc/pgbouncer.ini %{buildroot}%{_sysconfdir}/
|
| 42 |
-mkdir -p %{buildroot}/etc/systemd/system/
|
|
| 43 |
-install -m 0644 %{SOURCE1} %{buildroot}/etc/systemd/system/%{name}.service
|
|
| 41 |
+mkdir -p %{buildroot}%{_sysconfdir}/systemd/system/
|
|
| 42 |
+install -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/systemd/system/%{name}.service
|
|
| 44 | 43 |
install -p -D -m 0644 %{SOURCE2} %{buildroot}%{_sysusersdir}/%{name}.sysusers
|
| 45 | 44 |
|
| 46 | 45 |
%check |
| 47 | 46 |
pushd test |
| 48 |
-make all %{?_smp_mflags}
|
|
| 47 |
+%make_build %{?_smp_mflags}
|
|
| 49 | 48 |
popd |
| 50 | 49 |
|
| 51 | 50 |
%pre |
| 52 | 51 |
%sysusers_create_compat %{SOURCE2}
|
| 53 | 52 |
|
| 54 | 53 |
%post |
| 55 |
-if [ $1 -eq 1 ] ; then |
|
| 56 |
- chown %{name}:%{name} /var/log/%{name}
|
|
| 57 |
- chown %{name}:%{name} /var/run/%{name}
|
|
| 54 |
+if [ $1 -eq 1 ]; then |
|
| 55 |
+ chown %{name}:%{name} %{_var}/log/%{name}
|
|
| 56 |
+ chown %{name}:%{name} %{_sharedstatedir}/%{name}
|
|
| 58 | 57 |
fi |
| 59 | 58 |
|
| 60 | 59 |
%postun |
| 61 |
-if [ $1 -eq 0 ] ; then |
|
| 62 |
- rm -rf /var/log/%{name}
|
|
| 63 |
- rm -rf /var/run/%{name}
|
|
| 60 |
+if [ $1 -eq 0 ]; then |
|
| 61 |
+ rm -rf %{_var}/log/%{name} %{_sharedstatedir}/%{name}
|
|
| 64 | 62 |
fi |
| 65 | 63 |
|
| 66 | 64 |
%files |
| 67 | 65 |
%defattr(-,root,root,-) |
| 68 | 66 |
%{_bindir}/*
|
| 69 |
-/etc/systemd/system/%{name}.service
|
|
| 67 |
+%{_sysconfdir}/systemd/system/%{name}.service
|
|
| 70 | 68 |
%config(noreplace) %{_sysconfdir}/%{name}.ini
|
| 71 | 69 |
%{_mandir}/man1/%{name}.*
|
| 72 | 70 |
%{_mandir}/man5/%{name}.*
|
| 73 |
-/usr/share/doc/pgbouncer/* |
|
| 71 |
+%{_docdir}/pgbouncer/*
|
|
| 74 | 72 |
%{_sysusersdir}/%{name}.sysusers
|
| 75 | 73 |
|
| 76 | 74 |
%changelog |
| 75 |
+* Thu Dec 07 2023 Shreenidhi Shedi <sshedi@vmware.com> 1.17.0-5 |
|
| 76 |
+- Fix spec issues |
|
| 77 | 77 |
* Sun Nov 19 2023 Shreenidhi Shedi <sshedi@vmware.com> 1.17.0-4 |
| 78 | 78 |
- Bump version as a part of openssl upgrade |
| 79 | 79 |
* Tue Aug 08 2023 Mukul Sikka <msikka@vmware.com> 1.17.0-3 |
| 80 | 80 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,659 @@ |
| 0 |
+%define srcname postgresql |
|
| 1 |
+%global pgmajorversion 16 |
|
| 2 |
+%global _pgbaseinstdir %{_usr}/pgsql/%{pgmajorversion}
|
|
| 3 |
+%global _pgbindir %{_pgbaseinstdir}/bin
|
|
| 4 |
+%global _pglibdir %{_pgbaseinstdir}/lib/%{srcname}
|
|
| 5 |
+%global _pgincludedir %{_pgbaseinstdir}/include/%{srcname}
|
|
| 6 |
+%global _pgdatadir %{_pgbaseinstdir}/share/%{srcname}
|
|
| 7 |
+%global _pgmandir %{_pgdatadir}/man/%{srcname}
|
|
| 8 |
+%global _pgdocdir %{_pgbaseinstdir}/share/doc/%{srcname}
|
|
| 9 |
+%define alter_weight 600 |
|
| 10 |
+ |
|
| 11 |
+Summary: PostgreSQL database engine |
|
| 12 |
+Name: postgresql16 |
|
| 13 |
+Version: 16.1 |
|
| 14 |
+Release: 1%{?dist}
|
|
| 15 |
+License: PostgreSQL |
|
| 16 |
+URL: www.postgresql.org |
|
| 17 |
+Group: Applications/Databases |
|
| 18 |
+Vendor: VMware, Inc. |
|
| 19 |
+Distribution: Photon |
|
| 20 |
+ |
|
| 21 |
+Source0: http://ftp.postgresql.org/pub/source/v%{version}/%{srcname}-%{version}.tar.bz2
|
|
| 22 |
+%define sha512 %{srcname}=69f4635e5841452599f13b47df41ce2425ab34b4e4582fd2c635bc78d561fa36c5b03eccb4ae6569872dc74775be1b5a62dee20c9a4f12a43339250128352918
|
|
| 23 |
+ |
|
| 24 |
+BuildRequires: clang-devel |
|
| 25 |
+BuildRequires: diffutils |
|
| 26 |
+BuildRequires: gettext-devel |
|
| 27 |
+BuildRequires: krb5-devel |
|
| 28 |
+BuildRequires: icu-devel |
|
| 29 |
+BuildRequires: libedit-devel |
|
| 30 |
+BuildRequires: libxml2-devel |
|
| 31 |
+BuildRequires: libxslt-devel |
|
| 32 |
+BuildRequires: linux-api-headers |
|
| 33 |
+BuildRequires: Linux-PAM-devel |
|
| 34 |
+BuildRequires: llvm-devel |
|
| 35 |
+BuildRequires: lz4-devel |
|
| 36 |
+BuildRequires: openldap-devel |
|
| 37 |
+BuildRequires: perl |
|
| 38 |
+BuildRequires: perl-IPC-Run |
|
| 39 |
+BuildRequires: python3-devel |
|
| 40 |
+BuildRequires: readline-devel |
|
| 41 |
+BuildRequires: openssl-devel |
|
| 42 |
+BuildRequires: systemtap-sdt-devel |
|
| 43 |
+BuildRequires: boost-devel |
|
| 44 |
+BuildRequires: systemd-devel |
|
| 45 |
+BuildRequires: tar |
|
| 46 |
+BuildRequires: tcl-devel |
|
| 47 |
+BuildRequires: tzdata |
|
| 48 |
+BuildRequires: util-linux-libs |
|
| 49 |
+BuildRequires: zlib-devel |
|
| 50 |
+ |
|
| 51 |
+Requires: icu |
|
| 52 |
+Requires: libedit |
|
| 53 |
+Requires: libxml2 |
|
| 54 |
+Requires: lz4 |
|
| 55 |
+Requires: readline |
|
| 56 |
+Requires: systemd |
|
| 57 |
+Requires: tzdata |
|
| 58 |
+Requires: zlib |
|
| 59 |
+Requires: %{name}-libs = %{version}-%{release}
|
|
| 60 |
+ |
|
| 61 |
+%description |
|
| 62 |
+PostgreSQL is an advanced Object-Relational database management system (DBMS). |
|
| 63 |
+The base postgresql package contains the client programs that you'll need to |
|
| 64 |
+access a PostgreSQL DBMS server. These client programs can be located on the |
|
| 65 |
+same machine as the PostgreSQL server, or on a remote machine that accesses |
|
| 66 |
+a PostgreSQL server over a network connection. The PostgreSQL server can be |
|
| 67 |
+found in the postgresql-server sub-package. |
|
| 68 |
+ |
|
| 69 |
+If you want to manipulate a PostgreSQL database on a local or remote PostgreSQL |
|
| 70 |
+server, you need this package. You also need to install this package |
|
| 71 |
+if you're installing the postgresql-server package. |
|
| 72 |
+ |
|
| 73 |
+%package libs |
|
| 74 |
+Summary: The shared libraries required for any PostgreSQL clients |
|
| 75 |
+Group: Applications/Databases |
|
| 76 |
+Requires: krb5 |
|
| 77 |
+Requires: openldap |
|
| 78 |
+Requires: openssl |
|
| 79 |
+Requires: chkconfig |
|
| 80 |
+Requires(postun): chkconfig |
|
| 81 |
+ |
|
| 82 |
+%description libs |
|
| 83 |
+The postgresql-libs package provides the essential shared libraries for any |
|
| 84 |
+PostgreSQL client program or interface. You will need to install this package |
|
| 85 |
+to use any other PostgreSQL package or any clients that need to connect to a |
|
| 86 |
+PostgreSQL server. |
|
| 87 |
+ |
|
| 88 |
+%package server |
|
| 89 |
+Summary: The programs needed to create and run a PostgreSQL server |
|
| 90 |
+Requires: %{name} = %{version}-%{release}
|
|
| 91 |
+Requires: %{name}-libs = %{version}-%{release}
|
|
| 92 |
+ |
|
| 93 |
+%description server |
|
| 94 |
+PostgreSQL is an advanced Object-Relational database management system (DBMS). |
|
| 95 |
+The postgresql-server package contains the programs needed to create |
|
| 96 |
+and run a PostgreSQL server, which will in turn allow you to create |
|
| 97 |
+and maintain PostgreSQL databases. |
|
| 98 |
+ |
|
| 99 |
+%package i18n |
|
| 100 |
+Summary: Additional language files for PostgreSQL |
|
| 101 |
+Requires: %{name} = %{version}-%{release}
|
|
| 102 |
+ |
|
| 103 |
+%description i18n |
|
| 104 |
+The postgresql-i18n package includes additional language files for |
|
| 105 |
+PostgreSQL. |
|
| 106 |
+ |
|
| 107 |
+%package docs |
|
| 108 |
+Summary: Extra documentation for PostgreSQL |
|
| 109 |
+ |
|
| 110 |
+%description docs |
|
| 111 |
+The postgresql-docs package includes the documentation. |
|
| 112 |
+ |
|
| 113 |
+%package contrib |
|
| 114 |
+Summary: Contributed source and binaries distributed with PostgreSQL |
|
| 115 |
+Requires: %{name} = %{version}-%{release}
|
|
| 116 |
+Requires: %{name}-libs = %{version}-%{release}
|
|
| 117 |
+Requires: %{name}-server = %{version}-%{release}
|
|
| 118 |
+ |
|
| 119 |
+%description contrib |
|
| 120 |
+The postgresql-contrib package contains various extension modules that are |
|
| 121 |
+included in the PostgreSQL distribution. |
|
| 122 |
+ |
|
| 123 |
+%package devel |
|
| 124 |
+Summary: PostgreSQL development header files and libraries |
|
| 125 |
+Requires: %{name} = %{version}-%{release}
|
|
| 126 |
+Requires: %{name}-libs = %{version}-%{release}
|
|
| 127 |
+Requires: clang-devel |
|
| 128 |
+Requires: icu-devel |
|
| 129 |
+Requires: krb5-devel |
|
| 130 |
+Requires: libedit-devel |
|
| 131 |
+Requires: libxml2-devel |
|
| 132 |
+Requires: libxslt-devel |
|
| 133 |
+Requires: llvm-devel |
|
| 134 |
+Requires: lz4-devel |
|
| 135 |
+Requires: openldap |
|
| 136 |
+Requires: openssl-devel |
|
| 137 |
+Requires: perl-IPC-Run |
|
| 138 |
+Requires: python3-devel |
|
| 139 |
+Requires: readline-devel |
|
| 140 |
+ |
|
| 141 |
+%description devel |
|
| 142 |
+The postgresql-devel package contains the header files and libraries |
|
| 143 |
+needed to compile C or C++ applications which will directly interact |
|
| 144 |
+with a PostgreSQL database management server. It also contains the ecpg |
|
| 145 |
+Embedded C Postgres preprocessor. You need to install this package if you |
|
| 146 |
+want to develop applications which will interact with a PostgreSQL server. |
|
| 147 |
+ |
|
| 148 |
+%package llvmjit |
|
| 149 |
+Summary: Just-in-time compilation support for PostgreSQL |
|
| 150 |
+Requires: %{name}-server = %{version}-%{release}
|
|
| 151 |
+Requires: llvm |
|
| 152 |
+ |
|
| 153 |
+%description llvmjit |
|
| 154 |
+The postgresql-llvmjit package contains support for just-in-time |
|
| 155 |
+compilation with PostgreSQL queries. |
|
| 156 |
+ |
|
| 157 |
+%package plperl |
|
| 158 |
+Summary: The Perl procedural language for PostgreSQL |
|
| 159 |
+Requires: %{name}-server = %{version}-%{release}
|
|
| 160 |
+ |
|
| 161 |
+%description plperl |
|
| 162 |
+The postgresql-plperl package contains the PL/Perl procedural language, |
|
| 163 |
+which is an extension to the PostgreSQL database server. |
|
| 164 |
+Install this if you want to write database functions in Perl. |
|
| 165 |
+ |
|
| 166 |
+%package plpython3 |
|
| 167 |
+Summary: The Python3 procedural language for PostgreSQL |
|
| 168 |
+Requires: %{name} = %{version}-%{release}
|
|
| 169 |
+Requires: %{name}-server = %{version}-%{release}
|
|
| 170 |
+Requires: python3-libs |
|
| 171 |
+ |
|
| 172 |
+%description plpython3 |
|
| 173 |
+The postgresql-plpython3 package contains the PL/Python3 procedural language, |
|
| 174 |
+which is an extension to the PostgreSQL database server. |
|
| 175 |
+Install this if you want to write database functions in Python 3. |
|
| 176 |
+ |
|
| 177 |
+%package pltcl |
|
| 178 |
+Summary: The Tcl procedural language for PostgreSQL |
|
| 179 |
+Requires: %{name} = %{version}-%{release}
|
|
| 180 |
+Requires: %{name}-server = %{version}-%{release}
|
|
| 181 |
+Requires: tcl |
|
| 182 |
+ |
|
| 183 |
+%description pltcl |
|
| 184 |
+PostgreSQL is an advanced Object-Relational database management |
|
| 185 |
+system. The %{name}-pltcl package contains the PL/Tcl language
|
|
| 186 |
+for the backend. |
|
| 187 |
+ |
|
| 188 |
+%prep |
|
| 189 |
+%autosetup -p1 -n %{srcname}-%{version}
|
|
| 190 |
+ |
|
| 191 |
+%build |
|
| 192 |
+sed -i '/DEFAULT_PGSOCKET_DIR/s@/tmp@/run/postgresql@' src/include/pg_config_manual.h |
|
| 193 |
+ |
|
| 194 |
+sh ./configure \ |
|
| 195 |
+ --prefix=%{_pgbaseinstdir} \
|
|
| 196 |
+ --enable-dtrace \ |
|
| 197 |
+ --enable-thread-safety \ |
|
| 198 |
+ --enable-nls \ |
|
| 199 |
+ --enable-tap-tests \ |
|
| 200 |
+ --with-icu \ |
|
| 201 |
+ --with-ldap \ |
|
| 202 |
+ --with-libxml \ |
|
| 203 |
+ --with-libxslt \ |
|
| 204 |
+ --with-llvm \ |
|
| 205 |
+ --with-lz4 \ |
|
| 206 |
+ --with-ssl=openssl \ |
|
| 207 |
+ --with-gssapi \ |
|
| 208 |
+ --with-libedit-preferred \ |
|
| 209 |
+ --with-pam \ |
|
| 210 |
+ --with-perl \ |
|
| 211 |
+ --with-python \ |
|
| 212 |
+ --with-readline \ |
|
| 213 |
+ --with-systemd \ |
|
| 214 |
+ --with-system-tzdata=%{_datadir}/zoneinfo \
|
|
| 215 |
+ --with-tcl \ |
|
| 216 |
+ --with-uuid=e2fs \ |
|
| 217 |
+ --includedir=%{_pgincludedir} \
|
|
| 218 |
+ --bindir=%{_pgbindir} \
|
|
| 219 |
+ --datadir=%{_pgdatadir} \
|
|
| 220 |
+ --libdir=%{_pglibdir} \
|
|
| 221 |
+ --docdir=%{_pgdocdir} \
|
|
| 222 |
+ --mandir=%{_pgmandir}
|
|
| 223 |
+ |
|
| 224 |
+%make_build world |
|
| 225 |
+ |
|
| 226 |
+%install |
|
| 227 |
+%make_install install-world |
|
| 228 |
+ |
|
| 229 |
+# Remove anything related to Python 2. These have no need to be |
|
| 230 |
+# around as only Python 3 is supported. |
|
| 231 |
+rm -f %{buildroot}%{_pgdatadir}/extension/*plpython2u* \
|
|
| 232 |
+ %{buildroot}%{_pgdatadir}/extension/*plpythonu-* \
|
|
| 233 |
+ %{buildroot}%{_pgdatadir}/extension/*_plpythonu.control
|
|
| 234 |
+ |
|
| 235 |
+echo "%{_pglibdir}" > %{buildroot}%{_pgbaseinstdir}/%{srcname}.conf
|
|
| 236 |
+ |
|
| 237 |
+# Create file lists, for --enable-nls and i18n |
|
| 238 |
+%find_lang ecpg-%{pgmajorversion}
|
|
| 239 |
+%find_lang ecpglib6-%{pgmajorversion}
|
|
| 240 |
+%find_lang initdb-%{pgmajorversion}
|
|
| 241 |
+%find_lang libpq5-%{pgmajorversion}
|
|
| 242 |
+%find_lang pg_amcheck-%{pgmajorversion}
|
|
| 243 |
+%find_lang pg_archivecleanup-%{pgmajorversion}
|
|
| 244 |
+%find_lang pg_basebackup-%{pgmajorversion}
|
|
| 245 |
+%find_lang pg_checksums-%{pgmajorversion}
|
|
| 246 |
+%find_lang pg_config-%{pgmajorversion}
|
|
| 247 |
+%find_lang pg_controldata-%{pgmajorversion}
|
|
| 248 |
+%find_lang pg_ctl-%{pgmajorversion}
|
|
| 249 |
+%find_lang pg_dump-%{pgmajorversion}
|
|
| 250 |
+%find_lang pg_resetwal-%{pgmajorversion}
|
|
| 251 |
+%find_lang pg_rewind-%{pgmajorversion}
|
|
| 252 |
+%find_lang pg_test_fsync-%{pgmajorversion}
|
|
| 253 |
+%find_lang pg_test_timing-%{pgmajorversion}
|
|
| 254 |
+%find_lang pg_upgrade-%{pgmajorversion}
|
|
| 255 |
+%find_lang pg_verifybackup-%{pgmajorversion}
|
|
| 256 |
+%find_lang pg_waldump-%{pgmajorversion}
|
|
| 257 |
+%find_lang pgscripts-%{pgmajorversion}
|
|
| 258 |
+%find_lang plperl-%{pgmajorversion}
|
|
| 259 |
+cat plperl-%{pgmajorversion}.lang >> pg_i18n.lst
|
|
| 260 |
+%find_lang plpgsql-%{pgmajorversion}
|
|
| 261 |
+# plpython3 shares message files with plpython |
|
| 262 |
+%find_lang plpython-%{pgmajorversion}
|
|
| 263 |
+cat plpython-%{pgmajorversion}.lang >> pg_i18n.lst
|
|
| 264 |
+%find_lang pltcl-%{pgmajorversion}
|
|
| 265 |
+cat pltcl-%{pgmajorversion}.lang >> pg_i18n.lst
|
|
| 266 |
+%find_lang postgres-%{pgmajorversion}
|
|
| 267 |
+%find_lang psql-%{pgmajorversion}
|
|
| 268 |
+ |
|
| 269 |
+cat libpq5-%{pgmajorversion}.lang >> pg_i18n.lst
|
|
| 270 |
+ |
|
| 271 |
+cat pg_config-%{pgmajorversion}.lang ecpg-%{pgmajorversion}.lang ecpglib6-%{pgmajorversion}.lang >> pg_i18n.lst
|
|
| 272 |
+ |
|
| 273 |
+cat initdb-%{pgmajorversion}.lang pg_amcheck-%{pgmajorversion}.lang \
|
|
| 274 |
+ pg_ctl-%{pgmajorversion}.lang psql-%{pgmajorversion}.lang \
|
|
| 275 |
+ pg_dump-%{pgmajorversion}.lang pg_basebackup-%{pgmajorversion}.lang \
|
|
| 276 |
+ pgscripts-%{pgmajorversion}.lang >> pg_i18n.lst
|
|
| 277 |
+ |
|
| 278 |
+cat postgres-%{pgmajorversion}.lang pg_resetwal-%{pgmajorversion}.lang \
|
|
| 279 |
+ pg_checksums-%{pgmajorversion}.lang pg_verifybackup-%{pgmajorversion}.lang \
|
|
| 280 |
+ pg_controldata-%{pgmajorversion}.lang plpgsql-%{pgmajorversion}.lang \
|
|
| 281 |
+ pg_test_timing-%{pgmajorversion}.lang pg_test_fsync-%{pgmajorversion}.lang \
|
|
| 282 |
+ pg_archivecleanup-%{pgmajorversion}.lang pg_waldump-%{pgmajorversion}.lang \
|
|
| 283 |
+ pg_rewind-%{pgmajorversion}.lang pg_upgrade-%{pgmajorversion}.lang >> pg_i18n.lst
|
|
| 284 |
+ |
|
| 285 |
+%check |
|
| 286 |
+# Run the main regression test suites in the source tree. |
|
| 287 |
+run_test_path() {
|
|
| 288 |
+ make_path="$1" |
|
| 289 |
+ chown -Rv nobody . |
|
| 290 |
+ sudo -u nobody -s /bin/bash -c "PATH=$PATH make -C $make_path -k check" |
|
| 291 |
+} |
|
| 292 |
+# SQL test suites, mostly. |
|
| 293 |
+run_test_path "src/test/regress" |
|
| 294 |
+run_test_path "src/test/isolation" |
|
| 295 |
+run_test_path "src/test/modules" |
|
| 296 |
+run_test_path "src/pl" |
|
| 297 |
+run_test_path "contrib" |
|
| 298 |
+# TAP tests |
|
| 299 |
+run_test_path "src/test/authentication" |
|
| 300 |
+run_test_path "src/test/recovery" |
|
| 301 |
+run_test_path "src/test/ssl" |
|
| 302 |
+run_test_path "src/test/subscription" |
|
| 303 |
+ |
|
| 304 |
+%post |
|
| 305 |
+/sbin/ldconfig |
|
| 306 |
+ |
|
| 307 |
+%posttrans |
|
| 308 |
+alternatives --install %{_bindir}/clusterdb clusterdb %{_pgbindir}/clusterdb %{alter_weight} \
|
|
| 309 |
+ --slave %{_bindir}/createdb createdb %{_pgbindir}/createdb \
|
|
| 310 |
+ --slave %{_bindir}/createuser createuser %{_pgbindir}/createuser \
|
|
| 311 |
+ --slave %{_bindir}/dropdb dropdb %{_pgbindir}/dropdb \
|
|
| 312 |
+ --slave %{_bindir}/dropuser dropuser %{_pgbindir}/dropuser \
|
|
| 313 |
+ --slave %{_bindir}/pgbench pgbench %{_pgbindir}/pgbench \
|
|
| 314 |
+ --slave %{_bindir}/pg_basebackup pg_basebackup %{_pgbindir}/pg_basebackup \
|
|
| 315 |
+ --slave %{_bindir}/pg_config pg_config %{_pgbindir}/pg_config \
|
|
| 316 |
+ --slave %{_bindir}/pg_dump pg_dump %{_pgbindir}/pg_dump \
|
|
| 317 |
+ --slave %{_bindir}/pg_dumpall pg_dumpall %{_pgbindir}/pg_dumpall \
|
|
| 318 |
+ --slave %{_bindir}/pg_isready pg_isready %{_pgbindir}/pg_isready \
|
|
| 319 |
+ --slave %{_bindir}/pg_receivewal pg_receivewal %{_pgbindir}/pg_receivewal \
|
|
| 320 |
+ --slave %{_bindir}/pg_restore pg_restore %{_pgbindir}/pg_restore \
|
|
| 321 |
+ --slave %{_bindir}/pg_waldump pg_waldump %{_pgbindir}/pg_waldump \
|
|
| 322 |
+ --slave %{_bindir}/psql psql %{_pgbindir}/psql \
|
|
| 323 |
+ --slave %{_bindir}/reindexdb reindexdb %{_pgbindir}/reindexdb \
|
|
| 324 |
+ --slave %{_bindir}/vacuumdb vacuumdb %{_pgbindir}/vacuumdb
|
|
| 325 |
+ |
|
| 326 |
+/sbin/ldconfig |
|
| 327 |
+ |
|
| 328 |
+%postun |
|
| 329 |
+alternatives --remove clusterdb %{_pgbindir}/clusterdb
|
|
| 330 |
+/sbin/ldconfig |
|
| 331 |
+ |
|
| 332 |
+%post libs |
|
| 333 |
+/sbin/ldconfig |
|
| 334 |
+ |
|
| 335 |
+%posttrans libs |
|
| 336 |
+alternatives --install %{_sysconfdir}/ld.so.conf.d/%{srcname}.conf %{srcname}.conf %{_pgbaseinstdir}/%{srcname}.conf %{alter_weight}
|
|
| 337 |
+/sbin/ldconfig |
|
| 338 |
+ |
|
| 339 |
+%postun libs |
|
| 340 |
+alternatives --remove %{srcname}.conf %{_pgbaseinstdir}/%{srcname}.conf
|
|
| 341 |
+/sbin/ldconfig |
|
| 342 |
+ |
|
| 343 |
+%posttrans devel |
|
| 344 |
+alternatives --install %{_includedir}/%{srcname} %{srcname} %{_pgincludedir} %{alter_weight} \
|
|
| 345 |
+ --slave %{_bindir}/ecpg ecpg %{_pgbindir}/ecpg
|
|
| 346 |
+ |
|
| 347 |
+/sbin/ldconfig |
|
| 348 |
+ |
|
| 349 |
+%postun devel |
|
| 350 |
+alternatives --remove %{srcname} %{_pgincludedir}
|
|
| 351 |
+/sbin/ldconfig |
|
| 352 |
+ |
|
| 353 |
+%posttrans server |
|
| 354 |
+alternatives --install %{_bindir}/initdb initdb %{_pgbindir}/initdb %{alter_weight} \
|
|
| 355 |
+ --slave %{_bindir}/pg_amcheck pg_amcheck %{_pgbindir}/pg_amcheck \
|
|
| 356 |
+ --slave %{_bindir}/pg_archivecleanup pg_archivecleanup %{_pgbindir}/pg_archivecleanup \
|
|
| 357 |
+ --slave %{_bindir}/pg_checksums pg_checksums %{_pgbindir}/pg_checksums \
|
|
| 358 |
+ --slave %{_bindir}/pg_controldata pg_controldata %{_pgbindir}/pg_controldata \
|
|
| 359 |
+ --slave %{_bindir}/pg_ctl pg_ctl %{_pgbindir}/pg_ctl \
|
|
| 360 |
+ --slave %{_bindir}/pg_resetwal pg_resetwal %{_pgbindir}/pg_resetwal \
|
|
| 361 |
+ --slave %{_bindir}/pg_rewind pg_rewind %{_pgbindir}/pg_rewind \
|
|
| 362 |
+ --slave %{_bindir}/pg_test_fsync pg_test_fsync %{_pgbindir}/pg_test_fsync \
|
|
| 363 |
+ --slave %{_bindir}/pg_test_timing pg_test_timing %{_pgbindir}/pg_test_timing \
|
|
| 364 |
+ --slave %{_bindir}/pg_upgrade pg_upgrade %{_pgbindir}/pg_upgrade \
|
|
| 365 |
+ --slave %{_bindir}/pg_verifybackup pg_verifybackup %{_pgbindir}/pg_verifybackup \
|
|
| 366 |
+ --slave %{_bindir}/postgres postgres %{_pgbindir}/postgres
|
|
| 367 |
+ |
|
| 368 |
+/sbin/ldconfig |
|
| 369 |
+ |
|
| 370 |
+%postun server |
|
| 371 |
+alternatives --remove initdb %{_pgbindir}/initdb
|
|
| 372 |
+/sbin/ldconfig |
|
| 373 |
+ |
|
| 374 |
+%posttrans contrib |
|
| 375 |
+alternatives --install %{_bindir}/oid2name oid2name %{_pgbindir}/oid2name %{alter_weight} \
|
|
| 376 |
+ --slave %{_bindir}/vacuumlo vacuumlo %{_pgbindir}/vacuumlo \
|
|
| 377 |
+ --slave %{_bindir}/pg_recvlogical pg_recvlogical %{_pgbindir}/pg_recvlogical
|
|
| 378 |
+ |
|
| 379 |
+/sbin/ldconfig |
|
| 380 |
+ |
|
| 381 |
+%postun contrib |
|
| 382 |
+alternatives --remove oid2name %{_pgbindir}/oid2name
|
|
| 383 |
+/sbin/ldconfig |
|
| 384 |
+ |
|
| 385 |
+%clean |
|
| 386 |
+rm -rf %{buildroot}/*
|
|
| 387 |
+ |
|
| 388 |
+%files |
|
| 389 |
+%defattr(-,root,root) |
|
| 390 |
+%{_pgbindir}/clusterdb
|
|
| 391 |
+%{_pgbindir}/createdb
|
|
| 392 |
+%{_pgbindir}/createuser
|
|
| 393 |
+%{_pgbindir}/dropdb
|
|
| 394 |
+%{_pgbindir}/dropuser
|
|
| 395 |
+%{_pgbindir}/pgbench
|
|
| 396 |
+%{_pgbindir}/pg_basebackup
|
|
| 397 |
+%{_pgbindir}/pg_config
|
|
| 398 |
+%{_pgbindir}/pg_dump
|
|
| 399 |
+%{_pgbindir}/pg_dumpall
|
|
| 400 |
+%{_pgbindir}/pg_isready
|
|
| 401 |
+%{_pgbindir}/pg_receivewal
|
|
| 402 |
+%{_pgbindir}/pg_restore
|
|
| 403 |
+%{_pgbindir}/pg_waldump
|
|
| 404 |
+%{_pgbindir}/psql
|
|
| 405 |
+%{_pgbindir}/reindexdb
|
|
| 406 |
+%{_pgbindir}/vacuumdb
|
|
| 407 |
+%{_pgdatadir}/errcodes.txt
|
|
| 408 |
+%{_pgmandir}/man1/clusterdb.*
|
|
| 409 |
+%{_pgmandir}/man1/createdb.*
|
|
| 410 |
+%{_pgmandir}/man1/createuser.*
|
|
| 411 |
+%{_pgmandir}/man1/dropdb.*
|
|
| 412 |
+%{_pgmandir}/man1/dropuser.*
|
|
| 413 |
+%{_pgmandir}/man1/pgbench.*
|
|
| 414 |
+%{_pgmandir}/man1/pg_basebackup.*
|
|
| 415 |
+%{_pgmandir}/man1/pg_config.*
|
|
| 416 |
+%{_pgmandir}/man1/pg_dump.*
|
|
| 417 |
+%{_pgmandir}/man1/pg_dumpall.*
|
|
| 418 |
+%{_pgmandir}/man1/pg_isready.*
|
|
| 419 |
+%{_pgmandir}/man1/pg_restore.*
|
|
| 420 |
+%{_pgmandir}/man1/psql.*
|
|
| 421 |
+%{_pgmandir}/man1/reindexdb.*
|
|
| 422 |
+%{_pgmandir}/man1/vacuumdb.*
|
|
| 423 |
+%{_pgmandir}/man3/*
|
|
| 424 |
+%{_pgmandir}/man7/*
|
|
| 425 |
+ |
|
| 426 |
+%files libs |
|
| 427 |
+%defattr(-,root,root) |
|
| 428 |
+%{_pgbaseinstdir}/%{srcname}.conf
|
|
| 429 |
+%{_pglibdir}/libpq.so.*
|
|
| 430 |
+%{_pglibdir}/libecpg.so*
|
|
| 431 |
+%{_pglibdir}/libpgtypes.so.*
|
|
| 432 |
+%{_pglibdir}/libecpg_compat.so.*
|
|
| 433 |
+%{_pglibdir}/libpqwalreceiver.so
|
|
| 434 |
+ |
|
| 435 |
+%files server |
|
| 436 |
+%defattr(-,root,root) |
|
| 437 |
+%{_pgbindir}/initdb
|
|
| 438 |
+%{_pgbindir}/pg_amcheck
|
|
| 439 |
+%{_pgbindir}/pg_archivecleanup
|
|
| 440 |
+%{_pgbindir}/pg_checksums
|
|
| 441 |
+%{_pgbindir}/pg_controldata
|
|
| 442 |
+%{_pgbindir}/pg_ctl
|
|
| 443 |
+%{_pgbindir}/pg_resetwal
|
|
| 444 |
+%{_pgbindir}/pg_rewind
|
|
| 445 |
+%{_pgbindir}/pg_test_fsync
|
|
| 446 |
+%{_pgbindir}/pg_test_timing
|
|
| 447 |
+%{_pgbindir}/pg_upgrade
|
|
| 448 |
+%{_pgbindir}/pg_verifybackup
|
|
| 449 |
+%{_pgbindir}/postgres
|
|
| 450 |
+%{_pgmandir}/man1/initdb.*
|
|
| 451 |
+%{_pgmandir}/man1/pg_amcheck.*
|
|
| 452 |
+%{_pgmandir}/man1/pg_archivecleanup.*
|
|
| 453 |
+%{_pgmandir}/man1/pg_checksums.*
|
|
| 454 |
+%{_pgmandir}/man1/pg_controldata.*
|
|
| 455 |
+%{_pgmandir}/man1/pg_ctl.*
|
|
| 456 |
+%{_pgmandir}/man1/pg_resetwal.*
|
|
| 457 |
+%{_pgmandir}/man1/pg_receivewal.*
|
|
| 458 |
+%{_pgmandir}/man1/pg_rewind.*
|
|
| 459 |
+%{_pgmandir}/man1/pg_test_fsync.*
|
|
| 460 |
+%{_pgmandir}/man1/pg_test_timing.*
|
|
| 461 |
+%{_pgmandir}/man1/pg_upgrade.*
|
|
| 462 |
+%{_pgmandir}/man1/pg_verifybackup.*
|
|
| 463 |
+%{_pgmandir}/man1/pg_waldump.*
|
|
| 464 |
+%{_pgmandir}/man1/postgres.*
|
|
| 465 |
+%{_pgdatadir}/*.sample
|
|
| 466 |
+%{_pgdatadir}/postgres.bki
|
|
| 467 |
+%{_pgdatadir}/information_schema.sql
|
|
| 468 |
+%{_pgdatadir}/snowball_create.sql
|
|
| 469 |
+%{_pgdatadir}/sql_features.txt
|
|
| 470 |
+%{_pgdatadir}/system_constraints.sql
|
|
| 471 |
+%{_pgdatadir}/system_functions.sql
|
|
| 472 |
+%{_pgdatadir}/system_views.sql
|
|
| 473 |
+%dir %{_pgdatadir}/extension
|
|
| 474 |
+%{_pgdatadir}/extension/plpgsql*
|
|
| 475 |
+%{_pgdatadir}/timezonesets/*
|
|
| 476 |
+%{_pgdatadir}/tsearch_data/*.affix
|
|
| 477 |
+%{_pgdatadir}/tsearch_data/*.dict
|
|
| 478 |
+%{_pgdatadir}/tsearch_data/*.ths
|
|
| 479 |
+%{_pgdatadir}/tsearch_data/*.rules
|
|
| 480 |
+%{_pgdatadir}/tsearch_data/*.stop
|
|
| 481 |
+%{_pgdatadir}/tsearch_data/*.syn
|
|
| 482 |
+%{_pglibdir}/dict_int.so
|
|
| 483 |
+%{_pglibdir}/dict_snowball.so
|
|
| 484 |
+%{_pglibdir}/dict_xsyn.so
|
|
| 485 |
+%{_pglibdir}/euc2004_sjis2004.so
|
|
| 486 |
+%{_pglibdir}/pgoutput.so
|
|
| 487 |
+%{_pglibdir}/plpgsql.so
|
|
| 488 |
+%{_pglibdir}/*_and_*.so
|
|
| 489 |
+ |
|
| 490 |
+%files i18n -f pg_i18n.lst |
|
| 491 |
+ |
|
| 492 |
+%files docs |
|
| 493 |
+%defattr(-,root,root) |
|
| 494 |
+%{_pgdocdir}/*
|
|
| 495 |
+ |
|
| 496 |
+%files contrib |
|
| 497 |
+%defattr(-,root,root) |
|
| 498 |
+%{_pgbindir}/oid2name
|
|
| 499 |
+%{_pgbindir}/vacuumlo
|
|
| 500 |
+%{_pgbindir}/pg_recvlogical
|
|
| 501 |
+%{_pgdatadir}/extension/adminpack*
|
|
| 502 |
+%{_pgdatadir}/extension/amcheck*
|
|
| 503 |
+%{_pgdatadir}/extension/autoinc*
|
|
| 504 |
+%{_pgdatadir}/extension/bloom*
|
|
| 505 |
+%{_pgdatadir}/extension/btree_gin*
|
|
| 506 |
+%{_pgdatadir}/extension/btree_gist*
|
|
| 507 |
+%{_pgdatadir}/extension/citext*
|
|
| 508 |
+%{_pgdatadir}/extension/cube*
|
|
| 509 |
+%{_pgdatadir}/extension/dblink*
|
|
| 510 |
+%{_pgdatadir}/extension/dict_int*
|
|
| 511 |
+%{_pgdatadir}/extension/dict_xsyn*
|
|
| 512 |
+%{_pgdatadir}/extension/earthdistance*
|
|
| 513 |
+%{_pgdatadir}/extension/file_fdw*
|
|
| 514 |
+%{_pgdatadir}/extension/fuzzystrmatch*
|
|
| 515 |
+%{_pgdatadir}/extension/hstore.control
|
|
| 516 |
+%{_pgdatadir}/extension/hstore--*.sql
|
|
| 517 |
+%{_pgdatadir}/extension/insert_username*
|
|
| 518 |
+%{_pgdatadir}/extension/intagg*
|
|
| 519 |
+%{_pgdatadir}/extension/intarray*
|
|
| 520 |
+%{_pgdatadir}/extension/isn*
|
|
| 521 |
+%{_pgdatadir}/extension/lo*
|
|
| 522 |
+%{_pgdatadir}/extension/ltree.control
|
|
| 523 |
+%{_pgdatadir}/extension/ltree--*.sql
|
|
| 524 |
+%{_pgdatadir}/extension/moddatetime*
|
|
| 525 |
+%{_pgdatadir}/extension/old_snapshot*
|
|
| 526 |
+%{_pgdatadir}/extension/pageinspect*
|
|
| 527 |
+%{_pgdatadir}/extension/pg_buffercache*
|
|
| 528 |
+%{_pgdatadir}/extension/pg_freespacemap*
|
|
| 529 |
+%{_pgdatadir}/extension/pg_prewarm*
|
|
| 530 |
+%{_pgdatadir}/extension/pg_stat_statements*
|
|
| 531 |
+%{_pgdatadir}/extension/pg_surgery*
|
|
| 532 |
+%{_pgdatadir}/extension/pg_trgm*
|
|
| 533 |
+%{_pgdatadir}/extension/pg_visibility*
|
|
| 534 |
+%{_pgdatadir}/extension/pgcrypto*
|
|
| 535 |
+%{_pgdatadir}/extension/pgrowlocks*
|
|
| 536 |
+%{_pgdatadir}/extension/pgstattuple*
|
|
| 537 |
+%{_pgdatadir}/extension/postgres_fdw*
|
|
| 538 |
+%{_pgdatadir}/extension/refint*
|
|
| 539 |
+%{_pgdatadir}/extension/seg*
|
|
| 540 |
+%{_pgdatadir}/extension/sslinfo*
|
|
| 541 |
+%{_pgdatadir}/extension/tablefunc*
|
|
| 542 |
+%{_pgdatadir}/extension/tcn*
|
|
| 543 |
+%{_pgdatadir}/extension/tsm_system_rows*
|
|
| 544 |
+%{_pgdatadir}/extension/tsm_system_time*
|
|
| 545 |
+%{_pgdatadir}/extension/unaccent*
|
|
| 546 |
+%{_pgdatadir}/extension/uuid-ossp*
|
|
| 547 |
+%{_pgdatadir}/extension/xml2*
|
|
| 548 |
+%{_pgdatadir}/extension/pg_walinspect*
|
|
| 549 |
+%{_pglibdir}/_int.so
|
|
| 550 |
+%{_pglibdir}/adminpack.so
|
|
| 551 |
+%{_pglibdir}/amcheck.so
|
|
| 552 |
+%{_pglibdir}/auth_delay.so
|
|
| 553 |
+%{_pglibdir}/autoinc.so
|
|
| 554 |
+%{_pglibdir}/auto_explain.so
|
|
| 555 |
+%{_pglibdir}/bloom.so
|
|
| 556 |
+%{_pglibdir}/btree_gin.so
|
|
| 557 |
+%{_pglibdir}/btree_gist.so
|
|
| 558 |
+%{_pglibdir}/citext.so
|
|
| 559 |
+%{_pglibdir}/cube.so
|
|
| 560 |
+%{_pglibdir}/dblink.so
|
|
| 561 |
+%{_pglibdir}/earthdistance.so
|
|
| 562 |
+%{_pglibdir}/file_fdw.so*
|
|
| 563 |
+%{_pglibdir}/fuzzystrmatch.so
|
|
| 564 |
+%{_pglibdir}/insert_username.so
|
|
| 565 |
+%{_pglibdir}/isn.so
|
|
| 566 |
+%{_pglibdir}/hstore.so
|
|
| 567 |
+%{_pglibdir}/lo.so
|
|
| 568 |
+%{_pglibdir}/ltree.so
|
|
| 569 |
+%{_pglibdir}/moddatetime.so
|
|
| 570 |
+%{_pglibdir}/old_snapshot.so
|
|
| 571 |
+%{_pglibdir}/pageinspect.so
|
|
| 572 |
+%{_pglibdir}/passwordcheck.so
|
|
| 573 |
+%{_pglibdir}/pgcrypto.so
|
|
| 574 |
+%{_pglibdir}/pgrowlocks.so
|
|
| 575 |
+%{_pglibdir}/pgstattuple.so
|
|
| 576 |
+%{_pglibdir}/pg_buffercache.so
|
|
| 577 |
+%{_pglibdir}/pg_freespacemap.so
|
|
| 578 |
+%{_pglibdir}/pg_prewarm.so
|
|
| 579 |
+%{_pglibdir}/pg_stat_statements.so
|
|
| 580 |
+%{_pglibdir}/pg_surgery.so
|
|
| 581 |
+%{_pglibdir}/pg_trgm.so
|
|
| 582 |
+%{_pglibdir}/pg_visibility.so
|
|
| 583 |
+%{_pglibdir}/pgxml.so
|
|
| 584 |
+%{_pglibdir}/postgres_fdw.so
|
|
| 585 |
+%{_pglibdir}/refint.so
|
|
| 586 |
+%{_pglibdir}/seg.so
|
|
| 587 |
+%{_pglibdir}/sslinfo.so
|
|
| 588 |
+%{_pglibdir}/tablefunc.so
|
|
| 589 |
+%{_pglibdir}/tcn.so
|
|
| 590 |
+%{_pglibdir}/test_decoding.so
|
|
| 591 |
+%{_pglibdir}/tsm_system_rows.so
|
|
| 592 |
+%{_pglibdir}/tsm_system_time.so
|
|
| 593 |
+%{_pglibdir}/unaccent.so
|
|
| 594 |
+%{_pglibdir}/uuid-ossp.so
|
|
| 595 |
+%{_pglibdir}/basebackup_to_shell.so
|
|
| 596 |
+%{_pglibdir}/basic_archive.so
|
|
| 597 |
+%{_pglibdir}/pg_walinspect.so
|
|
| 598 |
+%{_pgmandir}/man1/oid2name.*
|
|
| 599 |
+%{_pgmandir}/man1/pg_recvlogical.*
|
|
| 600 |
+%{_pgmandir}/man1/vacuumlo.*
|
|
| 601 |
+ |
|
| 602 |
+%files llvmjit |
|
| 603 |
+%defattr(-,root,root) |
|
| 604 |
+%{_pglibdir}/bitcode/*
|
|
| 605 |
+%{_pglibdir}/llvmjit.so
|
|
| 606 |
+%{_pglibdir}/llvmjit_types.bc
|
|
| 607 |
+ |
|
| 608 |
+%files devel |
|
| 609 |
+%defattr(-,root,root) |
|
| 610 |
+%{_pgbindir}/ecpg
|
|
| 611 |
+%{_pgincludedir}/*
|
|
| 612 |
+%{_pglibdir}/libpq.so
|
|
| 613 |
+%{_pglibdir}/libecpg.so
|
|
| 614 |
+%{_pglibdir}/libecpg_compat.so
|
|
| 615 |
+%{_pglibdir}/libpgtypes.so
|
|
| 616 |
+%{_pglibdir}/libpq.a
|
|
| 617 |
+%{_pglibdir}/libecpg.a
|
|
| 618 |
+%{_pglibdir}/libecpg_compat.a
|
|
| 619 |
+%{_pglibdir}/libpgcommon.a
|
|
| 620 |
+%{_pglibdir}/libpgcommon_shlib.a
|
|
| 621 |
+%{_pglibdir}/libpgfeutils.a
|
|
| 622 |
+%{_pglibdir}/libpgport.a
|
|
| 623 |
+%{_pglibdir}/libpgport_shlib.a
|
|
| 624 |
+%{_pglibdir}/libpgtypes.a
|
|
| 625 |
+%{_pglibdir}/pkgconfig/*
|
|
| 626 |
+%{_pglibdir}/pgxs/*
|
|
| 627 |
+%{_pgmandir}/man1/ecpg.*
|
|
| 628 |
+ |
|
| 629 |
+%files plperl |
|
| 630 |
+%defattr(-,root,root) |
|
| 631 |
+%{_pgdatadir}/extension/bool_plperl*
|
|
| 632 |
+%{_pgdatadir}/extension/hstore_plperl*
|
|
| 633 |
+%{_pgdatadir}/extension/jsonb_plperl*
|
|
| 634 |
+%{_pgdatadir}/extension/plperl*
|
|
| 635 |
+%{_pglibdir}/bool_plperl.so
|
|
| 636 |
+%{_pglibdir}/hstore_plperl.so
|
|
| 637 |
+%{_pglibdir}/jsonb_plperl.so
|
|
| 638 |
+%{_pglibdir}/plperl.so
|
|
| 639 |
+ |
|
| 640 |
+%files pltcl |
|
| 641 |
+%defattr(-,root,root) |
|
| 642 |
+%{_pgdatadir}/extension/pltcl*
|
|
| 643 |
+%{_pglibdir}/pltcl.so
|
|
| 644 |
+ |
|
| 645 |
+%files plpython3 |
|
| 646 |
+%defattr(-,root,root) |
|
| 647 |
+%{_pgdatadir}/extension/hstore_plpython3*
|
|
| 648 |
+%{_pgdatadir}/extension/ltree_plpython3*
|
|
| 649 |
+%{_pgdatadir}/extension/jsonb_plpython3*
|
|
| 650 |
+%{_pgdatadir}/extension/plpython3*
|
|
| 651 |
+%{_pglibdir}/hstore_plpython3.so
|
|
| 652 |
+%{_pglibdir}/jsonb_plpython3.so
|
|
| 653 |
+%{_pglibdir}/ltree_plpython3.so
|
|
| 654 |
+%{_pglibdir}/plpython3.so
|
|
| 655 |
+ |
|
| 656 |
+%changelog |
|
| 657 |
+* Tue Nov 14 2023 Shreenidhi Shedi <sshedi@vmware.com> 16.1-1 |
|
| 658 |
+- Initial version. |
| ... | ... |
@@ -3,7 +3,7 @@ |
| 3 | 3 |
Summary: Python-PostgreSQL Database Adapter |
| 4 | 4 |
Name: python3-psycopg2 |
| 5 | 5 |
Version: 2.9.3 |
| 6 |
-Release: 4%{?dist}
|
|
| 6 |
+Release: 5%{?dist}
|
|
| 7 | 7 |
Url: https://pypi.python.org/pypi/psycopg2 |
| 8 | 8 |
License: LGPL with exceptions or ZPL |
| 9 | 9 |
Group: Development/Languages/Python |
| ... | ... |
@@ -15,10 +15,10 @@ Source0: https://files.pythonhosted.org/packages/source/p/psycopg2/%{srcname}-%{
|
| 15 | 15 |
|
| 16 | 16 |
BuildRequires: python3-devel |
| 17 | 17 |
BuildRequires: python3-setuptools |
| 18 |
-BuildRequires: postgresql15-devel |
|
| 18 |
+BuildRequires: postgresql16-devel |
|
| 19 | 19 |
|
| 20 | 20 |
Requires: python3 |
| 21 |
-Requires: (postgresql15 or postgresql14 or postgresql13) |
|
| 21 |
+Requires: (postgresql16 or postgresql15 or postgresql14 or postgresql13) |
|
| 22 | 22 |
|
| 23 | 23 |
%description |
| 24 | 24 |
Psycopg is the most popular PostgreSQL database adapter for the Python programming language. Its main features are the complete implementation of the Python DB API 2.0 specification and the thread safety (several threads can share the same connection). It was designed for heavily multi-threaded applications that create and destroy lots of cursors and make a large number of concurrent “INSERT”s or “UPDATE”s. |
| ... | ... |
@@ -36,7 +36,6 @@ Psycopg 2 is both Unicode and Python 3 friendly. |
| 36 | 36 |
%install |
| 37 | 37 |
%py3_install |
| 38 | 38 |
|
| 39 |
-%if 0%{?with_check}
|
|
| 40 | 39 |
%check |
| 41 | 40 |
%define user postgres |
| 42 | 41 |
%define data_dir "/home/%{user}/data"
|
| ... | ... |
@@ -65,13 +64,14 @@ su - %{user} -c 'pg_ctl -D %{data_dir} stop'
|
| 65 | 65 |
rm -rf %{data_dir}
|
| 66 | 66 |
userdel -rf %{user}
|
| 67 | 67 |
groupdel -f %{user}
|
| 68 |
-%endif |
|
| 69 | 68 |
|
| 70 | 69 |
%files |
| 71 | 70 |
%defattr(-,root,root,-) |
| 72 | 71 |
%{python3_sitelib}/*
|
| 73 | 72 |
|
| 74 | 73 |
%changelog |
| 74 |
+* Thu Dec 07 2023 Shreenidhi Shedi <sshedi@vmware.com> 2.9.3-5 |
|
| 75 |
+- Build with pgsql16 |
|
| 75 | 76 |
* Fri Jan 20 2023 Shreenidhi Shedi <sshedi@vmware.com> 2.9.3-4 |
| 76 | 77 |
- Remove pgsql-12 dependency |
| 77 | 78 |
* Thu Jan 05 2023 Shreenidhi Shedi <sshedi@vmware.com> 2.9.3-3 |
| 78 | 79 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,60 @@ |
| 0 |
+%define srcname repmgr |
|
| 1 |
+ |
|
| 2 |
+%define _pg16basedir %{_usr}/pgsql/16
|
|
| 3 |
+ |
|
| 4 |
+Summary: Replication Manager for PostgreSQL Clusters |
|
| 5 |
+Name: repmgr16 |
|
| 6 |
+Version: 5.3.3 |
|
| 7 |
+Release: 1%{?dist}
|
|
| 8 |
+License: GNU Public License (GPL) v3 |
|
| 9 |
+URL: https://repmgr.org |
|
| 10 |
+Group: Applications/Databases |
|
| 11 |
+Vendor: VMware, Inc. |
|
| 12 |
+Distribution: Photon |
|
| 13 |
+ |
|
| 14 |
+Source0: https://repmgr.org/download/%{srcname}-%{version}.tar.gz
|
|
| 15 |
+%define sha512 %{srcname}=938eabd6a73296e657c199878050a7fac82285da9613d0fff861e969865a4c3725a13b548e84a17ee035ef536a738b67411b9c93fdafd8698bb76844f0834d15
|
|
| 16 |
+ |
|
| 17 |
+BuildRequires: cpio |
|
| 18 |
+BuildRequires: Linux-PAM-devel |
|
| 19 |
+BuildRequires: postgresql16-devel |
|
| 20 |
+BuildRequires: cyrus-sasl |
|
| 21 |
+BuildRequires: openldap |
|
| 22 |
+BuildRequires: krb5-devel |
|
| 23 |
+BuildRequires: libedit-devel |
|
| 24 |
+ |
|
| 25 |
+Requires: libedit |
|
| 26 |
+Requires: postgresql16 |
|
| 27 |
+Requires: openssl |
|
| 28 |
+Requires: krb5 |
|
| 29 |
+Requires: openldap |
|
| 30 |
+Requires: cyrus-sasl |
|
| 31 |
+Requires: zlib |
|
| 32 |
+Requires: readline |
|
| 33 |
+ |
|
| 34 |
+%description |
|
| 35 |
+repmgr is an open-source tool suite for managing replication and failover in a cluster of PostgreSQL servers. |
|
| 36 |
+ |
|
| 37 |
+%prep |
|
| 38 |
+%autosetup -p1 -n %{srcname}-%{version}
|
|
| 39 |
+ |
|
| 40 |
+%build |
|
| 41 |
+%configure |
|
| 42 |
+%make_build |
|
| 43 |
+ |
|
| 44 |
+%install |
|
| 45 |
+%make_install %{?_smp_mflags}
|
|
| 46 |
+ |
|
| 47 |
+%clean |
|
| 48 |
+rm -rf %{buildroot}
|
|
| 49 |
+ |
|
| 50 |
+%files |
|
| 51 |
+%defattr(-,root,root) |
|
| 52 |
+%exclude %dir %{_libdir}/debug
|
|
| 53 |
+%{_pg16basedir}/bin/*
|
|
| 54 |
+%{_pg16basedir}/lib/*
|
|
| 55 |
+%{_pg16basedir}/share/*
|
|
| 56 |
+ |
|
| 57 |
+%changelog |
|
| 58 |
+* Thu Dec 07 2023 Shreenidhi Shedi <sshedi@vmware.com> 5.3.3-1 |
|
| 59 |
+- Build with pgsql16 |