Compare commits

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

8 commits

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

Commit authored by Packit automation (https://packit.dev/)
2025-11-26 22:05:15 +00:00
Filip Janus
f0f8c1b879 Enable zstd support 2025-06-25 06:13:34 +00:00
Filip Janus
f315a78a8e Add tmpfiles.d configuration 2025-06-24 22:08:09 +00:00
Zbigniew Jędrzejewski-Szmek
443cfde10a Add sysusers.d config file to allow rpm to create users/groups automatically
See https://fedoraproject.org/wiki/Changes/RPMSuportForSystemdSysusers.
2025-06-24 22:06:24 +00:00
Packit
85d0ff54cd Update to 16.9 upstream release
- Resolves: rhbz#2365100

Commit authored by Packit automation (https://packit.dev/)
2025-05-21 07:18:31 +00:00
Packit
2a3dfe97b7 Update to 16.9 upstream release
- Resolves: rhbz#2365100

Commit authored by Packit automation (https://packit.dev/)
2025-05-08 14:34:48 +00:00
Packit
5c2f5fe0d8 Update to 16.8 upstream release
- Resolves: rhbz#2282749

Commit authored by Packit automation (https://packit.dev/)
2025-02-26 06:49:31 +00:00
Packit
9ee65e234d Update to 16.8 upstream release
- Resolves: rhbz#2282749

Commit authored by Packit automation (https://packit.dev/)
2025-02-26 06:32:36 +00:00
4 changed files with 63 additions and 11 deletions

15
.gitignore vendored
View file

@ -9,3 +9,18 @@
/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-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.

View file

@ -47,7 +47,7 @@
Summary: PostgreSQL client programs
Name: %{majorname}%{majorversion}
Version: %{majorversion}.6
Version: %{majorversion}.11
Release: 1%{?dist}
# 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;
# 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
@ -264,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
@ -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)
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
@ -619,6 +627,7 @@ common_configure_options='
--datadir=%_datadir/pgsql
--with-systemd
--with-lz4
--with-zstd
%if %icu
--with-icu
%endif
@ -706,6 +715,7 @@ upgrade_configure ()
--prefix=%prev_prefix \
--disable-rpath \
--with-lz4 \
--with-zstd \
%if %icu
--with-icu \
%endif
@ -945,10 +955,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
@ -1234,6 +1243,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
@ -1331,6 +1342,29 @@ 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
* Wed Jun 25 2025 Filip Janus <fjanus@redhat.com> - 16.9-3
- Enable zstd
* Wed Jun 25 2025 Filip Janus <fjanus@redhat.com> - 16.9-2
- Add sysusers.d config file to allow rpm to create users/groups automatically
- Add tmpfiles.d configuration file definition
* Wed May 21 2025 Packit <hello@packit.dev> - 16.9-1
- Update to version 16.9
- Resolves: rhbz#2365100
* 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

View file

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