Compare commits
5 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d1471ef51c | ||
|
|
624c332334 | ||
|
|
6eee395fb3 | ||
|
|
fad1c957d6 | ||
|
|
c3993777eb |
2 changed files with 5 additions and 53 deletions
19
packit.yaml
19
packit.yaml
|
|
@ -1,19 +0,0 @@
|
||||||
# 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
|
|
||||||
|
|
@ -106,7 +106,6 @@ Summary: PostgreSQL client programs
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: libzstd-devel
|
|
||||||
BuildRequires: lz4-devel
|
BuildRequires: lz4-devel
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker) glibc-devel bison flex gawk
|
BuildRequires: perl(ExtUtils::MakeMaker) glibc-devel bison flex gawk
|
||||||
|
|
@ -266,6 +265,7 @@ 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
|
||||||
|
|
@ -542,14 +542,6 @@ 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 >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
|
%build
|
||||||
# Avoid LTO on armv7hl as it runs out of memory
|
# Avoid LTO on armv7hl as it runs out of memory
|
||||||
|
|
@ -628,7 +620,6 @@ 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
|
||||||
|
|
@ -716,7 +707,6 @@ 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
|
||||||
|
|
@ -957,8 +947,10 @@ find_lang_bins pltcl.lst pltcl
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
install -m0644 -D postgresql17.sysusers.conf %{buildroot}%{_sysusersdir}/postgresql17.conf
|
%pre -n %{pkgname}-server
|
||||||
install -m0644 -D postgresql17.tmpfiles.conf %{buildroot}%{_tmpfilesdir}/postgresql17.conf
|
/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 || :
|
||||||
|
|
||||||
%post -n %{pkgname}-server
|
%post -n %{pkgname}-server
|
||||||
%systemd_post %service_name
|
%systemd_post %service_name
|
||||||
|
|
@ -1243,7 +1235,6 @@ make -C postgresql-setup-%{setup_version} check
|
||||||
|
|
||||||
%{_sbindir}/postgresql-new-systemd-unit
|
%{_sbindir}/postgresql-new-systemd-unit
|
||||||
%{_tmpfilesdir}/postgresql.conf
|
%{_tmpfilesdir}/postgresql.conf
|
||||||
%{_tmpfilesdir}/postgresql17.conf
|
|
||||||
%{_unitdir}/*postgresql*.service
|
%{_unitdir}/*postgresql*.service
|
||||||
%attr(700,postgres,postgres) %dir %{?_localstatedir}/lib/pgsql
|
%attr(700,postgres,postgres) %dir %{?_localstatedir}/lib/pgsql
|
||||||
%attr(644,postgres,postgres) %config(noreplace) %{?_localstatedir}/lib/pgsql/.bash_profile
|
%attr(644,postgres,postgres) %config(noreplace) %{?_localstatedir}/lib/pgsql/.bash_profile
|
||||||
|
|
@ -1253,7 +1244,6 @@ 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}/postgresql17.conf
|
|
||||||
|
|
||||||
|
|
||||||
%files -n %{pkgname}-server-devel -f devel.lst
|
%files -n %{pkgname}-server-devel -f devel.lst
|
||||||
|
|
@ -1358,22 +1348,6 @@ make -C postgresql-setup-%{setup_version} check
|
||||||
- Update to version 17.6
|
- Update to version 17.6
|
||||||
- Resolves: rhbz#2388579
|
- 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
|
* Wed May 21 2025 Packit <hello@packit.dev> - 17.5-1
|
||||||
- Update to version 17.5
|
- Update to version 17.5
|
||||||
- Resolves: rhbz#2365101
|
- Resolves: rhbz#2365101
|
||||||
|
|
@ -1382,9 +1356,6 @@ make -C postgresql-setup-%{setup_version} check
|
||||||
- Update to version 17.4
|
- Update to version 17.4
|
||||||
- Resolves: rhbz#2326274
|
- 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
|
* Wed Jan 29 2025 Filip Janus <fjanus@redhat.com> - 17.2-1
|
||||||
- Update to 17.2
|
- Update to 17.2
|
||||||
- stick with std=c18
|
- stick with std=c18
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue