9b1e88
Name:           pg_repack
9b1e88
Version:        1.4.6
9b1e88
Release:        3%{?dist}
9b1e88
Summary:        Reorganize tables in PostgreSQL databases without any locks
9b1e88
9b1e88
License:        BSD
9b1e88
URL:            http://reorg.github.io/%{name}/
9b1e88
Source0:        https://github.com/reorg/%{name}/archive/ver_%{version}.tar.gz
9b1e88
9b1e88
BuildRequires: make
9b1e88
BuildRequires:  postgresql, gcc, openssl-devel, postgresql-server
9b1e88
BuildRequires:  postgresql-libs, postgresql-devel, postgresql-server-devel
9b1e88
BuildRequires:  readline-devel, zlib-devel, postgresql-static
9b1e88
BuildRequires:  python3-docutils
9b1e88
%{?postgresql_module_requires}
9b1e88
9b1e88
%description
9b1e88
pg_repack is a PostgreSQL extension which lets you remove
9b1e88
bloat from tables and indexes, and optionally
9b1e88
restore the physical order of clustered indexes.
9b1e88
Unlike CLUSTER and VACUUM FULL it works online,
9b1e88
without holding an exclusive lock on the processed tables during processing.
9b1e88
pg_repack is efficient to boot,
9b1e88
with performance comparable to using CLUSTER directly.
9b1e88
9b1e88
Please check the documentation (in the doc directory or online)
9b1e88
for installation and usage instructions.
9b1e88
%prep
9b1e88
%setup -n %{name}-ver_%{version} -q
9b1e88
9b1e88
9b1e88
%build
9b1e88
9b1e88
make %{?_smp_mflags}
9b1e88
cd doc
9b1e88
make
9b1e88
9b1e88
9b1e88
%install
9b1e88
%make_install
9b1e88
9b1e88
%files
9b1e88
%{_bindir}/%{name}
9b1e88
%{_libdir}/pgsql/%{name}.so
9b1e88
%if 0%{?postgresql_server_llvmjit}
9b1e88
%{_libdir}/pgsql/bitcode/%{name}.index.bc
9b1e88
%{_libdir}/pgsql/bitcode/%{name}/pgut/pgut-spi.bc
9b1e88
%{_libdir}/pgsql/bitcode/%{name}/repack.bc
9b1e88
%endif
9b1e88
%{_datadir}/pgsql/extension/%{name}.control
9b1e88
%{_datadir}/pgsql/extension/%{name}--%{version}.sql
9b1e88
9b1e88
%license COPYRIGHT
9b1e88
9b1e88
%doc README.rst
9b1e88
%doc doc/%{name}.html
9b1e88
%doc doc/%{name}.rst
9b1e88
%doc doc/%{name}_jp.html
9b1e88
%doc doc/%{name}_jp.rst
9b1e88
%doc doc/release.html
9b1e88
%doc doc/release.rst
9b1e88
9b1e88
9b1e88
%changelog
9b1e88
* Wed May 26 2021 Filip Januš <fjanus@redhat.com> - 1.4.6-3
9b1e88
- Release bump - enable gating
9b1e88
9b1e88
* Mon May 24 2021 Filip Januš <fjanus@redhat.com> - 1.4.6-2
9b1e88
- Rebuild
9b1e88
- Resolves:#1954442
9b1e88
9b1e88
* Thu Jan 14 2021 Patrik Novotný <panovotn@redhat.com> - 1.4.6-1
9b1e88
- Rebase to upstream release 1.4.6
9b1e88
9b1e88
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5-2
9b1e88
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
9b1e88
9b1e88
* Wed Aug 21 2019 Filip Januš <fjanus@redhat.com> 1.4.5-1
9b1e88
- Initial packaging