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