From 74b344da09b1af9836fb8cd42118053541c3f512 Mon Sep 17 00:00:00 2001 From: Filip Janus Date: Mon, 7 Nov 2022 15:05:12 +0100 Subject: [PATCH] Initial import of pg_repack with postgresql 15 support --- .gitignore | 1 + .pg_repack.metadata | 1 + pg_repack.spec | 92 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 95 insertions(+) mode change 100644 => 100755 .gitignore create mode 100644 .pg_repack.metadata create mode 100644 pg_repack.spec create mode 100755 sources diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 index e69de29..d4a04e5 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/ver_1.4.8.tar.gz diff --git a/.pg_repack.metadata b/.pg_repack.metadata new file mode 100644 index 0000000..7f2961a --- /dev/null +++ b/.pg_repack.metadata @@ -0,0 +1 @@ +74e54f43f6c062644e442224eacc2a2bc95a04ef ver_1.4.8.tar.gz diff --git a/pg_repack.spec b/pg_repack.spec new file mode 100644 index 0000000..dd87bac --- /dev/null +++ b/pg_repack.spec @@ -0,0 +1,92 @@ +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 >= 15 +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 +* Tue Oct 25 2022 Filip Janus - 1.4.8-1 +- Update to version 1.4.8 +- Postgresql 15 is supported +- Related: #2128410 + +* Mon Aug 09 2021 Mohan Boddu - 1.4.6-4 +- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags + Related: rhbz#1991688 + +* Tue Jun 22 2021 Mohan Boddu - 1.4.6-3 +- Rebuilt for RHEL 9 BETA for openssl 3.0 + Related: rhbz#1971065 + +* Thu Apr 22 2021 Honza Horak - 1.4.6-2 +- Build jit based on what postgresql server does + Related: #1933048 + +* Thu Jan 28 2021 Patrik Novotný - 1.4.6-1 +- Rebase to upstream release 1.4.6 + +* Wed Jan 27 2021 Fedora Release Engineering - 1.4.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 1.4.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Aug 21 2019 Filip Januš 1.4.5-1 +- Initial packaging diff --git a/sources b/sources new file mode 100755 index 0000000..02dd828 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (ver_1.4.8.tar.gz) = 9854a979aa9056b7c49d52e22622b8faf91cdf4acdb6551044d25733848c2c07b95166a464769da23e0174a63f2b132aa58ba6d6f9b596d1fb95f29098ac3968