4 Commits

2 changed files with 21 additions and 11 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Fri May 9 20:37:08 UTC 2025 - Marcus Rueckert <mrueckert@suse.de>
- Bump major and default to 18 for Factory and TW.
-------------------------------------------------------------------
Wed Dec 11 13:50:25 UTC 2024 - Reinhard Max <max@suse.com>
- Bump default to 17 for SLE-15-SP7.
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Nov 13 15:52:30 UTC 2024 - Reinhard Max <max@suse.com> Wed Nov 13 15:52:30 UTC 2024 - Reinhard Max <max@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package postgresql # spec file for package postgresql
# #
# Copyright (c) 2016 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2025 SUSE LLC and contributors
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -12,11 +12,12 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
%define pgmajor 17
%define defaultpackage postgresql17 %define pgmajor 18
%define defaultpackage postgresql18
%if ! %{defined _rpmmacrodir} %if ! %{defined _rpmmacrodir}
%define _rpmmacrodir %{_rpmconfigdir}/macros.d %define _rpmmacrodir %{_rpmconfigdir}/macros.d
@@ -54,7 +55,7 @@ License: PostgreSQL
Group: Productivity/Databases/Tools Group: Productivity/Databases/Tools
Version: %pgmajor Version: %pgmajor
Release: 0 Release: 0
Url: https://www.postgresql.org/ URL: https://www.postgresql.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
Provides: postgresql-noarch = %version-%release Provides: postgresql-noarch = %version-%release
Requires: postgresql-implementation Requires: postgresql-implementation
@@ -63,6 +64,9 @@ Recommends: %defaultpackage
# In June 2020 we changed the package layout for PostgreSQL and # In June 2020 we changed the package layout for PostgreSQL and
# conflict with older releases to get a clean cut-over. # conflict with older releases to get a clean cut-over.
Conflicts: postgresql < 9 Conflicts: postgresql < 9
Conflicts: postgresql10 < 10.13
Conflicts: postgresql11 < 11.8
Conflicts: postgresql12 < 12.3
Conflicts: postgresql90 Conflicts: postgresql90
Conflicts: postgresql91 Conflicts: postgresql91
Conflicts: postgresql92 Conflicts: postgresql92
@@ -70,9 +74,6 @@ Conflicts: postgresql93
Conflicts: postgresql94 < 9.4.26 Conflicts: postgresql94 < 9.4.26
Conflicts: postgresql95 < 9.5.22 Conflicts: postgresql95 < 9.5.22
Conflicts: postgresql96 < 9.6.18 Conflicts: postgresql96 < 9.6.18
Conflicts: postgresql10 < 10.13
Conflicts: postgresql11 < 11.8
Conflicts: postgresql12 < 12.3
BuildArch: noarch BuildArch: noarch
Source0: postgresql-init Source0: postgresql-init
Source1: postgresql-sysconfig Source1: postgresql-sysconfig
@@ -133,7 +134,6 @@ BuildRequires: pkgconfig(systemd)
Requires(postun): %insserv_prereq Requires(postun): %insserv_prereq
%endif %endif
%description server %description server
PostgreSQL is an advanced object-relational database management system PostgreSQL is an advanced object-relational database management system
that supports an extended subset of the SQL standard, including that supports an extended subset of the SQL standard, including
@@ -186,8 +186,8 @@ Summary: Helper package to pull all dependencies to build with llvm suppo
Group: Productivity/Databases/Servers Group: Productivity/Databases/Servers
Provides: postgresql-llvmjit-devel-noarch = %version-%release Provides: postgresql-llvmjit-devel-noarch = %version-%release
Requires: postgresql = %version-%release Requires: postgresql = %version-%release
Requires: postgresql-server-devel-noarch
Requires: postgresql-llvmjit-devel-implementation Requires: postgresql-llvmjit-devel-implementation
Requires: postgresql-server-devel-noarch
%description llvmjit-devel %description llvmjit-devel
PostgreSQL is an advanced object-relational database management system PostgreSQL is an advanced object-relational database management system
@@ -381,13 +381,13 @@ install -D -m 0644 %{SOURCE8} %{buildroot}%{_rpmmacrodir}/macros.%{name}
install -Dm0644 %{SOURCE9} %{buildroot}%{_sysusersdir}/%{name}-server.conf install -Dm0644 %{SOURCE9} %{buildroot}%{_sysusersdir}/%{name}-server.conf
%endif %endif
%define eflag /run/postgresql-was-enabled %define eflag /run/postgresql-was-enabled
%define aflag /run/postgresql-was-running %define aflag /run/postgresql-was-running
%if %{with sysusers} %if %{with sysusers}
%pre server -f %{name}-server.pre %pre server -f %{name}-server.pre
%else %else
%pre server %pre server
getent group postgres > /dev/null || getent group postgres > /dev/null ||
groupadd -g 26 -o -r postgres groupadd -g 26 -o -r postgres