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