Subject: [PATCH] PostgreSQL 18: add prep18 target

From: Marcin Cieślak <[email-masked]>
Date: Thu, 24 Apr 2025 11:12:52 +0000

---
  rpm/redhat/global/Makefile.global      |  1 +
  rpm/redhat/global/Makefile.global-PG18 | 25 +++++++++++++++++++++++++
  2 files changed, 26 insertions(+)
  create mode 100644 rpm/redhat/global/Makefile.global-PG18

diff --git a/rpm/redhat/global/Makefile.global b/rpm/redhat/global/Makefile.global
index 7283cb13d..02d04fbc8 100644
--- a/rpm/redhat/global/Makefile.global
+++ b/rpm/redhat/global/Makefile.global
@@ -39,3 +39,4 @@ include ../../../../global/Makefile.global-PG16
  include ../../../../global/Makefile.global-PG17-testing
  include ../../../../global/Makefile.global-PG17
  include ../../../../global/Makefile.global-PG18-testing
+include ../../../../global/Makefile.global-PG18
diff --git a/rpm/redhat/global/Makefile.global-PG18 b/rpm/redhat/global/Makefile.global-PG18
new file mode 100644
index 000000000..b9c3487c3
--- /dev/null
+++ b/rpm/redhat/global/Makefile.global-PG18
@@ -0,0 +1,25 @@
+#################################
+# Makefile for PostgreSQL 18	#
+# packaging	  	 	#
+# https://yum.postgresql.org	#
+#			   	#
+# Devrim Gunduz		   	#
+# [email-masked]	   	#
+#################################
+#			 	#
+#				#
+# build target is for      	#
+# RPM buildfarm		   	#
+#			   	#
+#			   	#
+#################################
+
+
+## PostgreSQL 18
+
+prep18:
+	if [ -f dead.package ]; then echo "This package is marked as dead. Build won't continue"; exit 1; fi
+	# Update spec file, patches, etc, before running spectool:
+	git pull
+	# Use spectool to download source files, especially tarballs.
+	spectool -g -S --define "pgmajorversion 18" --define "pginstdir /usr/pgsql-18" --define "pgpackageversion 18" $(SPECFILE)
-- 
2.11.4.GIT

--2201072851-1882024537-1745493925=:1031
Content-Type: application/pkcs7-signature; name=smime.p7s
Content-Transfer-Encoding: BASE64
Content-Description: S/MIME Cryptographic Signature
Content-Disposition: attachment; filename=smime.p7s

--2201072851-1882024537-1745493925=:1031--