prep18 target - Mailing list pgsql-pkg-yum

From Marcin Cieslak
Subject prep18 target
Date
Msg-id q40q21r5-o0p1-p97s-6225-6o739s2r0rr3@fncre.vasb
Whole thread Raw
Responses Re: prep18 target
List pgsql-pkg-yum
Hello,

it seems that an attempt to build Postgres 18 fails
for most of the targets because we have no "prep18"
target to download the snapshot.

The snapshot can be downloaded fine with the spectool as well,
so I have added it like below

https://repo.or.cz/pgrpms/saper.git/patch/22f8ae392470d287c6ad69546cbabeca309b898f

(repo https://repo.or.cz/pgrpms/saper.git "add-prep18" branch)

Marcin


From 22f8ae392470d287c6ad69546cbabeca309b898f Mon Sep 17 00:00:00 2001
From: =?utf8?q?Marcin=20Cie=C5=9Blak?= <saper@saper.info>
Date: Thu, 24 Apr 2025 11:12:52 +0000
Subject: [PATCH] PostgreSQL 18: add prep18 target

---
  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               #
+# devrim@gunduz.org           #
+#################################
+#                 #
+#                #
+# 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

Attachment

pgsql-pkg-yum by date:

Previous
From: Marcin Cieslak
Date:
Subject: Re: Empty %files file debugsourcefiles.list
Next
From: Marcin Cieslak
Date:
Subject: Re: prep18 target