Compare commits

..

11 commits

Author SHA1 Message Date
Packit
6bf4877c5c Update to 17.6 upstream release
- Resolves: rhbz#2388579

Commit authored by Packit automation (https://packit.dev/)
2025-08-14 16:07:00 +00:00
František Zatloukal
ce06cae99c Rebuilt for icu 77.1 2025-08-06 09:57:06 +02:00
Fedora Release Engineering
98701fed80 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 06:04:46 +00:00
Filip Janus
a468bafe77 Add zstd support
Add tmpfiles.d configuration
2025-07-15 08:48:55 +00:00
Jitka Plesnikova
e5d63f6ddb Perl 5.42 rebuild 2025-07-07 16:17:01 +02:00
Python Maint
4d05b44288 Rebuilt for Python 3.14 2025-06-02 19:59:39 +02:00
Packit
4ff17b0625 Update to 17.5 upstream release
- Resolves: rhbz#2365101

Commit authored by Packit automation (https://packit.dev/)
2025-05-21 07:33:38 +00:00
Packit
658daef190 Update to 17.5 upstream release
- Resolves: rhbz#2365101

Commit authored by Packit automation (https://packit.dev/)
2025-05-08 14:42:30 +00:00
Packit
d2550af127 Update to 17.4 upstream release
- Resolves: rhbz#2326274

Commit authored by Packit automation (https://packit.dev/)
2025-04-03 07:40:44 +00:00
Filip Janus
d77bc28faf onboard packit 2025-04-03 07:17:51 +00:00
Zbigniew Jędrzejewski-Szmek
e0db8743dd Add sysusers.d config file to allow rpm to create users/groups automatically
See https://fedoraproject.org/wiki/Changes/RPMSuportForSystemdSysusers.
2025-02-11 15:53:31 +01:00
2 changed files with 53 additions and 5 deletions

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

@ -106,6 +106,7 @@ Summary: PostgreSQL client programs
%endif
BuildRequires: make
BuildRequires: libzstd-devel
BuildRequires: lz4-devel
BuildRequires: gcc
BuildRequires: perl(ExtUtils::MakeMaker) glibc-devel bison flex gawk
@ -265,7 +266,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
@ -542,6 +542,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 >postgresql17.sysusers.conf <<EOF
u postgres 26 'PostgreSQL Server' /var/lib/pgsql /bin/bash
EOF
cat > postgresql17.tmpfiles.conf <<EOF
d /var/lib/pgsql 0700 postgres postgres -
EOF
%build
# Avoid LTO on armv7hl as it runs out of memory
@ -620,6 +628,7 @@ common_configure_options='
--datadir=%_datadir/pgsql
--with-systemd
--with-lz4
--with-zstd
%if %icu
--with-icu
%endif
@ -707,6 +716,7 @@ upgrade_configure ()
--prefix=%prev_prefix \
--disable-rpath \
--with-lz4 \
--with-zstd \
%if %icu
--with-icu \
%endif
@ -947,10 +957,8 @@ 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 postgresql17.sysusers.conf %{buildroot}%{_sysusersdir}/postgresql17.conf
install -m0644 -D postgresql17.tmpfiles.conf %{buildroot}%{_tmpfilesdir}/postgresql17.conf
%post -n %{pkgname}-server
%systemd_post %service_name
@ -1235,6 +1243,7 @@ make -C postgresql-setup-%{setup_version} check
%{_sbindir}/postgresql-new-systemd-unit
%{_tmpfilesdir}/postgresql.conf
%{_tmpfilesdir}/postgresql17.conf
%{_unitdir}/*postgresql*.service
%attr(700,postgres,postgres) %dir %{?_localstatedir}/lib/pgsql
%attr(644,postgres,postgres) %config(noreplace) %{?_localstatedir}/lib/pgsql/.bash_profile
@ -1244,6 +1253,7 @@ make -C postgresql-setup-%{setup_version} check
%if %pam
%config(noreplace) /etc/pam.d/postgresql
%endif
%{_sysusersdir}/postgresql17.conf
%files -n %{pkgname}-server-devel -f devel.lst
@ -1348,6 +1358,22 @@ make -C postgresql-setup-%{setup_version} check
- Update to version 17.6
- Resolves: rhbz#2388579
* Wed Aug 06 2025 František Zatloukal <fzatlouk@redhat.com> - 17.5-6
- Rebuilt for icu 77.1
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 17.5-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Tue Jul 15 2025 Filip Janus <fjanus@redhat.com> - 17.5-4
- Enable zstd support
- Enable tmpfiles.d configuration
* Mon Jul 07 2025 Jitka Plesnikova <jplesnik@redhat.com> - 17.5-3
- Perl 5.42 rebuild
* Mon Jun 02 2025 Python Maint <python-maint@redhat.com> - 17.5-2
- Rebuilt for Python 3.14
* Wed May 21 2025 Packit <hello@packit.dev> - 17.5-1
- Update to version 17.5
- Resolves: rhbz#2365101
@ -1356,6 +1382,9 @@ make -C postgresql-setup-%{setup_version} check
- Update to version 17.4
- Resolves: rhbz#2326274
* Tue Feb 11 2025 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 17.2-2
- Add sysusers.d config file to allow rpm to create users/groups automatically
* Wed Jan 29 2025 Filip Janus <fjanus@redhat.com> - 17.2-1
- Update to 17.2
- stick with std=c18