03f3a2
Name:           pg_repack
03f3a2
Version:        1.4.8
03f3a2
Release:        1%{?dist}
03f3a2
Summary:        Reorganize tables in PostgreSQL databases without any locks
03f3a2
03f3a2
License:        BSD
03f3a2
URL:            http://reorg.github.io/%{name}/
03f3a2
Source0:        https://github.com/reorg/%{name}/archive/ver_%{version}.tar.gz
03f3a2
03f3a2
BuildRequires: 	make
03f3a2
BuildRequires:  postgresql, gcc, openssl-devel, postgresql-server
03f3a2
BuildRequires:  postgresql-server-devel >= 15
03f3a2
BuildRequires:  readline-devel, zlib-devel, postgresql-static
03f3a2
BuildRequires:  python3-docutils
03f3a2
%{?postgresql_module_requires}
03f3a2
03f3a2
%description
03f3a2
pg_repack is a PostgreSQL extension which lets you remove
03f3a2
bloat from tables and indexes, and optionally
03f3a2
restore the physical order of clustered indexes.
03f3a2
Unlike CLUSTER and VACUUM FULL it works online,
03f3a2
without holding an exclusive lock on the processed tables during processing.
03f3a2
pg_repack is efficient to boot,
03f3a2
with performance comparable to using CLUSTER directly.
03f3a2
03f3a2
Please check the documentation (in the doc directory or online)
03f3a2
for installation and usage instructions.
03f3a2
%prep
03f3a2
%setup -n %{name}-ver_%{version} -q
03f3a2
03f3a2
03f3a2
%build
03f3a2
03f3a2
make %{?_smp_mflags}
03f3a2
cd doc
03f3a2
make
03f3a2
03f3a2
03f3a2
%install
03f3a2
%make_install
03f3a2
03f3a2
%files
03f3a2
%{_bindir}/%{name}
03f3a2
%{_libdir}/pgsql/%{name}.so
03f3a2
%if 0%{?postgresql_server_llvmjit}
03f3a2
%{_libdir}/pgsql/bitcode/%{name}.index.bc
03f3a2
%{_libdir}/pgsql/bitcode/%{name}/pgut/pgut-spi.bc
03f3a2
%{_libdir}/pgsql/bitcode/%{name}/repack.bc
03f3a2
%endif
03f3a2
%{_datadir}/pgsql/extension/%{name}.control
03f3a2
%{_datadir}/pgsql/extension/%{name}--%{version}.sql
03f3a2
03f3a2
%license COPYRIGHT
03f3a2
03f3a2
%doc README.rst
03f3a2
%doc doc/%{name}.html
03f3a2
%doc doc/%{name}.rst
03f3a2
%doc doc/%{name}_jp.html
03f3a2
%doc doc/%{name}_jp.rst
03f3a2
%doc doc/release.html
03f3a2
%doc doc/release.rst
03f3a2
03f3a2
03f3a2
%changelog
03f3a2
* Tue Oct 25 2022 Filip Janus <fjanus@redhat.com> - 1.4.8-1
03f3a2
- Update to version 1.4.8
03f3a2
- Postgresql 15 is supported
03f3a2
- Related: #2128410
03f3a2
03f3a2
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.4.6-4
03f3a2
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
03f3a2
  Related: rhbz#1991688
03f3a2
03f3a2
* Tue Jun 22 2021 Mohan Boddu <mboddu@redhat.com> - 1.4.6-3
03f3a2
- Rebuilt for RHEL 9 BETA for openssl 3.0
03f3a2
  Related: rhbz#1971065
03f3a2
03f3a2
* Thu Apr 22 2021 Honza Horak <hhorak@redhat.com> - 1.4.6-2
03f3a2
- Build jit based on what postgresql server does
03f3a2
  Related: #1933048
03f3a2
03f3a2
* Thu Jan 28 2021 Patrik Novotný <panovotn@redhat.com> - 1.4.6-1
03f3a2
- Rebase to upstream release 1.4.6
03f3a2
03f3a2
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5-3
03f3a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
03f3a2
03f3a2
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5-2
03f3a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
03f3a2
03f3a2
* Wed Aug 21 2019 Filip Januš <fjanus@redhat.com> 1.4.5-1
03f3a2
- Initial packaging