Compare commits

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

28 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
Filip Janus
1bc1753d81 update to 16.6
stick with std=c18
2025-01-29 12:31:27 +00:00
Fedora Release Engineering
705af7d6d4 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-18 10:38:46 +00:00
Pete Walter
84c13e436e Rebuild for ICU 76 2024-12-08 22:39:37 +00:00
Yaakov Selkowitz
e0a3c723a9 Fix tclconfig location for flatpaks
As of F41, tcl is part of the flatpak runtime, and is therefore in /usr
even when building in /app.
2024-09-26 10:55:11 -04:00
Yaakov Selkowitz
0b4a6b39f4 Fix flatpak build
tzdata is part of the runtime and therefore remains in /usr even for
flatpaks.  The initscripts (which are unused in flatpaks) are installed
into /usr regardless, just like the systemd units.
2024-09-17 01:06:15 +00:00
Filip
4055d7a0f2 Fix typos in provides 2024-09-16 21:08:41 +02:00
Filip Janus
fed07ce08a Add Obsoletes: postgresqlXX to make the upgrade path from alternative version clear 2024-08-28 10:01:12 +02:00
6 changed files with 150 additions and 21 deletions

18
.gitignore vendored
View file

@ -7,3 +7,21 @@
/postgresql-16.3.tar.bz2
/postgresql-15.7.tar.bz2.sha256
/postgresql-16.3.tar.bz2.sha256
/postgresql-16.6.tar.bz2
/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}
%{!?selinux:%global selinux 1}
%{!?runselftest:%global runselftest 1}
%{!?postgresql_default:%global postgresql_default 1}
%{!?postgresql_default:%global postgresql_default 0}
%global majorname postgresql
%global majorversion 16
@ -47,8 +47,8 @@
Summary: PostgreSQL client programs
Name: %{majorname}%{majorversion}
Version: %{majorversion}.3
Release: 4%{?dist}
Version: %{majorversion}.11
Release: 1%{?dist}
# The PostgreSQL license is very similar to other MIT licenses, but the OSI
# recognizes it as an independent license, so we do as well.
@ -60,7 +60,7 @@ Url: http://www.postgresql.org/
# that this be kept up with the latest minor release of the previous series;
# but update when bugs affecting pg_dump output are fixed.
%global prevmajorversion 15
%global prevversion %{prevmajorversion}.7
%global prevversion %{prevmajorversion}.15
%global prev_prefix %{_libdir}/pgsql/postgresql-%{prevmajorversion}
%global precise_version %{?epoch:%epoch:}%version-%release
@ -107,6 +107,7 @@ Summary: PostgreSQL client programs
BuildRequires: make
BuildRequires: lz4-devel
BuildRequires: libzstd-devel
BuildRequires: gcc
BuildRequires: perl(ExtUtils::MakeMaker) glibc-devel bison flex gawk
BuildRequires: perl(ExtUtils::Embed), perl-devel
@ -178,6 +179,7 @@ BuildRequires: libicu-devel
%define postgresqlXX_if_default() %{expand:\
Provides: postgresql%{majorversion}%{?1:-%{1}} = %precise_version\
Provides: postgresql%{majorversion}%{?1:-%{1}}%{?_isa} = %precise_version\
Obsoletes: postgresql%{majorversion}%{?1:-%{1}}\
}
%else
%define postgresqlXX_if_default() %{nil}
@ -263,7 +265,6 @@ will interact with a PostgreSQL server.
%package -n %{pkgname}-server
Summary: The programs needed to create and run a PostgreSQL server
Requires: %{pkgname}%{?_isa} = %precise_version
Requires(pre): /usr/sbin/useradd
# We require this to be present for %%{_prefix}/lib/tmpfiles.d
Requires: systemd
# Make sure it's there when scriptlets run, too
@ -433,7 +434,7 @@ Requires: %{pkgname}-server%{?_isa} = %precise_version
Provides: %{pkgname}-plpython3 = %precise_version
Provides: %{pkgname}-plpython3%{?_isa} = %precise_version
%virtual_conflicts_and_provides python3
%virtual_conflicts_and_provides plpython3
%description -n %{pkgname}-plpython3
The postgresql-plpython3 package contains the PL/Python3 procedural language,
@ -449,7 +450,7 @@ Requires: %{pkgname}-server%{?_isa} = %precise_version
Provides: %{pkgname}-pltcl = %precise_version
Provides: %{pkgname}-pltcl%{?_isa} = %precise_version
%virtual_conflicts_and_provides plctl
%virtual_conflicts_and_provides pltcl
%description -n %{pkgname}-pltcl
The postgresql-pltcl package contains the PL/Tcl procedural language,
@ -540,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)
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
# Avoid LTO on armv7hl as it runs out of memory
@ -572,7 +581,7 @@ cd ..
# Fiddling with CFLAGS.
CFLAGS="${CFLAGS:-%optflags}"
CFLAGS="$CFLAGS -DOPENSSL_NO_ENGINE"
CFLAGS="$CFLAGS -DOPENSSL_NO_ENGINE -std=c18"
# Strip out -ffast-math from CFLAGS....
CFLAGS=`echo $CFLAGS|xargs -n 1|grep -v ffast-math|xargs -n 100`
export CFLAGS
@ -584,7 +593,7 @@ common_configure_options='
%endif
%if %pltcl
--with-tcl
--with-tclconfig=%_libdir
--with-tclconfig=/usr/%_lib
%endif
%if %ldap
--with-ldap
@ -614,10 +623,11 @@ common_configure_options='
%if %selinux
--with-selinux
%endif
--with-system-tzdata=%_datadir/zoneinfo
--with-system-tzdata=/usr/share/zoneinfo
--datadir=%_datadir/pgsql
--with-systemd
--with-lz4
--with-zstd
%if %icu
--with-icu
%endif
@ -705,6 +715,7 @@ upgrade_configure ()
--prefix=%prev_prefix \
--disable-rpath \
--with-lz4 \
--with-zstd \
%if %icu
--with-icu \
%endif
@ -737,12 +748,15 @@ upgrade_configure ()
--enable-dtrace \
%endif
%if %selinux
%if %ssl
--with-openssl \
%endif
--with-selinux \
%endif
%if %plpython3
--with-python \
%endif
--with-tclconfig=%_libdir \
--with-tclconfig=/usr/%_lib \
--with-system-tzdata=/usr/share/zoneinfo \
"$@"
}
@ -944,10 +958,9 @@ find_lang_bins pltcl.lst pltcl
%endif
%endif
%pre -n %{pkgname}-server
/usr/sbin/groupadd -g 26 -o -r postgres >/dev/null 2>&1 || :
/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 || :
install -m0644 -D postgresql16.sysusers.conf %{buildroot}%{_sysusersdir}/postgresql16.conf
install -m0644 -D postgresql16.tmpfiles.conf %{buildroot}%{_tmpfilesdir}/postgresql16.conf
%post -n %{pkgname}-server
%systemd_post %service_name
@ -1203,8 +1216,8 @@ make -C postgresql-setup-%{setup_version} check
%{_libdir}/pgsql/pg_prewarm.so
%{_libdir}/pgsql/pgoutput.so
%{_libdir}/pgsql/plpgsql.so
%dir %{_libexecdir}/initscripts/legacy-actions/postgresql
%{_libexecdir}/initscripts/legacy-actions/postgresql/*
%dir %{_usr}/libexec/initscripts/legacy-actions/postgresql
%{_usr}/libexec/initscripts/legacy-actions/postgresql/*
%{_libexecdir}/postgresql-check-db-dir
%dir %{_sysconfdir}/postgresql-setup
%dir %{_sysconfdir}/postgresql-setup/upgrade
@ -1233,6 +1246,8 @@ make -C postgresql-setup-%{setup_version} check
%if %pam
%config(noreplace) /etc/pam.d/postgresql
%endif
%{_sysusersdir}/postgresql16.conf
%{_tmpfilesdir}/postgresql16.conf
%files -n %{pkgname}-server-devel -f devel.lst
@ -1330,6 +1345,72 @@ make -C postgresql-setup-%{setup_version} check
%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
- Update to 16.6
- stick with std=C18
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 16.3-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Sun Dec 08 2024 Pete Walter <pwalter@fedoraproject.org> - 16.3-7
- Rebuild for ICU 76
* Mon Sep 16 2024 Filip Janus <fjanus@redhat.com> - 16.3-6
- Fix typos in provides
* Mon Aug 05 2024 Filip Janus <fjanus@redhat.com> - 16.3-5
- Add Obsoletes of versioned alternative stream from F39
- It makes the upgrade path clear
* Mon Jul 29 2024 Lumír Balhar <lbalhar@redhat.com> - 16.3-4
- Add new systemtap-sdt-dtrace to build deps

View file

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