From: Devrim Gunduz Date: Thu, 11 Sep 2025 12:25:42 +0000 (+0100) Subject: pg_csv: Initial RPM packaging for the PostgreSQL RPM Repository per https://github... X-Git-Url: http://git.postgresql.org/gitweb/static/session/%7B%7Bsession.id%7D%7D-%7B%7Bsession.title%7Cslugify%7D%7D?a=commitdiff_plain;h=d46331554b0d22278735c94387c73af3af975172;p=pgrpms.git pg_csv: Initial RPM packaging for the PostgreSQL RPM Repository per https://github.com/pgdg-packaging/pgdg-rpms/issues/78 --- diff --git a/rpm/redhat/14/pg_csv/EL-10 b/rpm/redhat/14/pg_csv/EL-10 new file mode 120000 index 000000000..1468a268b --- /dev/null +++ b/rpm/redhat/14/pg_csv/EL-10 @@ -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 index 000000000..547145d64 --- /dev/null +++ b/rpm/redhat/14/pg_csv/EL-8 @@ -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 index 000000000..8bc458fca --- /dev/null +++ b/rpm/redhat/14/pg_csv/EL-9 @@ -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 index 000000000..84d12db78 --- /dev/null +++ b/rpm/redhat/14/pg_csv/F-41 @@ -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 index 000000000..9c3b1fcc2 --- /dev/null +++ b/rpm/redhat/14/pg_csv/F-42 @@ -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 index 000000000..0bb959422 --- /dev/null +++ b/rpm/redhat/14/pg_csv/SLES-15 @@ -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 index 000000000..1468a268b --- /dev/null +++ b/rpm/redhat/15/pg_csv/EL-10 @@ -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 index 000000000..547145d64 --- /dev/null +++ b/rpm/redhat/15/pg_csv/EL-8 @@ -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 index 000000000..8bc458fca --- /dev/null +++ b/rpm/redhat/15/pg_csv/EL-9 @@ -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 index 000000000..84d12db78 --- /dev/null +++ b/rpm/redhat/15/pg_csv/F-41 @@ -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 index 000000000..9c3b1fcc2 --- /dev/null +++ b/rpm/redhat/15/pg_csv/F-42 @@ -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 index 000000000..0bb959422 --- /dev/null +++ b/rpm/redhat/15/pg_csv/SLES-15 @@ -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 index 000000000..1468a268b --- /dev/null +++ b/rpm/redhat/16/pg_csv/EL-10 @@ -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 index 000000000..547145d64 --- /dev/null +++ b/rpm/redhat/16/pg_csv/EL-8 @@ -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 index 000000000..8bc458fca --- /dev/null +++ b/rpm/redhat/16/pg_csv/EL-9 @@ -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 index 000000000..84d12db78 --- /dev/null +++ b/rpm/redhat/16/pg_csv/F-41 @@ -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 index 000000000..9c3b1fcc2 --- /dev/null +++ b/rpm/redhat/16/pg_csv/F-42 @@ -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 index 000000000..0bb959422 --- /dev/null +++ b/rpm/redhat/16/pg_csv/SLES-15 @@ -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 index 000000000..1468a268b --- /dev/null +++ b/rpm/redhat/17/pg_csv/EL-10 @@ -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 index 000000000..547145d64 --- /dev/null +++ b/rpm/redhat/17/pg_csv/EL-8 @@ -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 index 000000000..8bc458fca --- /dev/null +++ b/rpm/redhat/17/pg_csv/EL-9 @@ -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 index 000000000..84d12db78 --- /dev/null +++ b/rpm/redhat/17/pg_csv/F-41 @@ -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 index 000000000..9c3b1fcc2 --- /dev/null +++ b/rpm/redhat/17/pg_csv/F-42 @@ -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 index 000000000..0bb959422 --- /dev/null +++ b/rpm/redhat/17/pg_csv/SLES-15 @@ -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 index 000000000..1468a268b --- /dev/null +++ b/rpm/redhat/18/pg_csv/EL-10 @@ -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 index 000000000..547145d64 --- /dev/null +++ b/rpm/redhat/18/pg_csv/EL-8 @@ -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 index 000000000..8bc458fca --- /dev/null +++ b/rpm/redhat/18/pg_csv/EL-9 @@ -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 index 000000000..84d12db78 --- /dev/null +++ b/rpm/redhat/18/pg_csv/F-41 @@ -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 index 000000000..9c3b1fcc2 --- /dev/null +++ b/rpm/redhat/18/pg_csv/F-42 @@ -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 index 000000000..0bb959422 --- /dev/null +++ b/rpm/redhat/18/pg_csv/SLES-15 @@ -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 index 000000000..786949992 --- /dev/null +++ b/rpm/redhat/main/non-common/pg_csv/EL-10/Makefile @@ -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 index 000000000..53badc917 --- /dev/null +++ b/rpm/redhat/main/non-common/pg_csv/EL-10/pg_csv.spec @@ -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 index 000000000..902d6963e --- /dev/null +++ b/rpm/redhat/main/non-common/pg_csv/EL-8/Makefile @@ -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 index 000000000..53badc917 --- /dev/null +++ b/rpm/redhat/main/non-common/pg_csv/EL-8/pg_csv.spec @@ -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 index 000000000..c7239b5c4 --- /dev/null +++ b/rpm/redhat/main/non-common/pg_csv/EL-9/Makefile @@ -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 index 000000000..53badc917 --- /dev/null +++ b/rpm/redhat/main/non-common/pg_csv/EL-9/pg_csv.spec @@ -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 index 000000000..08c5da24e --- /dev/null +++ b/rpm/redhat/main/non-common/pg_csv/F-41/Makefile @@ -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 index 000000000..53badc917 --- /dev/null +++ b/rpm/redhat/main/non-common/pg_csv/F-41/pg_csv.spec @@ -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 index 000000000..ca8b3b33c --- /dev/null +++ b/rpm/redhat/main/non-common/pg_csv/F-42/Makefile @@ -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 index 000000000..53badc917 --- /dev/null +++ b/rpm/redhat/main/non-common/pg_csv/F-42/pg_csv.spec @@ -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 index 000000000..845560ebe --- /dev/null +++ b/rpm/redhat/main/non-common/pg_csv/SLES-15/Makefile @@ -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 index 000000000..53badc917 --- /dev/null +++ b/rpm/redhat/main/non-common/pg_csv/SLES-15/pg_csv.spec @@ -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 index 000000000..2f957ab5c --- /dev/null +++ b/rpm/redhat/main/non-common/pg_csv/main/Makefile @@ -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 index 000000000..c01a110bb --- /dev/null +++ b/rpm/redhat/main/non-common/pg_csv/main/pg_csv.spec @@ -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 - 1.0.1-1PGDG +- Initial RPM packaging for the PostgreSQL RPM Repository per: + https://github.com/pgdg-packaging/pgdg-rpms/issues/78