diff --git a/.gitignore b/.gitignore index 18a7948..977d4b0 100755 --- a/.gitignore +++ b/.gitignore @@ -7,8 +7,6 @@ /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 diff --git a/packit.yaml b/packit.yaml deleted file mode 100644 index 96a8367..0000000 --- a/packit.yaml +++ /dev/null @@ -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 diff --git a/postgresql16.spec b/postgresql16.spec index 2aaf0a1..c2b72ab 100644 --- a/postgresql16.spec +++ b/postgresql16.spec @@ -29,7 +29,7 @@ %{!?sdt:%global sdt 1} %{!?selinux:%global selinux 1} %{!?runselftest:%global runselftest 1} -%{!?postgresql_default:%global postgresql_default 0} +%{!?postgresql_default:%global postgresql_default 1} %global majorname postgresql %global majorversion 16 @@ -107,7 +107,6 @@ 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 @@ -265,6 +264,7 @@ 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 @@ -450,7 +450,7 @@ Requires: %{pkgname}-server%{?_isa} = %precise_version Provides: %{pkgname}-pltcl = %precise_version Provides: %{pkgname}-pltcl%{?_isa} = %precise_version -%virtual_conflicts_and_provides pltcl +%virtual_conflicts_and_provides plctl %description -n %{pkgname}-pltcl The postgresql-pltcl package contains the PL/Tcl procedural language, @@ -541,14 +541,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) find . -type f -name .gitignore | xargs rm -# Create a sysusers.d config file -cat >postgresql16.sysusers.conf < postgresql16.tmpfiles.conf </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 %systemd_post %service_name @@ -1216,8 +1204,8 @@ make -C postgresql-setup-%{setup_version} check %{_libdir}/pgsql/pg_prewarm.so %{_libdir}/pgsql/pgoutput.so %{_libdir}/pgsql/plpgsql.so -%dir %{_usr}/libexec/initscripts/legacy-actions/postgresql -%{_usr}/libexec/initscripts/legacy-actions/postgresql/* +%dir %{_libexecdir}/initscripts/legacy-actions/postgresql +%{_libexecdir}/initscripts/legacy-actions/postgresql/* %{_libexecdir}/postgresql-check-db-dir %dir %{_sysconfdir}/postgresql-setup %dir %{_sysconfdir}/postgresql-setup/upgrade @@ -1246,8 +1234,6 @@ 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 @@ -1349,63 +1335,20 @@ make -C postgresql-setup-%{setup_version} check - Update to version 16.11 - Resolves: rhbz#2414832 -* Tue Sep 09 2025 Filip Janus - 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 - 16.10-1 - Update to version 16.10 - Resolves: rhbz#2388580 -* Wed Aug 06 2025 František Zatloukal - 16.9-8 -- Rebuilt for icu 77.1 - -* Fri Jul 25 2025 Fedora Release Engineering - 16.9-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild - -* Tue Jul 22 2025 Nikola Davidova - 16.9-6 -- Make Postgresql16 non default - -* Mon Jul 07 2025 Jitka Plesnikova - 16.9-5 -- Perl 5.42 rebuild - -* Wed Jun 25 2025 Filip Janus - 16.9-4 -- Enable zstd - -* Mon Jun 16 2025 Filip Janus - 16.9-3 -- Add tmpfiles.d configuration file definition - -* Mon Jun 02 2025 Python Maint - 16.9-2 -- Rebuilt for Python 3.14 - * Wed May 21 2025 Packit - 16.9-1 - Update to version 16.9 - Resolves: rhbz#2365100 -* Wed Feb 26 2025 Zbigniew Jędrzejewski-Szmek - 16.8-2 -- Add sysusers.d config file to allow rpm to create users/groups automatically - * Wed Feb 26 2025 Packit - 16.8-1 - Update to version 16.8 - Resolves: rhbz#2282749 -* Wed Feb 26 2025 Packit - 16.8-1 -- Update to version 16.8 -- Resolves: rhbz#2282749 - -* Wed Jan 29 2025 Filip Janus - 16.6-1 -- Update to 16.6 -- stick with std=C18 - -* Sat Jan 18 2025 Fedora Release Engineering - 16.3-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild - -* Sun Dec 08 2024 Pete Walter - 16.3-7 -- Rebuild for ICU 76 - -* Mon Sep 16 2024 Filip Janus - 16.3-6 -- Fix typos in provides +* Tue Sep 03 2024 Karolina Surma - 16.3-6 +- Fix the name of the Obsoleted Python package - it's plpython3 * Mon Aug 05 2024 Filip Janus - 16.3-5 - Add Obsoletes of versioned alternative stream from F39