Compare commits

...
Sign in to create a new pull request.

21 commits

Author SHA1 Message Date
Packit
54bbb24079 Update to 16.11 upstream release
- Resolves: rhbz#2414832

Commit authored by Packit automation (https://packit.dev/)
2025-11-13 15:05:06 +00:00
Filip Janus
9f35c14618 Add OpenSSL support to upgrade_configure function
- Add --with-openssl parameter to upgrade_configure function
- This ensures upgrade server is compiled with OpenSSL support
- Required for SSL/TLS connections during database upgrades
- Bump release to 16.10-2
2025-09-09 19:53:52 +00:00
Packit
3eef9b7f69 Update to 16.10 upstream release
- Resolves: rhbz#2388580

Commit authored by Packit automation (https://packit.dev/)
2025-08-14 16:06:53 +00:00
František Zatloukal
3004e003d4 Rebuilt for icu 77.1 2025-08-06 09:57:02 +02:00
Fedora Release Engineering
349f48f183 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 06:04:17 +00:00
Nikola Davidova
27a75ba780 Make postgresql16 non default 2025-07-22 13:52:42 +02:00
Jitka Plesnikova
f33689347e Perl 5.42 rebuild 2025-07-07 16:43:50 +02:00
Filip Janus
51276f54f1 Enable zstd support 2025-06-25 06:20:56 +00:00
Filip Janus
042df027b0 Add tmpfiles.d configuration 2025-06-24 21:32:47 +00:00
Python Maint
290d36f9d8 Rebuilt for Python 3.14 2025-06-02 19:59:38 +02:00
Packit
4e5009ca14 Update to 16.9 upstream release
- Resolves: rhbz#2365100

Commit authored by Packit automation (https://packit.dev/)
2025-05-21 07:17:57 +00:00
Packit
72061a9ba2 Update to 16.9 upstream release
- Resolves: rhbz#2365100

Commit authored by Packit automation (https://packit.dev/)
2025-05-08 14:33:41 +00:00
Zbigniew Jędrzejewski-Szmek
792d356289 Add sysusers.d config file to allow rpm to create users/groups automatically
See https://fedoraproject.org/wiki/Changes/RPMSuportForSystemdSysusers.
2025-02-26 22:14:20 +01:00
Packit
78d431c36a Update to 16.8 upstream release
- Resolves: rhbz#2282749

Commit authored by Packit automation (https://packit.dev/)
2025-02-26 06:48:55 +00:00
Filip Janus
4bee6b7687 add packit support for all versions of supported fedora
packit-update-sources.sh script is related to this change
2025-02-26 06:45:03 +00:00
Packit
84ff0438ce Update to 16.8 upstream release
- Resolves: rhbz#2282749

Commit authored by Packit automation (https://packit.dev/)
2025-02-26 06:31:53 +00:00
Filip Janus
8cd443c549 Add missing suffix in packit helper script 2025-02-25 22:09:00 +00:00
Filip Janus
28b8023ffd fix typo in packit helper script 2025-02-24 21:58:57 +00:00
Filip Janus
de696001ac Fix helper script 2025-02-24 21:35:01 +00:00
Filip Janus
90650b6371 add x flag for packit script 2025-02-24 10:58:36 +00:00
Filip Janus
6e4e3dd713 Packit onboarding add helper script 2025-02-24 10:26:12 +00:00
6 changed files with 121 additions and 12 deletions

16
.gitignore vendored
View file

@ -9,3 +9,19 @@
/postgresql-16.3.tar.bz2.sha256 /postgresql-16.3.tar.bz2.sha256
/postgresql-16.6.tar.bz2 /postgresql-16.6.tar.bz2
/postgresql-16.6.tar.bz2.sha256 /postgresql-16.6.tar.bz2.sha256
/postgresql-16.8.tar.bz2
/postgresql-15.12.tar.bz2
/postgresql-16.8.tar.bz2.sha256
/postgresql-15.12.tar.bz2.sha256
/postgresql-16.9.tar.bz2
/postgresql-15.13.tar.bz2
/postgresql-16.9.tar.bz2.sha256
/postgresql-15.13.tar.bz2.sha256
/postgresql-16.10.tar.bz2
/postgresql-15.14.tar.bz2
/postgresql-16.10.tar.bz2.sha256
/postgresql-15.14.tar.bz2.sha256
/postgresql-16.11.tar.bz2
/postgresql-15.15.tar.bz2
/postgresql-16.11.tar.bz2.sha256
/postgresql-15.15.tar.bz2.sha256

3
README.packit Normal file
View file

@ -0,0 +1,3 @@
This repository is maintained by packit.
https://packit.dev/
The file was generated using packit 1.12.0.post1.dev18+gc39b0e7d4.

8
packit-update-sources.sh Executable file
View file

@ -0,0 +1,8 @@
git clone --depth 1 --branch master https://github.com/postgres/postgres.git
pushd postgres
git fetch --tags
NEW_MINOR=$(git tag -l "REL_15_*" | sed -E "s/REL_15_([0-9]+)/\1/" | sort -n | tail -n 1)
popd
pushd $PACKIT_DOWNSTREAM_REPO
sed -i "s/\(%global prevversion %{prevmajorversion}\)\.[0-9]\+/\1.$NEW_MINOR/" $PACKIT_DOWNSTREAM_PACKAGE_NAME.spec
popd

19
packit.yaml Normal file
View file

@ -0,0 +1,19 @@
# See the documentation for more information:
# https://packit.dev/docs/configuration/
actions:
pre-sync:
- bash -c "$PACKIT_DOWNSTREAM_REPO/packit-update-sources.sh"
jobs:
- job: pull_from_upstream
trigger: release
dist_git_branches:
- fedora-all
- job: koji_build
trigger: commit
dist_git_branches:
- fedora-all
- job: bodhi_update
trigger: commit
dist_git_branches:
fedora-all

View file

@ -29,7 +29,7 @@
%{!?sdt:%global sdt 1} %{!?sdt:%global sdt 1}
%{!?selinux:%global selinux 1} %{!?selinux:%global selinux 1}
%{!?runselftest:%global runselftest 1} %{!?runselftest:%global runselftest 1}
%{!?postgresql_default:%global postgresql_default 1} %{!?postgresql_default:%global postgresql_default 0}
%global majorname postgresql %global majorname postgresql
%global majorversion 16 %global majorversion 16
@ -47,7 +47,7 @@
Summary: PostgreSQL client programs Summary: PostgreSQL client programs
Name: %{majorname}%{majorversion} Name: %{majorname}%{majorversion}
Version: %{majorversion}.6 Version: %{majorversion}.11
Release: 1%{?dist} Release: 1%{?dist}
# The PostgreSQL license is very similar to other MIT licenses, but the OSI # The PostgreSQL license is very similar to other MIT licenses, but the OSI
@ -60,7 +60,7 @@ Url: http://www.postgresql.org/
# that this be kept up with the latest minor release of the previous series; # that this be kept up with the latest minor release of the previous series;
# but update when bugs affecting pg_dump output are fixed. # but update when bugs affecting pg_dump output are fixed.
%global prevmajorversion 15 %global prevmajorversion 15
%global prevversion %{prevmajorversion}.7 %global prevversion %{prevmajorversion}.15
%global prev_prefix %{_libdir}/pgsql/postgresql-%{prevmajorversion} %global prev_prefix %{_libdir}/pgsql/postgresql-%{prevmajorversion}
%global precise_version %{?epoch:%epoch:}%version-%release %global precise_version %{?epoch:%epoch:}%version-%release
@ -107,6 +107,7 @@ Summary: PostgreSQL client programs
BuildRequires: make BuildRequires: make
BuildRequires: lz4-devel BuildRequires: lz4-devel
BuildRequires: libzstd-devel
BuildRequires: gcc BuildRequires: gcc
BuildRequires: perl(ExtUtils::MakeMaker) glibc-devel bison flex gawk BuildRequires: perl(ExtUtils::MakeMaker) glibc-devel bison flex gawk
BuildRequires: perl(ExtUtils::Embed), perl-devel BuildRequires: perl(ExtUtils::Embed), perl-devel
@ -264,7 +265,6 @@ will interact with a PostgreSQL server.
%package -n %{pkgname}-server %package -n %{pkgname}-server
Summary: The programs needed to create and run a PostgreSQL server Summary: The programs needed to create and run a PostgreSQL server
Requires: %{pkgname}%{?_isa} = %precise_version Requires: %{pkgname}%{?_isa} = %precise_version
Requires(pre): /usr/sbin/useradd
# We require this to be present for %%{_prefix}/lib/tmpfiles.d # We require this to be present for %%{_prefix}/lib/tmpfiles.d
Requires: systemd Requires: systemd
# Make sure it's there when scriptlets run, too # Make sure it's there when scriptlets run, too
@ -541,6 +541,14 @@ find . -type f -name Makefile -exec sed -i -e "s/SO_MAJOR_VERSION=\s\?\([0-9]\+\
# remove .gitignore files to ensure none get into the RPMs (bug #642210) # remove .gitignore files to ensure none get into the RPMs (bug #642210)
find . -type f -name .gitignore | xargs rm find . -type f -name .gitignore | xargs rm
# Create a sysusers.d config file
cat >postgresql16.sysusers.conf <<EOF
u postgres 26 'PostgreSQL Server' /var/lib/pgsql /bin/bash
EOF
cat > postgresql16.tmpfiles.conf <<EOF
d /var/lib/pgsql 0700 postgres postgres -
EOF
%build %build
# Avoid LTO on armv7hl as it runs out of memory # Avoid LTO on armv7hl as it runs out of memory
@ -619,6 +627,7 @@ common_configure_options='
--datadir=%_datadir/pgsql --datadir=%_datadir/pgsql
--with-systemd --with-systemd
--with-lz4 --with-lz4
--with-zstd
%if %icu %if %icu
--with-icu --with-icu
%endif %endif
@ -706,6 +715,7 @@ upgrade_configure ()
--prefix=%prev_prefix \ --prefix=%prev_prefix \
--disable-rpath \ --disable-rpath \
--with-lz4 \ --with-lz4 \
--with-zstd \
%if %icu %if %icu
--with-icu \ --with-icu \
%endif %endif
@ -738,6 +748,9 @@ upgrade_configure ()
--enable-dtrace \ --enable-dtrace \
%endif %endif
%if %selinux %if %selinux
%if %ssl
--with-openssl \
%endif
--with-selinux \ --with-selinux \
%endif %endif
%if %plpython3 %if %plpython3
@ -945,10 +958,9 @@ find_lang_bins pltcl.lst pltcl
%endif %endif
%endif %endif
%pre -n %{pkgname}-server install -m0644 -D postgresql16.sysusers.conf %{buildroot}%{_sysusersdir}/postgresql16.conf
/usr/sbin/groupadd -g 26 -o -r postgres >/dev/null 2>&1 || : install -m0644 -D postgresql16.tmpfiles.conf %{buildroot}%{_tmpfilesdir}/postgresql16.conf
/usr/sbin/useradd -M -N -g postgres -o -r -d /var/lib/pgsql -s /bin/bash \
-c "PostgreSQL Server" -u 26 postgres >/dev/null 2>&1 || :
%post -n %{pkgname}-server %post -n %{pkgname}-server
%systemd_post %service_name %systemd_post %service_name
@ -1234,6 +1246,8 @@ make -C postgresql-setup-%{setup_version} check
%if %pam %if %pam
%config(noreplace) /etc/pam.d/postgresql %config(noreplace) /etc/pam.d/postgresql
%endif %endif
%{_sysusersdir}/postgresql16.conf
%{_tmpfilesdir}/postgresql16.conf
%files -n %{pkgname}-server-devel -f devel.lst %files -n %{pkgname}-server-devel -f devel.lst
@ -1331,6 +1345,55 @@ make -C postgresql-setup-%{setup_version} check
%changelog %changelog
* Thu Nov 13 2025 Packit <hello@packit.dev> - 16.11-1
- Update to version 16.11
- Resolves: rhbz#2414832
* Tue Sep 09 2025 Filip Janus <fjanus@redhat.com> - 16.10-2
- Add OpenSSL support to upgrade_configure function
- This ensures upgrade server is compiled with OpenSSL support
- Required for SSL/TLS connections during database upgrades
* Thu Aug 14 2025 Packit <hello@packit.dev> - 16.10-1
- Update to version 16.10
- Resolves: rhbz#2388580
* Wed Aug 06 2025 František Zatloukal <fzatlouk@redhat.com> - 16.9-8
- Rebuilt for icu 77.1
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 16.9-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Tue Jul 22 2025 Nikola Davidova <ndavidov@redhat.com> - 16.9-6
- Make Postgresql16 non default
* Mon Jul 07 2025 Jitka Plesnikova <jplesnik@redhat.com> - 16.9-5
- Perl 5.42 rebuild
* Wed Jun 25 2025 Filip Janus <fjanus@redhat.com> - 16.9-4
- Enable zstd
* Mon Jun 16 2025 Filip Janus <fjanus@redhat.com> - 16.9-3
- Add tmpfiles.d configuration file definition
* Mon Jun 02 2025 Python Maint <python-maint@redhat.com> - 16.9-2
- Rebuilt for Python 3.14
* Wed May 21 2025 Packit <hello@packit.dev> - 16.9-1
- Update to version 16.9
- Resolves: rhbz#2365100
* Wed Feb 26 2025 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 16.8-2
- Add sysusers.d config file to allow rpm to create users/groups automatically
* Wed Feb 26 2025 Packit <hello@packit.dev> - 16.8-1
- Update to version 16.8
- Resolves: rhbz#2282749
* Wed Feb 26 2025 Packit <hello@packit.dev> - 16.8-1
- Update to version 16.8
- Resolves: rhbz#2282749
* Wed Jan 29 2025 Filip Janus <fjanus@redhat.com> - 16.6-1 * Wed Jan 29 2025 Filip Janus <fjanus@redhat.com> - 16.6-1
- Update to 16.6 - Update to 16.6
- stick with std=C18 - stick with std=C18

View file

@ -1,5 +1,5 @@
SHA512 (postgresql-16.6.tar.bz2) = ffd6d39fb7aed87241237d68af4934fba1b4ac1be4d3c2833e308e50c21a693796fe54b73e0905365d7557009c40049a23b966aa86765b969797434a0d4bd5f8 SHA512 (postgresql-16.11.tar.bz2) = f11f8f3e5855cfce27108a1bd2122c5a7a1ff37c6d9366d7a96a041aab67a4e4a31e54f0757b6b97c72d841acdcaa97d3eaa765213d4899b2cf7047c549012b8
SHA512 (postgresql-16.6.tar.bz2.sha256) = 2b43dbf07487208f113ebc56958c4e16eb596d39104dc26ffdfded84c196b9fbc12cb52b03775727777fabc297ca26a4c1048b281a3a7b5c20a7bdedc533295f SHA512 (postgresql-15.15.tar.bz2) = efd5dcdb6e45bc13cd4b1b73f4de19fc3ae2bac96e85086cacd649bfbf50969429c40193e86717380759c6995204c18e14ac5352565d5ae85df61c0a127a1562
SHA512 (postgresql-15.7.tar.bz2) = 8a03e2d7a267f0d11c27d90a2fb605725accb41cfebba2b56c735d4af45bb5f977d4ba051a02ac8d31f93253372df3d3b5efdd159e258d6fcc506b73e3ad6e27
SHA512 (postgresql-15.7.tar.bz2.sha256) = bff16a90703353ad9577d827e3f0616ed8f41ee6ebc86d36ca62c199a2339de482e7f2246a6a3ea843136b9b7e654e4d291e31bfc243ae5a32743c22440dc8f5
SHA512 (postgresql-setup-8.9.tar.gz) = 118e9ebf858722a38b0e90324bc1b49fc7058cda601ca0a7e78c94e7b95e89d6dbbc46f377626364b068614ced3cde3cb4733973ad2d71bf17892ad773657ef7 SHA512 (postgresql-setup-8.9.tar.gz) = 118e9ebf858722a38b0e90324bc1b49fc7058cda601ca0a7e78c94e7b95e89d6dbbc46f377626364b068614ced3cde3cb4733973ad2d71bf17892ad773657ef7
SHA512 (postgresql-16.11.tar.bz2.sha256) = 3c07dc85608f8cee5071bd7d404feff1c767afb468a8f41225b73d5df05334dca9a3465e16307a3b5b21c1a44684deab0c496fbd03b9d061e4a9559684876671
SHA512 (postgresql-15.15.tar.bz2.sha256) = dcabc9fceaa557dac1d6d5b014d21ec6edfb7409103651820126351b5534c1605255f36bb18d654cd537f5128e705d2847f2bd52e38c6dd442a21c0722f39b76