pg_csv: Initial RPM packaging for the PostgreSQL RPM Repository per https://github...
authorDevrim Gunduz <devrim@gunduz.org>
Thu, 11 Sep 2025 12:25:42 +0000 (13:25 +0100)
committerDevrim Gunduz <devrim@gunduz.org>
Thu, 11 Sep 2025 12:25:42 +0000 (13:25 +0100)
44 files changed:
rpm/redhat/14/pg_csv/EL-10 [new symlink]
rpm/redhat/14/pg_csv/EL-8 [new symlink]
rpm/redhat/14/pg_csv/EL-9 [new symlink]
rpm/redhat/14/pg_csv/F-41 [new symlink]
rpm/redhat/14/pg_csv/F-42 [new symlink]
rpm/redhat/14/pg_csv/SLES-15 [new symlink]
rpm/redhat/15/pg_csv/EL-10 [new symlink]
rpm/redhat/15/pg_csv/EL-8 [new symlink]
rpm/redhat/15/pg_csv/EL-9 [new symlink]
rpm/redhat/15/pg_csv/F-41 [new symlink]
rpm/redhat/15/pg_csv/F-42 [new symlink]
rpm/redhat/15/pg_csv/SLES-15 [new symlink]
rpm/redhat/16/pg_csv/EL-10 [new symlink]
rpm/redhat/16/pg_csv/EL-8 [new symlink]
rpm/redhat/16/pg_csv/EL-9 [new symlink]
rpm/redhat/16/pg_csv/F-41 [new symlink]
rpm/redhat/16/pg_csv/F-42 [new symlink]
rpm/redhat/16/pg_csv/SLES-15 [new symlink]
rpm/redhat/17/pg_csv/EL-10 [new symlink]
rpm/redhat/17/pg_csv/EL-8 [new symlink]
rpm/redhat/17/pg_csv/EL-9 [new symlink]
rpm/redhat/17/pg_csv/F-41 [new symlink]
rpm/redhat/17/pg_csv/F-42 [new symlink]
rpm/redhat/17/pg_csv/SLES-15 [new symlink]
rpm/redhat/18/pg_csv/EL-10 [new symlink]
rpm/redhat/18/pg_csv/EL-8 [new symlink]
rpm/redhat/18/pg_csv/EL-9 [new symlink]
rpm/redhat/18/pg_csv/F-41 [new symlink]
rpm/redhat/18/pg_csv/F-42 [new symlink]
rpm/redhat/18/pg_csv/SLES-15 [new symlink]
rpm/redhat/main/non-common/pg_csv/EL-10/Makefile [new file with mode: 0644]
rpm/redhat/main/non-common/pg_csv/EL-10/pg_csv.spec [new symlink]
rpm/redhat/main/non-common/pg_csv/EL-8/Makefile [new file with mode: 0644]
rpm/redhat/main/non-common/pg_csv/EL-8/pg_csv.spec [new symlink]
rpm/redhat/main/non-common/pg_csv/EL-9/Makefile [new file with mode: 0644]
rpm/redhat/main/non-common/pg_csv/EL-9/pg_csv.spec [new symlink]
rpm/redhat/main/non-common/pg_csv/F-41/Makefile [new file with mode: 0644]
rpm/redhat/main/non-common/pg_csv/F-41/pg_csv.spec [new symlink]
rpm/redhat/main/non-common/pg_csv/F-42/Makefile [new file with mode: 0644]
rpm/redhat/main/non-common/pg_csv/F-42/pg_csv.spec [new symlink]
rpm/redhat/main/non-common/pg_csv/SLES-15/Makefile [new file with mode: 0644]
rpm/redhat/main/non-common/pg_csv/SLES-15/pg_csv.spec [new symlink]
rpm/redhat/main/non-common/pg_csv/main/Makefile [new file with mode: 0644]
rpm/redhat/main/non-common/pg_csv/main/pg_csv.spec [new file with mode: 0644]

diff --git a/rpm/redhat/14/pg_csv/EL-10 b/rpm/redhat/14/pg_csv/EL-10
new file mode 120000 (symlink)
index 0000000..1468a26
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pg_csv/EL-10
\ No newline at end of file
diff --git a/rpm/redhat/14/pg_csv/EL-8 b/rpm/redhat/14/pg_csv/EL-8
new file mode 120000 (symlink)
index 0000000..547145d
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pg_csv/EL-8
\ No newline at end of file
diff --git a/rpm/redhat/14/pg_csv/EL-9 b/rpm/redhat/14/pg_csv/EL-9
new file mode 120000 (symlink)
index 0000000..8bc458f
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pg_csv/EL-9
\ No newline at end of file
diff --git a/rpm/redhat/14/pg_csv/F-41 b/rpm/redhat/14/pg_csv/F-41
new file mode 120000 (symlink)
index 0000000..84d12db
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pg_csv/F-41
\ No newline at end of file
diff --git a/rpm/redhat/14/pg_csv/F-42 b/rpm/redhat/14/pg_csv/F-42
new file mode 120000 (symlink)
index 0000000..9c3b1fc
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pg_csv/F-42
\ No newline at end of file
diff --git a/rpm/redhat/14/pg_csv/SLES-15 b/rpm/redhat/14/pg_csv/SLES-15
new file mode 120000 (symlink)
index 0000000..0bb9594
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pg_csv/SLES-15
\ No newline at end of file
diff --git a/rpm/redhat/15/pg_csv/EL-10 b/rpm/redhat/15/pg_csv/EL-10
new file mode 120000 (symlink)
index 0000000..1468a26
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pg_csv/EL-10
\ No newline at end of file
diff --git a/rpm/redhat/15/pg_csv/EL-8 b/rpm/redhat/15/pg_csv/EL-8
new file mode 120000 (symlink)
index 0000000..547145d
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pg_csv/EL-8
\ No newline at end of file
diff --git a/rpm/redhat/15/pg_csv/EL-9 b/rpm/redhat/15/pg_csv/EL-9
new file mode 120000 (symlink)
index 0000000..8bc458f
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pg_csv/EL-9
\ No newline at end of file
diff --git a/rpm/redhat/15/pg_csv/F-41 b/rpm/redhat/15/pg_csv/F-41
new file mode 120000 (symlink)
index 0000000..84d12db
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pg_csv/F-41
\ No newline at end of file
diff --git a/rpm/redhat/15/pg_csv/F-42 b/rpm/redhat/15/pg_csv/F-42
new file mode 120000 (symlink)
index 0000000..9c3b1fc
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pg_csv/F-42
\ No newline at end of file
diff --git a/rpm/redhat/15/pg_csv/SLES-15 b/rpm/redhat/15/pg_csv/SLES-15
new file mode 120000 (symlink)
index 0000000..0bb9594
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pg_csv/SLES-15
\ No newline at end of file
diff --git a/rpm/redhat/16/pg_csv/EL-10 b/rpm/redhat/16/pg_csv/EL-10
new file mode 120000 (symlink)
index 0000000..1468a26
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pg_csv/EL-10
\ No newline at end of file
diff --git a/rpm/redhat/16/pg_csv/EL-8 b/rpm/redhat/16/pg_csv/EL-8
new file mode 120000 (symlink)
index 0000000..547145d
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pg_csv/EL-8
\ No newline at end of file
diff --git a/rpm/redhat/16/pg_csv/EL-9 b/rpm/redhat/16/pg_csv/EL-9
new file mode 120000 (symlink)
index 0000000..8bc458f
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pg_csv/EL-9
\ No newline at end of file
diff --git a/rpm/redhat/16/pg_csv/F-41 b/rpm/redhat/16/pg_csv/F-41
new file mode 120000 (symlink)
index 0000000..84d12db
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pg_csv/F-41
\ No newline at end of file
diff --git a/rpm/redhat/16/pg_csv/F-42 b/rpm/redhat/16/pg_csv/F-42
new file mode 120000 (symlink)
index 0000000..9c3b1fc
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pg_csv/F-42
\ No newline at end of file
diff --git a/rpm/redhat/16/pg_csv/SLES-15 b/rpm/redhat/16/pg_csv/SLES-15
new file mode 120000 (symlink)
index 0000000..0bb9594
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pg_csv/SLES-15
\ No newline at end of file
diff --git a/rpm/redhat/17/pg_csv/EL-10 b/rpm/redhat/17/pg_csv/EL-10
new file mode 120000 (symlink)
index 0000000..1468a26
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pg_csv/EL-10
\ No newline at end of file
diff --git a/rpm/redhat/17/pg_csv/EL-8 b/rpm/redhat/17/pg_csv/EL-8
new file mode 120000 (symlink)
index 0000000..547145d
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pg_csv/EL-8
\ No newline at end of file
diff --git a/rpm/redhat/17/pg_csv/EL-9 b/rpm/redhat/17/pg_csv/EL-9
new file mode 120000 (symlink)
index 0000000..8bc458f
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pg_csv/EL-9
\ No newline at end of file
diff --git a/rpm/redhat/17/pg_csv/F-41 b/rpm/redhat/17/pg_csv/F-41
new file mode 120000 (symlink)
index 0000000..84d12db
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pg_csv/F-41
\ No newline at end of file
diff --git a/rpm/redhat/17/pg_csv/F-42 b/rpm/redhat/17/pg_csv/F-42
new file mode 120000 (symlink)
index 0000000..9c3b1fc
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pg_csv/F-42
\ No newline at end of file
diff --git a/rpm/redhat/17/pg_csv/SLES-15 b/rpm/redhat/17/pg_csv/SLES-15
new file mode 120000 (symlink)
index 0000000..0bb9594
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pg_csv/SLES-15
\ No newline at end of file
diff --git a/rpm/redhat/18/pg_csv/EL-10 b/rpm/redhat/18/pg_csv/EL-10
new file mode 120000 (symlink)
index 0000000..1468a26
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pg_csv/EL-10
\ No newline at end of file
diff --git a/rpm/redhat/18/pg_csv/EL-8 b/rpm/redhat/18/pg_csv/EL-8
new file mode 120000 (symlink)
index 0000000..547145d
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pg_csv/EL-8
\ No newline at end of file
diff --git a/rpm/redhat/18/pg_csv/EL-9 b/rpm/redhat/18/pg_csv/EL-9
new file mode 120000 (symlink)
index 0000000..8bc458f
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pg_csv/EL-9
\ No newline at end of file
diff --git a/rpm/redhat/18/pg_csv/F-41 b/rpm/redhat/18/pg_csv/F-41
new file mode 120000 (symlink)
index 0000000..84d12db
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pg_csv/F-41
\ No newline at end of file
diff --git a/rpm/redhat/18/pg_csv/F-42 b/rpm/redhat/18/pg_csv/F-42
new file mode 120000 (symlink)
index 0000000..9c3b1fc
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pg_csv/F-42
\ No newline at end of file
diff --git a/rpm/redhat/18/pg_csv/SLES-15 b/rpm/redhat/18/pg_csv/SLES-15
new file mode 120000 (symlink)
index 0000000..0bb9594
--- /dev/null
@@ -0,0 +1 @@
+../../main/non-common/pg_csv/SLES-15
\ No newline at end of file
diff --git a/rpm/redhat/main/non-common/pg_csv/EL-10/Makefile b/rpm/redhat/main/non-common/pg_csv/EL-10/Makefile
new file mode 100644 (file)
index 0000000..7869499
--- /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="pg_csv.spec"
+
+# Now, include global Makefile
+include ../../../../global/Makefile.global
diff --git a/rpm/redhat/main/non-common/pg_csv/EL-10/pg_csv.spec b/rpm/redhat/main/non-common/pg_csv/EL-10/pg_csv.spec
new file mode 120000 (symlink)
index 0000000..53badc9
--- /dev/null
@@ -0,0 +1 @@
+../main/pg_csv.spec
\ No newline at end of file
diff --git a/rpm/redhat/main/non-common/pg_csv/EL-8/Makefile b/rpm/redhat/main/non-common/pg_csv/EL-8/Makefile
new file mode 100644 (file)
index 0000000..902d696
--- /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="pg_csv.spec"
+
+# Now, include global Makefile
+include ../../../../global/Makefile.global
diff --git a/rpm/redhat/main/non-common/pg_csv/EL-8/pg_csv.spec b/rpm/redhat/main/non-common/pg_csv/EL-8/pg_csv.spec
new file mode 120000 (symlink)
index 0000000..53badc9
--- /dev/null
@@ -0,0 +1 @@
+../main/pg_csv.spec
\ No newline at end of file
diff --git a/rpm/redhat/main/non-common/pg_csv/EL-9/Makefile b/rpm/redhat/main/non-common/pg_csv/EL-9/Makefile
new file mode 100644 (file)
index 0000000..c7239b5
--- /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="pg_csv.spec"
+
+# Now, include global Makefile
+include ../../../../global/Makefile.global
diff --git a/rpm/redhat/main/non-common/pg_csv/EL-9/pg_csv.spec b/rpm/redhat/main/non-common/pg_csv/EL-9/pg_csv.spec
new file mode 120000 (symlink)
index 0000000..53badc9
--- /dev/null
@@ -0,0 +1 @@
+../main/pg_csv.spec
\ No newline at end of file
diff --git a/rpm/redhat/main/non-common/pg_csv/F-41/Makefile b/rpm/redhat/main/non-common/pg_csv/F-41/Makefile
new file mode 100644 (file)
index 0000000..08c5da2
--- /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="pg_csv.spec"
+
+# Now, include global Makefile
+include ../../../../global/Makefile.global
diff --git a/rpm/redhat/main/non-common/pg_csv/F-41/pg_csv.spec b/rpm/redhat/main/non-common/pg_csv/F-41/pg_csv.spec
new file mode 120000 (symlink)
index 0000000..53badc9
--- /dev/null
@@ -0,0 +1 @@
+../main/pg_csv.spec
\ No newline at end of file
diff --git a/rpm/redhat/main/non-common/pg_csv/F-42/Makefile b/rpm/redhat/main/non-common/pg_csv/F-42/Makefile
new file mode 100644 (file)
index 0000000..ca8b3b3
--- /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="pg_csv.spec"
+
+# Now, include global Makefile
+include ../../../../global/Makefile.global
diff --git a/rpm/redhat/main/non-common/pg_csv/F-42/pg_csv.spec b/rpm/redhat/main/non-common/pg_csv/F-42/pg_csv.spec
new file mode 120000 (symlink)
index 0000000..53badc9
--- /dev/null
@@ -0,0 +1 @@
+../main/pg_csv.spec
\ No newline at end of file
diff --git a/rpm/redhat/main/non-common/pg_csv/SLES-15/Makefile b/rpm/redhat/main/non-common/pg_csv/SLES-15/Makefile
new file mode 100644 (file)
index 0000000..845560e
--- /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="pg_csv.spec"
+
+# Now, include global Makefile
+include ../../../../global/Makefile.global
diff --git a/rpm/redhat/main/non-common/pg_csv/SLES-15/pg_csv.spec b/rpm/redhat/main/non-common/pg_csv/SLES-15/pg_csv.spec
new file mode 120000 (symlink)
index 0000000..53badc9
--- /dev/null
@@ -0,0 +1 @@
+../main/pg_csv.spec
\ No newline at end of file
diff --git a/rpm/redhat/main/non-common/pg_csv/main/Makefile b/rpm/redhat/main/non-common/pg_csv/main/Makefile
new file mode 100644 (file)
index 0000000..2f957ab
--- /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="pg_csv.spec"
+
+# Now, include global Makefile
+include ../../../../global/Makefile.global
diff --git a/rpm/redhat/main/non-common/pg_csv/main/pg_csv.spec b/rpm/redhat/main/non-common/pg_csv/main/pg_csv.spec
new file mode 100644 (file)
index 0000000..c01a110
--- /dev/null
@@ -0,0 +1,63 @@
+%global sname  pg_csv
+
+%{!?llvm:%global llvm 1}
+
+Summary:       Flexible CSV processing as a solution for PostgreSQL
+Name:          %{sname}_%{pgmajorversion}
+Version:       1.0.1
+Release:       1PGDG%{?dist}
+License:       MIT
+URL:           https://github.com/PostgREST/%{sname}/
+Source0:       https://github.com/PostgREST/%{sname}/archive/refs/tags/v%{version}.tar.gz
+BuildRequires: postgresql%{pgmajorversion}-devel
+Requires:      postgresql%{pgmajorversion}-server
+
+%description
+pg_csv offers flexible CSV processing as a solution.
+ - Includes a CSV aggregate that composes with SQL expressions.
+ - Native C extension, x2 times faster than SQL queries that try to output CSV
+   (see our CI results).
+ - No dependencies except Postgres.
+
+%if %llvm
+%package llvmjit
+Summary:       Just-in-time compilation support for pg_csv
+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 >= 17.0 clang-devel >= 17.0
+Requires:      llvm => 17.0
+%endif
+
+%description llvmjit
+This packages provides JIT support for pg_csv
+%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} %{?_smp_mflags} INSTALL_PREFIX=%{buildroot} DESTDIR=%{buildroot} install
+
+%files
+%defattr(-,root,root,-)
+%{pginstdir}/lib/%{sname}.so
+%{pginstdir}/share/extension/%{sname}*.sql
+%{pginstdir}/share/extension/%{sname}.control
+%if %llvm
+%files llvmjit
+    %{pginstdir}/lib/bitcode/%{sname}/src/*.bc
+    %{pginstdir}/lib/bitcode/%{sname}*.bc
+%endif
+
+%changelog
+* Thu Sep 11 2025 Devrim Gündüz <devrim@gunduz.org> - 1.0.1-1PGDG
+- Initial RPM packaging for the PostgreSQL RPM Repository per:
+  https://github.com/pgdg-packaging/pgdg-rpms/issues/78