From bacd18eb9b5e282ca30261788dac189a05bd25d9 Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Wed, 3 Apr 2024 16:48:02 +0300 Subject: [PATCH] import pg_repack-1.4.8-1.module+el8.10.0+20413+d8116364 --- .gitignore | 1 + .pg_repack.metadata | 1 + SPECS/pg_repack.spec | 70 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 72 insertions(+) create mode 100644 .gitignore create mode 100644 .pg_repack.metadata create mode 100644 SPECS/pg_repack.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c8a20cb --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/ver_1.4.8.tar.gz diff --git a/.pg_repack.metadata b/.pg_repack.metadata new file mode 100644 index 0000000..f406882 --- /dev/null +++ b/.pg_repack.metadata @@ -0,0 +1 @@ +74e54f43f6c062644e442224eacc2a2bc95a04ef SOURCES/ver_1.4.8.tar.gz diff --git a/SPECS/pg_repack.spec b/SPECS/pg_repack.spec new file mode 100644 index 0000000..583bb47 --- /dev/null +++ b/SPECS/pg_repack.spec @@ -0,0 +1,70 @@ +Name: pg_repack +Version: 1.4.8 +Release: 1%{?dist} +Summary: Reorganize tables in PostgreSQL databases without any locks + +License: BSD +URL: http://reorg.github.io/%{name}/ +Source0: https://github.com/reorg/%{name}/archive/ver_%{version}.tar.gz + +BuildRequires: make +BuildRequires: postgresql, gcc, openssl-devel, postgresql-server +BuildRequires: postgresql-server-devel >= 16 +BuildRequires: readline-devel, zlib-devel, postgresql-static +BuildRequires: python3-docutils +%{?postgresql_module_requires} + +%description +pg_repack is a PostgreSQL extension which lets you remove +bloat from tables and indexes, and optionally +restore the physical order of clustered indexes. +Unlike CLUSTER and VACUUM FULL it works online, +without holding an exclusive lock on the processed tables during processing. +pg_repack is efficient to boot, +with performance comparable to using CLUSTER directly. + +Please check the documentation (in the doc directory or online) +for installation and usage instructions. +%prep +%setup -n %{name}-ver_%{version} -q + + +%build + +make %{?_smp_mflags} +cd doc +make + + +%install +%make_install + +%files +%{_bindir}/%{name} +%{_libdir}/pgsql/%{name}.so +%if 0%{?postgresql_server_llvmjit} +%{_libdir}/pgsql/bitcode/%{name}.index.bc +%{_libdir}/pgsql/bitcode/%{name}/pgut/pgut-spi.bc +%{_libdir}/pgsql/bitcode/%{name}/repack.bc +%endif +%{_datadir}/pgsql/extension/%{name}.control +%{_datadir}/pgsql/extension/%{name}--%{version}.sql + +%license COPYRIGHT + +%doc README.rst +%doc doc/%{name}.html +%doc doc/%{name}.rst +%doc doc/%{name}_jp.html +%doc doc/%{name}_jp.rst +%doc doc/release.html +%doc doc/release.rst + + +%changelog +* Wed Apr 03 2024 MSVSphere Packaging Team - 1.4.8-1 +- Rebuilt for MSVSphere 8.10 beta + +* Fri Oct 13 2023 Filip Janus - 1.4.8-1 +- Resolves: RHEL-3636 +- Initial import for PG 16 module