pgnodemx: Initial packaging for the PostgreSQL RPM repository
authorDevrim Gunduz <devrim@gunduz.org>
Thu, 10 Jul 2025 12:28:23 +0000 (15:28 +0300)
committerDevrim Gunduz <devrim@gunduz.org>
Thu, 10 Jul 2025 12:28:23 +0000 (15:28 +0300)
44 files changed:
rpm/redhat/13/pgnodemx/EL-10 [new symlink]
rpm/redhat/13/pgnodemx/EL-8 [new symlink]
rpm/redhat/13/pgnodemx/EL-9 [new symlink]
rpm/redhat/13/pgnodemx/F-41 [new symlink]
rpm/redhat/13/pgnodemx/F-42 [new symlink]
rpm/redhat/13/pgnodemx/SLES-15 [new symlink]
rpm/redhat/14/pgnodemx/EL-10 [new symlink]
rpm/redhat/14/pgnodemx/EL-8 [new symlink]
rpm/redhat/14/pgnodemx/EL-9 [new symlink]
rpm/redhat/14/pgnodemx/F-41 [new symlink]
rpm/redhat/14/pgnodemx/F-42 [new symlink]
rpm/redhat/14/pgnodemx/SLES-15 [new symlink]
rpm/redhat/15/pgnodemx/EL-10 [new symlink]
rpm/redhat/15/pgnodemx/EL-8 [new symlink]
rpm/redhat/15/pgnodemx/EL-9 [new symlink]
rpm/redhat/15/pgnodemx/F-41 [new symlink]
rpm/redhat/15/pgnodemx/F-42 [new symlink]
rpm/redhat/15/pgnodemx/SLES-15 [new symlink]
rpm/redhat/16/pgnodemx/EL-10 [new symlink]
rpm/redhat/16/pgnodemx/EL-8 [new symlink]
rpm/redhat/16/pgnodemx/EL-9 [new symlink]
rpm/redhat/16/pgnodemx/F-41 [new symlink]
rpm/redhat/16/pgnodemx/F-42 [new symlink]
rpm/redhat/16/pgnodemx/SLES-15 [new symlink]
rpm/redhat/17/pgnodemx/EL-10 [new symlink]
rpm/redhat/17/pgnodemx/EL-8 [new symlink]
rpm/redhat/17/pgnodemx/EL-9 [new symlink]
rpm/redhat/17/pgnodemx/F-41 [new symlink]
rpm/redhat/17/pgnodemx/F-42 [new symlink]
rpm/redhat/17/pgnodemx/SLES-15 [new symlink]
rpm/redhat/main/non-common/pgnodemx/EL-10/Makefile [new file with mode: 0644]
rpm/redhat/main/non-common/pgnodemx/EL-10/pgnodemx.spec [new symlink]
rpm/redhat/main/non-common/pgnodemx/EL-8/Makefile [new file with mode: 0644]
rpm/redhat/main/non-common/pgnodemx/EL-8/pgnodemx.spec [new symlink]
rpm/redhat/main/non-common/pgnodemx/EL-9/Makefile [new file with mode: 0644]
rpm/redhat/main/non-common/pgnodemx/EL-9/pgnodemx.spec [new symlink]
rpm/redhat/main/non-common/pgnodemx/F-41/Makefile [new file with mode: 0644]
rpm/redhat/main/non-common/pgnodemx/F-41/pgnodemx.spec [new symlink]
rpm/redhat/main/non-common/pgnodemx/F-42/Makefile [new file with mode: 0644]
rpm/redhat/main/non-common/pgnodemx/F-42/pgnodemx.spec [new symlink]
rpm/redhat/main/non-common/pgnodemx/SLES-15/Makefile [new file with mode: 0644]
rpm/redhat/main/non-common/pgnodemx/SLES-15/pgnodemx.spec [new symlink]
rpm/redhat/main/non-common/pgnodemx/main/Makefile [new file with mode: 0644]
rpm/redhat/main/non-common/pgnodemx/main/pgnodemx.spec [new file with mode: 0644]

diff --git a/rpm/redhat/13/pgnodemx/EL-10 b/rpm/redhat/13/pgnodemx/EL-10
new file mode 120000 (symlink)
index 0000000..27cfbea
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pgnodemx/EL-10
\ No newline at end of file
diff --git a/rpm/redhat/13/pgnodemx/EL-8 b/rpm/redhat/13/pgnodemx/EL-8
new file mode 120000 (symlink)
index 0000000..2b8dc39
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pgnodemx/EL-8
\ No newline at end of file
diff --git a/rpm/redhat/13/pgnodemx/EL-9 b/rpm/redhat/13/pgnodemx/EL-9
new file mode 120000 (symlink)
index 0000000..7a5e8ce
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pgnodemx/EL-9
\ No newline at end of file
diff --git a/rpm/redhat/13/pgnodemx/F-41 b/rpm/redhat/13/pgnodemx/F-41
new file mode 120000 (symlink)
index 0000000..d9629e9
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pgnodemx/F-41
\ No newline at end of file
diff --git a/rpm/redhat/13/pgnodemx/F-42 b/rpm/redhat/13/pgnodemx/F-42
new file mode 120000 (symlink)
index 0000000..bc5bdf1
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pgnodemx/F-42
\ No newline at end of file
diff --git a/rpm/redhat/13/pgnodemx/SLES-15 b/rpm/redhat/13/pgnodemx/SLES-15
new file mode 120000 (symlink)
index 0000000..152d7ee
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pgnodemx/SLES-15
\ No newline at end of file
diff --git a/rpm/redhat/14/pgnodemx/EL-10 b/rpm/redhat/14/pgnodemx/EL-10
new file mode 120000 (symlink)
index 0000000..27cfbea
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pgnodemx/EL-10
\ No newline at end of file
diff --git a/rpm/redhat/14/pgnodemx/EL-8 b/rpm/redhat/14/pgnodemx/EL-8
new file mode 120000 (symlink)
index 0000000..2b8dc39
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pgnodemx/EL-8
\ No newline at end of file
diff --git a/rpm/redhat/14/pgnodemx/EL-9 b/rpm/redhat/14/pgnodemx/EL-9
new file mode 120000 (symlink)
index 0000000..7a5e8ce
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pgnodemx/EL-9
\ No newline at end of file
diff --git a/rpm/redhat/14/pgnodemx/F-41 b/rpm/redhat/14/pgnodemx/F-41
new file mode 120000 (symlink)
index 0000000..d9629e9
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pgnodemx/F-41
\ No newline at end of file
diff --git a/rpm/redhat/14/pgnodemx/F-42 b/rpm/redhat/14/pgnodemx/F-42
new file mode 120000 (symlink)
index 0000000..bc5bdf1
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pgnodemx/F-42
\ No newline at end of file
diff --git a/rpm/redhat/14/pgnodemx/SLES-15 b/rpm/redhat/14/pgnodemx/SLES-15
new file mode 120000 (symlink)
index 0000000..152d7ee
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pgnodemx/SLES-15
\ No newline at end of file
diff --git a/rpm/redhat/15/pgnodemx/EL-10 b/rpm/redhat/15/pgnodemx/EL-10
new file mode 120000 (symlink)
index 0000000..27cfbea
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pgnodemx/EL-10
\ No newline at end of file
diff --git a/rpm/redhat/15/pgnodemx/EL-8 b/rpm/redhat/15/pgnodemx/EL-8
new file mode 120000 (symlink)
index 0000000..2b8dc39
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pgnodemx/EL-8
\ No newline at end of file
diff --git a/rpm/redhat/15/pgnodemx/EL-9 b/rpm/redhat/15/pgnodemx/EL-9
new file mode 120000 (symlink)
index 0000000..7a5e8ce
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pgnodemx/EL-9
\ No newline at end of file
diff --git a/rpm/redhat/15/pgnodemx/F-41 b/rpm/redhat/15/pgnodemx/F-41
new file mode 120000 (symlink)
index 0000000..d9629e9
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pgnodemx/F-41
\ No newline at end of file
diff --git a/rpm/redhat/15/pgnodemx/F-42 b/rpm/redhat/15/pgnodemx/F-42
new file mode 120000 (symlink)
index 0000000..bc5bdf1
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pgnodemx/F-42
\ No newline at end of file
diff --git a/rpm/redhat/15/pgnodemx/SLES-15 b/rpm/redhat/15/pgnodemx/SLES-15
new file mode 120000 (symlink)
index 0000000..152d7ee
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pgnodemx/SLES-15
\ No newline at end of file
diff --git a/rpm/redhat/16/pgnodemx/EL-10 b/rpm/redhat/16/pgnodemx/EL-10
new file mode 120000 (symlink)
index 0000000..27cfbea
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pgnodemx/EL-10
\ No newline at end of file
diff --git a/rpm/redhat/16/pgnodemx/EL-8 b/rpm/redhat/16/pgnodemx/EL-8
new file mode 120000 (symlink)
index 0000000..2b8dc39
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pgnodemx/EL-8
\ No newline at end of file
diff --git a/rpm/redhat/16/pgnodemx/EL-9 b/rpm/redhat/16/pgnodemx/EL-9
new file mode 120000 (symlink)
index 0000000..7a5e8ce
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pgnodemx/EL-9
\ No newline at end of file
diff --git a/rpm/redhat/16/pgnodemx/F-41 b/rpm/redhat/16/pgnodemx/F-41
new file mode 120000 (symlink)
index 0000000..d9629e9
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pgnodemx/F-41
\ No newline at end of file
diff --git a/rpm/redhat/16/pgnodemx/F-42 b/rpm/redhat/16/pgnodemx/F-42
new file mode 120000 (symlink)
index 0000000..bc5bdf1
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pgnodemx/F-42
\ No newline at end of file
diff --git a/rpm/redhat/16/pgnodemx/SLES-15 b/rpm/redhat/16/pgnodemx/SLES-15
new file mode 120000 (symlink)
index 0000000..152d7ee
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pgnodemx/SLES-15
\ No newline at end of file
diff --git a/rpm/redhat/17/pgnodemx/EL-10 b/rpm/redhat/17/pgnodemx/EL-10
new file mode 120000 (symlink)
index 0000000..27cfbea
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pgnodemx/EL-10
\ No newline at end of file
diff --git a/rpm/redhat/17/pgnodemx/EL-8 b/rpm/redhat/17/pgnodemx/EL-8
new file mode 120000 (symlink)
index 0000000..2b8dc39
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pgnodemx/EL-8
\ No newline at end of file
diff --git a/rpm/redhat/17/pgnodemx/EL-9 b/rpm/redhat/17/pgnodemx/EL-9
new file mode 120000 (symlink)
index 0000000..7a5e8ce
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pgnodemx/EL-9
\ No newline at end of file
diff --git a/rpm/redhat/17/pgnodemx/F-41 b/rpm/redhat/17/pgnodemx/F-41
new file mode 120000 (symlink)
index 0000000..d9629e9
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pgnodemx/F-41
\ No newline at end of file
diff --git a/rpm/redhat/17/pgnodemx/F-42 b/rpm/redhat/17/pgnodemx/F-42
new file mode 120000 (symlink)
index 0000000..bc5bdf1
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pgnodemx/F-42
\ No newline at end of file
diff --git a/rpm/redhat/17/pgnodemx/SLES-15 b/rpm/redhat/17/pgnodemx/SLES-15
new file mode 120000 (symlink)
index 0000000..152d7ee
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pgnodemx/SLES-15
\ No newline at end of file
diff --git a/rpm/redhat/main/non-common/pgnodemx/EL-10/Makefile b/rpm/redhat/main/non-common/pgnodemx/EL-10/Makefile
new file mode 100644 (file)
index 0000000..6343c82
--- /dev/null
@@ -0,0 +1,17 @@
+#################################
+# RPM-specific Makefile                #
+# https://yum.postgresql.org   #
+#                              #
+# Devrim Gunduz                        #
+# devrim@gunduz.org            #
+#################################
+
+# Predefined values
+
+ARCH=`rpm --eval "%{_arch}"`
+DIR=`pwd`
+DIST=.rhel10
+SPECFILE="pgnodemx.spec"
+
+# Now, include global Makefile
+include ../../../../global/Makefile.global
diff --git a/rpm/redhat/main/non-common/pgnodemx/EL-10/pgnodemx.spec b/rpm/redhat/main/non-common/pgnodemx/EL-10/pgnodemx.spec
new file mode 120000 (symlink)
index 0000000..18ce1ce
--- /dev/null
@@ -0,0 +1 @@
+../main/pgnodemx.spec
\ No newline at end of file
diff --git a/rpm/redhat/main/non-common/pgnodemx/EL-8/Makefile b/rpm/redhat/main/non-common/pgnodemx/EL-8/Makefile
new file mode 100644 (file)
index 0000000..244d37b
--- /dev/null
@@ -0,0 +1,17 @@
+#################################
+# RPM-specific Makefile                #
+# https://yum.postgresql.org   #
+#                              #
+# Devrim Gunduz                        #
+# devrim@gunduz.org            #
+#################################
+
+# Predefined values
+
+ARCH=`rpm --eval "%{_arch}"`
+DIR=`pwd`
+DIST=.rhel8
+SPECFILE="pgnodemx.spec"
+
+# Now, include global Makefile
+include ../../../../global/Makefile.global
diff --git a/rpm/redhat/main/non-common/pgnodemx/EL-8/pgnodemx.spec b/rpm/redhat/main/non-common/pgnodemx/EL-8/pgnodemx.spec
new file mode 120000 (symlink)
index 0000000..18ce1ce
--- /dev/null
@@ -0,0 +1 @@
+../main/pgnodemx.spec
\ No newline at end of file
diff --git a/rpm/redhat/main/non-common/pgnodemx/EL-9/Makefile b/rpm/redhat/main/non-common/pgnodemx/EL-9/Makefile
new file mode 100644 (file)
index 0000000..7f2c04f
--- /dev/null
@@ -0,0 +1,17 @@
+#################################
+# RPM-specific Makefile                #
+# https://yum.postgresql.org   #
+#                              #
+# Devrim Gunduz                        #
+# devrim@gunduz.org            #
+#################################
+
+# Predefined values
+
+ARCH=`rpm --eval "%{_arch}"`
+DIR=`pwd`
+DIST=.rhel9
+SPECFILE="pgnodemx.spec"
+
+# Now, include global Makefile
+include ../../../../global/Makefile.global
diff --git a/rpm/redhat/main/non-common/pgnodemx/EL-9/pgnodemx.spec b/rpm/redhat/main/non-common/pgnodemx/EL-9/pgnodemx.spec
new file mode 120000 (symlink)
index 0000000..18ce1ce
--- /dev/null
@@ -0,0 +1 @@
+../main/pgnodemx.spec
\ No newline at end of file
diff --git a/rpm/redhat/main/non-common/pgnodemx/F-41/Makefile b/rpm/redhat/main/non-common/pgnodemx/F-41/Makefile
new file mode 100644 (file)
index 0000000..fc36d46
--- /dev/null
@@ -0,0 +1,17 @@
+#################################
+# RPM-specific Makefile                #
+# https://yum.postgresql.org   #
+#                              #
+# Devrim Gunduz                        #
+# devrim@gunduz.org            #
+#################################
+
+# Predefined values
+
+ARCH=`rpm --eval "%{_arch}"`
+DIR=`pwd`
+DIST=.f41
+SPECFILE="pgnodemx.spec"
+
+# Now, include global Makefile
+include ../../../../global/Makefile.global
diff --git a/rpm/redhat/main/non-common/pgnodemx/F-41/pgnodemx.spec b/rpm/redhat/main/non-common/pgnodemx/F-41/pgnodemx.spec
new file mode 120000 (symlink)
index 0000000..18ce1ce
--- /dev/null
@@ -0,0 +1 @@
+../main/pgnodemx.spec
\ No newline at end of file
diff --git a/rpm/redhat/main/non-common/pgnodemx/F-42/Makefile b/rpm/redhat/main/non-common/pgnodemx/F-42/Makefile
new file mode 100644 (file)
index 0000000..7b1caa8
--- /dev/null
@@ -0,0 +1,17 @@
+#################################
+# RPM-specific Makefile                #
+# https://yum.postgresql.org   #
+#                              #
+# Devrim Gunduz                        #
+# devrim@gunduz.org            #
+#################################
+
+# Predefined values
+
+ARCH=`rpm --eval "%{_arch}"`
+DIR=`pwd`
+DIST=.f42
+SPECFILE="pgnodemx.spec"
+
+# Now, include global Makefile
+include ../../../../global/Makefile.global
diff --git a/rpm/redhat/main/non-common/pgnodemx/F-42/pgnodemx.spec b/rpm/redhat/main/non-common/pgnodemx/F-42/pgnodemx.spec
new file mode 120000 (symlink)
index 0000000..18ce1ce
--- /dev/null
@@ -0,0 +1 @@
+../main/pgnodemx.spec
\ No newline at end of file
diff --git a/rpm/redhat/main/non-common/pgnodemx/SLES-15/Makefile b/rpm/redhat/main/non-common/pgnodemx/SLES-15/Makefile
new file mode 100644 (file)
index 0000000..b82fff2
--- /dev/null
@@ -0,0 +1,17 @@
+#################################
+# RPM-specific Makefile                #
+# https://yum.postgresql.org   #
+#                              #
+# Devrim Gunduz                        #
+# devrim@gunduz.org            #
+#################################
+
+# Predefined values
+
+ARCH=`rpm --eval "%{_arch}"`
+DIR=`pwd`
+DIST=".sles15"
+SPECFILE="pgnodemx.spec"
+
+# Now, include global Makefile
+include ../../../../global/Makefile.global
diff --git a/rpm/redhat/main/non-common/pgnodemx/SLES-15/pgnodemx.spec b/rpm/redhat/main/non-common/pgnodemx/SLES-15/pgnodemx.spec
new file mode 120000 (symlink)
index 0000000..18ce1ce
--- /dev/null
@@ -0,0 +1 @@
+../main/pgnodemx.spec
\ No newline at end of file
diff --git a/rpm/redhat/main/non-common/pgnodemx/main/Makefile b/rpm/redhat/main/non-common/pgnodemx/main/Makefile
new file mode 100644 (file)
index 0000000..8fa461a
--- /dev/null
@@ -0,0 +1,17 @@
+#################################
+# RPM-specific Makefile                #
+# https://yum.postgresql.org   #
+#                              #
+# Devrim Gunduz                        #
+# devrim@gunduz.org            #
+#################################
+
+# Predefined values
+
+ARCH=`rpm --eval "%{_arch}"`
+DIR=`pwd`
+DIST=.f99
+SPECFILE="pgnodemx.spec"
+
+# Now, include global Makefile
+include ../../../../global/Makefile.global
diff --git a/rpm/redhat/main/non-common/pgnodemx/main/pgnodemx.spec b/rpm/redhat/main/non-common/pgnodemx/main/pgnodemx.spec
new file mode 100644 (file)
index 0000000..8757319
--- /dev/null
@@ -0,0 +1,67 @@
+%global sname pgnodemx
+
+%{!?llvm:%global llvm 1}
+
+Summary:       SQL functions that allow capture of node OS metrics from PostgreSQL
+Name:          %{sname}_%{pgmajorversion}
+Version:       1.7
+Release:       1PGDG%{?dist}
+License:       PostgreSQL
+Source0:       https://github.com/CrunchyData/%{sname}/archive/v%{version}.tar.gz
+URL:           https://github.com/CrunchyData/%{sname}
+
+BuildRequires: postgresql%{pgmajorversion}-devel
+Requires:      postgresql%{pgmajorversion}-server postgresql%{pgmajorversion}-contrib
+
+%description
+pgnodemx includes SQL functions that allow capture of node OS metrics from
+PostgreSQL.
+
+%if %llvm
+%package llvmjit
+Summary:       Just-in-time compilation support for pgnodemx
+Requires:      %{name}%{?_isa} = %{version}-%{release}
+%if 0%{?suse_version} >= 1500
+BuildRequires: llvm17-devel clang17-devel
+Requires:      llvm17
+%endif
+%if 0%{?fedora} || 0%{?rhel} >= 8
+BuildRequires: llvm-devel >= 19.0 clang-devel >= 19.0
+Requires:      llvm => 19.0
+%endif
+
+%description llvmjit
+This package provides JIT support for pgnodemx
+%endif
+
+%prep
+%setup -q -n %{sname}-%{version}
+
+%build
+USE_PGXS=1 PATH=%{pginstdir}/bin/:$PATH %{__make} %{?_smp_mflags}
+
+%install
+%{__rm} -rf %{buildroot}
+USE_PGXS=1 PATH=%{pginstdir}/bin/:$PATH %{__make} DESTDIR=%{buildroot} %{?_smp_mflags} install
+%{__mkdir} -p %{buildroot}%{pginstdir}/doc/extension
+%{__cp} README.md %{buildroot}%{pginstdir}/doc/extension/README-%{sname}.md
+
+%files
+%defattr(644,root,root,755)
+%license LICENSE.md
+%doc %{pginstdir}/doc/extension/*%{sname}.md
+%{pginstdir}/share/extension/%{sname}*.sql
+%{pginstdir}/share/extension/pg_proctab*.sql
+%{pginstdir}/share/extension/%{sname}*.control
+%{pginstdir}/share/extension/pg_proctab*.control
+%{pginstdir}/lib/%{sname}*.so
+
+%if %llvm
+%files llvmjit
+    %{pginstdir}/lib/bitcode/%{sname}/*bc
+    %{pginstdir}/lib/bitcode/%{sname}*bc
+%endif
+
+%changelog
+* Thu Jul 10 2025 Devrim Gündüz <devrim@gunduz.org> 1.7-1PGDG
+- Initial packaging for PostgreSQL RPM Repository