Skip to content

Commit

Permalink
Update PostgreSQL to the latest versions
Browse files Browse the repository at this point in the history
  • Loading branch information
andyone committed Sep 6, 2024
1 parent 93e9f46 commit 6e1e308
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 25 deletions.
19 changes: 14 additions & 5 deletions specs/postgresql-12/postgresql-12.spec
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
%{!?llvm:%global llvm 1}

%define majorver 12
%define minorver 17
%define minorver 20
%define rel 0
%define fullver %{majorver}.%{minorver}
%define pkgver 12
Expand Down Expand Up @@ -124,7 +124,7 @@ BuildRequires: openldap-devel
%endif

%if %llvm
BuildRequires: llvm-devel >= 6.0.0 clang-devel >= 6.0.0
BuildRequires: llvm-devel >= 13.0 clang-devel >= 13.0
%endif

BuildRequires: systemd systemd-devel
Expand Down Expand Up @@ -258,7 +258,7 @@ Summary: Just-in-time compilation support for PostgreSQL
Group: Applications/Databases

Requires: %{name}-server%{?_isa} = %{version}-%{release}
Requires: llvm >= 6.0
Requires: llvm >= 13.0

Provides: %{realname}-llvmjit = %{version}

Expand Down Expand Up @@ -537,7 +537,7 @@ install -dm 755 %{buildroot}%{_tmpfilesdir}
install -pm 644 %{SOURCE13} %{buildroot}%{_tmpfilesdir}/%{realname}-%{majorver}.conf

# Create the directory for sockets
install -dm 755 %{buildroot}%{_localstatedir}/run/%{realname}
install -dm 755 %{buildroot}%{_rundir}/%{realname}

# PGDATA needs removal of group and world permissions due to pg_pwd hole.
install -dm 700 %{buildroot}%{_sharedstatedir}/%{shortname}/%{majorver}/data
Expand Down Expand Up @@ -1005,7 +1005,7 @@ fi
%config(noreplace) %{_sysconfdir}/sysconfig/%{service_name}
%config(noreplace) %{_unitdir}/%{realname}-%{majorver}.service
%config(noreplace) %{_tmpfilesdir}/%{realname}-%{majorver}.conf
%attr(755,%{username},%{groupname}) %dir %{_localstatedir}/run/%{realname}
%attr(755,%{username},%{groupname}) %dir %{_rundir}/%{realname}
%{_initddir}/%{tinyname}%{majorver}
%if %pam
%config(noreplace) %{_sysconfdir}/pam.d/%{realname}%{majorver}
Expand Down Expand Up @@ -1120,6 +1120,15 @@ fi
################################################################################

%changelog
* Fri Sep 06 2024 Anton Novojilov <[email protected]> - 12.20-0
- https://www.postgresql.org/docs/12/release-12-20.html

* Fri Sep 06 2024 Anton Novojilov <[email protected]> - 12.19-0
- https://www.postgresql.org/docs/12/release-12-19.html

* Fri Sep 06 2024 Anton Novojilov <[email protected]> - 12.18-0
- https://www.postgresql.org/docs/12/release-12-18.html

* Sat Dec 09 2023 Anton Novojilov <[email protected]> - 12.17-0
- https://www.postgresql.org/docs/12/release-12-17.html

Expand Down
19 changes: 14 additions & 5 deletions specs/postgresql-13/postgresql-13.spec
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
%{!?llvm:%global llvm 1}

%define majorver 13
%define minorver 13
%define minorver 16
%define rel 0
%define fullver %{majorver}.%{minorver}
%define pkgver 13
Expand Down Expand Up @@ -124,7 +124,7 @@ BuildRequires: openldap-devel
%endif

%if %llvm
BuildRequires: llvm-devel >= 6.0.0 clang-devel >= 6.0.0
BuildRequires: llvm-devel >= 13.0 clang-devel >= 13.0
%endif

BuildRequires: systemd systemd-devel
Expand Down Expand Up @@ -258,7 +258,7 @@ Summary: Just-in-time compilation support for PostgreSQL
Group: Applications/Databases

Requires: %{name}-server%{?_isa} = %{version}-%{release}
Requires: llvm >= 6.0
Requires: llvm >= 13.0

Provides: %{realname}-llvmjit = %{version}

Expand Down Expand Up @@ -536,7 +536,7 @@ install -dm 755 %{buildroot}%{_tmpfilesdir}
install -pm 644 %{SOURCE13} %{buildroot}%{_tmpfilesdir}/%{realname}-%{majorver}.conf

# Create the directory for sockets
install -dm 755 %{buildroot}%{_localstatedir}/run/%{realname}
install -dm 755 %{buildroot}%{_rundir}/%{realname}

# PGDATA needs removal of group and world permissions due to pg_pwd hole.
install -dm 700 %{buildroot}%{_sharedstatedir}/%{shortname}/%{majorver}/data
Expand Down Expand Up @@ -1007,7 +1007,7 @@ fi
%config(noreplace) %{_sysconfdir}/sysconfig/%{service_name}
%config(noreplace) %{_unitdir}/%{realname}-%{majorver}.service
%config(noreplace) %{_tmpfilesdir}/%{realname}-%{majorver}.conf
%attr(755,%{username},%{groupname}) %dir %{_localstatedir}/run/%{realname}
%attr(755,%{username},%{groupname}) %dir %{_rundir}/%{realname}
%{_initddir}/%{tinyname}%{majorver}
%if %pam
%config(noreplace) %{_sysconfdir}/pam.d/%{realname}%{majorver}
Expand Down Expand Up @@ -1122,6 +1122,15 @@ fi
################################################################################

%changelog
* Fri Sep 06 2024 Anton Novojilov <[email protected]> - 13.16-0
- https://www.postgresql.org/docs/13/release-13-16.html

* Fri Sep 06 2024 Anton Novojilov <[email protected]> - 13.15-0
- https://www.postgresql.org/docs/13/release-13-15.html

* Fri Sep 06 2024 Anton Novojilov <[email protected]> - 13.14-0
- https://www.postgresql.org/docs/13/release-13-14.html

* Sat Dec 09 2023 Anton Novojilov <[email protected]> - 13.13-0
- https://www.postgresql.org/docs/13/release-13-13.html

Expand Down
20 changes: 15 additions & 5 deletions specs/postgresql-14/postgresql-14.spec
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
%{!?llvm:%global llvm 1}

%define majorver 14
%define minorver 10
%define minorver 13
%define rel 0
%define fullver %{majorver}.%{minorver}
%define pkgver 14
Expand Down Expand Up @@ -124,7 +124,7 @@ BuildRequires: openldap-devel
%endif

%if %llvm
BuildRequires: llvm-devel >= 6.0.0 clang-devel >= 6.0.0
BuildRequires: llvm-devel >= 13.0 clang-devel >= 13.0
%endif

BuildRequires: systemd systemd-devel
Expand Down Expand Up @@ -258,7 +258,7 @@ Summary: Just-in-time compilation support for PostgreSQL
Group: Applications/Databases

Requires: %{name}-server%{?_isa} = %{version}-%{release}
Requires: llvm >= 6.0
Requires: llvm >= 13.0

Provides: %{realname}-llvmjit = %{version}

Expand Down Expand Up @@ -537,7 +537,7 @@ install -dm 755 %{buildroot}%{_tmpfilesdir}
install -pm 644 %{SOURCE13} %{buildroot}%{_tmpfilesdir}/%{realname}-%{majorver}.conf

# Create the directory for sockets
install -dm 755 %{buildroot}%{_localstatedir}/run/%{realname}
install -dm 755 %{buildroot}%{_rundir}/%{realname}

# PGDATA needs removal of group and world permissions due to pg_pwd hole.
install -dm 700 %{buildroot}%{_sharedstatedir}/%{shortname}/%{majorver}/data
Expand Down Expand Up @@ -1014,7 +1014,7 @@ fi
%config(noreplace) %{_sysconfdir}/sysconfig/%{service_name}
%config(noreplace) %{_unitdir}/%{realname}-%{majorver}.service
%config(noreplace) %{_tmpfilesdir}/%{realname}-%{majorver}.conf
%attr(755,%{username},%{groupname}) %dir %{_localstatedir}/run/%{realname}
%attr(755,%{username},%{groupname}) %dir %{_rundir}/%{realname}
%{_initddir}/%{tinyname}%{majorver}
%if %pam
%config(noreplace) %{_sysconfdir}/pam.d/%{realname}%{majorver}
Expand Down Expand Up @@ -1053,6 +1053,7 @@ fi
%{install_dir}/lib/pgoutput.so
%{install_dir}/lib/plpgsql.so
%{install_dir}/share/extension/plpgsql*
%{install_dir}/share/fix-CVE-*.sql

%config(noreplace) %attr(700,%{username},%{groupname}) %{install_dir}/share/bash_profile

Expand Down Expand Up @@ -1131,6 +1132,15 @@ fi
################################################################################

%changelog
* Fri Sep 06 2024 Anton Novojilov <[email protected]> - 14.13-0
- https://www.postgresql.org/docs/14/release-14-13.html

* Fri Sep 06 2024 Anton Novojilov <[email protected]> - 14.12-0
- https://www.postgresql.org/docs/14/release-14-12.html

* Fri Sep 06 2024 Anton Novojilov <[email protected]> - 14.11-0
- https://www.postgresql.org/docs/14/release-14-11.html

* Sat Dec 09 2023 Anton Novojilov <[email protected]> - 14.10-0
- https://www.postgresql.org/docs/14/release-14-10.html

Expand Down
20 changes: 15 additions & 5 deletions specs/postgresql-15/postgresql-15.spec
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
%{!?zstd:%global zstd 1}

%define majorver 15
%define minorver 5
%define minorver 8
%define rel 0
%define fullver %{majorver}.%{minorver}
%define pkgver 15
Expand Down Expand Up @@ -125,7 +125,7 @@ BuildRequires: openldap-devel
%endif

%if %llvm
BuildRequires: llvm-devel >= 8.0.1 clang-devel >= 8.0.1
BuildRequires: llvm-devel >= 13.0 clang-devel >= 13.0
%endif

%if %zstd
Expand Down Expand Up @@ -264,7 +264,7 @@ Summary: Just-in-time compilation support for PostgreSQL
Group: Applications/Databases

Requires: %{name}-server%{?_isa} = %{version}-%{release}
Requires: llvm >= 6.0
Requires: llvm >= 13.0

Provides: %{realname}-llvmjit = %{version}

Expand Down Expand Up @@ -545,7 +545,7 @@ install -dm 755 %{buildroot}%{_tmpfilesdir}
install -pm 644 %{SOURCE13} %{buildroot}%{_tmpfilesdir}/%{realname}-%{majorver}.conf

# Create the directory for sockets
install -dm 755 %{buildroot}%{_localstatedir}/run/%{realname}
install -dm 755 %{buildroot}%{_rundir}/%{realname}

# PGDATA needs removal of group and world permissions due to pg_pwd hole.
install -dm 700 %{buildroot}%{_sharedstatedir}/%{shortname}/%{majorver}/data
Expand Down Expand Up @@ -1026,7 +1026,7 @@ fi
%config(noreplace) %{_sysconfdir}/sysconfig/%{service_name}
%config(noreplace) %{_unitdir}/%{realname}-%{majorver}.service
%config(noreplace) %{_tmpfilesdir}/%{realname}-%{majorver}.conf
%attr(755,%{username},%{groupname}) %dir %{_localstatedir}/run/%{realname}
%attr(755,%{username},%{groupname}) %dir %{_rundir}/%{realname}
%{_initddir}/%{tinyname}%{majorver}
%if %pam
%config(noreplace) %{_sysconfdir}/pam.d/%{realname}%{majorver}
Expand Down Expand Up @@ -1065,6 +1065,7 @@ fi
%{install_dir}/lib/pgoutput.so
%{install_dir}/lib/plpgsql.so
%{install_dir}/share/extension/plpgsql*
%{install_dir}/share/fix-CVE-*.sql

%config(noreplace) %attr(700,%{username},%{groupname}) %{install_dir}/share/bash_profile

Expand Down Expand Up @@ -1143,6 +1144,15 @@ fi
################################################################################

%changelog
* Fri Sep 06 2024 Anton Novojilov <[email protected]> - 15.8-0
- https://www.postgresql.org/docs/15/release-15-8.html

* Fri Sep 06 2024 Anton Novojilov <[email protected]> - 15.7-0
- https://www.postgresql.org/docs/15/release-15-7.html

* Fri Sep 06 2024 Anton Novojilov <[email protected]> - 15.6-0
- https://www.postgresql.org/docs/15/release-15-6.html

* Sat Dec 09 2023 Anton Novojilov <[email protected]> - 15.5-0
- https://www.postgresql.org/docs/15/release-15-5.html

Expand Down
20 changes: 15 additions & 5 deletions specs/postgresql-16/postgresql-16.spec
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
%{!?zstd:%global zstd 1}

%define majorver 16
%define minorver 1
%define minorver 4
%define rel 0
%define fullver %{majorver}.%{minorver}
%define pkgver 16
Expand Down Expand Up @@ -125,7 +125,7 @@ BuildRequires: openldap-devel
%endif

%if %llvm
BuildRequires: llvm-devel >= 8.0.1 clang-devel >= 8.0.1
BuildRequires: llvm-devel >= 13.0 clang-devel >= 13.0
%endif

%if %zstd
Expand Down Expand Up @@ -264,7 +264,7 @@ Summary: Just-in-time compilation support for PostgreSQL
Group: Applications/Databases

Requires: %{name}-server%{?_isa} = %{version}-%{release}
Requires: llvm >= 6.0
Requires: llvm >= 13.0

Provides: %{realname}-llvmjit = %{version}

Expand Down Expand Up @@ -545,7 +545,7 @@ install -dm 755 %{buildroot}%{_tmpfilesdir}
install -pm 644 %{SOURCE13} %{buildroot}%{_tmpfilesdir}/%{realname}-%{majorver}.conf

# Create the directory for sockets
install -dm 755 %{buildroot}%{_localstatedir}/run/%{realname}
install -dm 755 %{buildroot}%{_rundir}/%{realname}

# PGDATA needs removal of group and world permissions due to pg_pwd hole.
install -dm 700 %{buildroot}%{_sharedstatedir}/%{shortname}/%{majorver}/data
Expand Down Expand Up @@ -1026,7 +1026,7 @@ fi
%config(noreplace) %{_sysconfdir}/sysconfig/%{service_name}
%config(noreplace) %{_unitdir}/%{realname}-%{majorver}.service
%config(noreplace) %{_tmpfilesdir}/%{realname}-%{majorver}.conf
%attr(755,%{username},%{groupname}) %dir %{_localstatedir}/run/%{realname}
%attr(755,%{username},%{groupname}) %dir %{_rundir}/%{realname}
%{_initddir}/%{tinyname}%{majorver}
%if %pam
%config(noreplace) %{_sysconfdir}/pam.d/%{realname}%{majorver}
Expand Down Expand Up @@ -1063,6 +1063,7 @@ fi
%{install_dir}/lib/pgoutput.so
%{install_dir}/lib/plpgsql.so
%{install_dir}/share/extension/plpgsql*
%{install_dir}/share/fix-CVE-*.sql

%config(noreplace) %attr(700,%{username},%{groupname}) %{install_dir}/share/bash_profile

Expand Down Expand Up @@ -1141,6 +1142,15 @@ fi
################################################################################

%changelog
* Fri Sep 06 2024 Anton Novojilov <[email protected]> - 16.4-0
- https://www.postgresql.org/docs/16/release-16-4.html

* Fri Sep 06 2024 Anton Novojilov <[email protected]> - 16.3-0
- https://www.postgresql.org/docs/16/release-16-3.html

* Fri Sep 06 2024 Anton Novojilov <[email protected]> - 16.2-0
- https://www.postgresql.org/docs/16/release-16-2.html

* Sat Dec 09 2023 Anton Novojilov <[email protected]> - 16.1-0
- https://www.postgresql.org/docs/16/release-16-1.html

Expand Down

0 comments on commit 6e1e308

Please sign in to comment.