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