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